mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-18 20:00:18 -06:00
don't explode if the folder-sync path points to a non-existing folder
This commit is contained in:
@ -58,7 +58,7 @@ bool FATStorage::Open()
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -946,6 +946,11 @@ bool FATStorage::Load(std::string filename, u64 size, std::string sourcedir)
|
|||||||
SourceDir = sourcedir;
|
SourceDir = sourcedir;
|
||||||
|
|
||||||
bool hasdir = !sourcedir.empty();
|
bool hasdir = !sourcedir.empty();
|
||||||
|
if (hasdir)
|
||||||
|
{
|
||||||
|
if (!fs::is_directory(fs::u8path(sourcedir)))
|
||||||
|
hasdir = false;
|
||||||
|
}
|
||||||
|
|
||||||
// 'auto' size management: (size=0)
|
// 'auto' size management: (size=0)
|
||||||
// * if an index exists: the size from the index is used
|
// * if an index exists: the size from the index is used
|
||||||
|
Reference in New Issue
Block a user