Improve error message behavior on installer for invalid sources. (#77)

This commit is contained in:
Darío
2025-01-16 12:13:14 -03:00
committed by GitHub
parent 5f9fdcf934
commit 5c98a34084
8 changed files with 51 additions and 15 deletions

View File

@@ -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();