@@ -127,7 +127,8 @@ u64 GameInfo::GetGameSizeOnDiskInBytes() {
127
127
case IdentifiedFileType::PSP_PBP_DIRECTORY:
128
128
case IdentifiedFileType::PSP_SAVEDATA_DIRECTORY:
129
129
return File::ComputeRecursiveDirectorySize (ResolvePBPDirectory (filePath_));
130
-
130
+ case IdentifiedFileType::PSP_DISC_DIRECTORY:
131
+ return File::ComputeRecursiveDirectorySize (GetFileLoader ()->GetPath ());
131
132
default :
132
133
return GetFileLoader ()->FileSize ();
133
134
}
@@ -138,7 +139,8 @@ u64 GameInfo::GetGameSizeUncompressedInBytes() {
138
139
case IdentifiedFileType::PSP_PBP_DIRECTORY:
139
140
case IdentifiedFileType::PSP_SAVEDATA_DIRECTORY:
140
141
return File::ComputeRecursiveDirectorySize (ResolvePBPDirectory (filePath_));
141
-
142
+ case IdentifiedFileType::PSP_DISC_DIRECTORY:
143
+ return File::ComputeRecursiveDirectorySize (GetFileLoader ()->GetPath ());
142
144
default :
143
145
{
144
146
BlockDevice *blockDevice = constructBlockDevice (GetFileLoader ().get ());
@@ -576,7 +578,6 @@ class GameInfoWorkItem : public Task {
576
578
577
579
case IdentifiedFileType::PSP_DISC_DIRECTORY:
578
580
{
579
- info_->fileType = IdentifiedFileType::PSP_ISO;
580
581
SequentialHandleAllocator handles;
581
582
VirtualDiscFileSystem umd (&handles, gamePath_);
582
583
@@ -606,7 +607,6 @@ class GameInfoWorkItem : public Task {
606
607
case IdentifiedFileType::PSP_ISO:
607
608
case IdentifiedFileType::PSP_ISO_NP:
608
609
{
609
- info_->fileType = IdentifiedFileType::PSP_ISO;
610
610
SequentialHandleAllocator handles;
611
611
// Let's assume it's an ISO.
612
612
// TODO: This will currently read in the whole directory tree. Not really necessary for just a
0 commit comments