mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-06 03:29:55 -06:00
Improve error message behavior on installer for invalid sources. (#77)
This commit is contained in:
@@ -21,6 +21,8 @@ ISOFileSystem::ISOFileSystem(const std::filesystem::path &isoPath)
|
||||
return;
|
||||
}
|
||||
|
||||
name = (const char *)(isoPath.filename().u8string().data());
|
||||
|
||||
// Find root sector.
|
||||
const uint8_t *mappedFileData = mappedFile.data();
|
||||
uint32_t gameOffset = 0;
|
||||
@@ -173,6 +175,11 @@ bool ISOFileSystem::exists(const std::string &path) const
|
||||
return fileMap.find(path) != fileMap.end();
|
||||
}
|
||||
|
||||
const std::string &ISOFileSystem::getName() const
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
bool ISOFileSystem::empty() const
|
||||
{
|
||||
return !mappedFile.isOpen();
|
||||
|
||||
Reference in New Issue
Block a user