mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
bugfix of ISOFileSystem
This commit is contained in:
parent
aae16cd732
commit
543b08ac07
1 changed files with 4 additions and 2 deletions
|
@ -370,7 +370,7 @@ u32 ISOFileSystem::OpenFile(std::string filename, FileAccess access, const char
|
|||
entry.openSize = readSize;
|
||||
// when open as "umd1:/sce_lbn0x0_size0x6B49D200", that mean open umd1 as a block device.
|
||||
// the param in sceIoLseek and sceIoRead is lba mode. we must mark it.
|
||||
if(strncmp(devicename, "umd1:", 5)==0)
|
||||
if(strncmp(devicename, "umd0:", 5)==0 || strncmp(devicename, "umd1:", 5)==0)
|
||||
entry.isBlockSectorMode = true;
|
||||
|
||||
entries[newHandle] = entry;
|
||||
|
@ -386,10 +386,12 @@ u32 ISOFileSystem::OpenFile(std::string filename, FileAccess access, const char
|
|||
// May return entireISO for "umd0:"
|
||||
entry.file = GetFromPath(filename);
|
||||
if (!entry.file){
|
||||
entry.isBlockSectorMode = true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (entry.file==&entireISO)
|
||||
entry.isBlockSectorMode = true;
|
||||
|
||||
entry.seekPos = 0;
|
||||
|
||||
u32 newHandle = hAlloc->GetNewHandle();
|
||||
|
|
Loading…
Add table
Reference in a new issue