mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add error message when opening entire ISO
This commit is contained in:
parent
f9c5d3766c
commit
0afd7dea28
1 changed files with 7 additions and 1 deletions
|
@ -300,6 +300,12 @@ bool DirectoryFileSystem::RemoveFile(const std::string &filename) {
|
|||
|
||||
u32 DirectoryFileSystem::OpenFile(std::string filename, FileAccess access, const char *devicename) {
|
||||
|
||||
if (filename == "")
|
||||
{
|
||||
ERROR_LOG(FILESYS, "DiscDirectoryFileSystem: Opening entire ISO not supported");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (filename.compare(0,8,"/sce_lbn") == 0)
|
||||
{
|
||||
u32 sectorStart = 0xFFFFFFFF, readSize = 0xFFFFFFFF;
|
||||
|
@ -329,7 +335,7 @@ u32 DirectoryFileSystem::OpenFile(std::string filename, FileAccess access, const
|
|||
// no file info has been gathered? shouldn't happen
|
||||
if (actualFileName == "")
|
||||
{
|
||||
ERROR_LOG(FILESYS, "sce_lbn used without calling fileinfo.");
|
||||
ERROR_LOG(FILESYS, "DiscDirectoryFileSystem: sce_lbn used without calling fileinfo.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue