small changes
This commit is contained in:
@@ -60,7 +60,7 @@ void Mem::LoadSRAM(SaveType save_type, fs::path path) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
saveData = mio::make_mmap_sink(sramPath, 0, mio::map_entire_file, error);
|
saveData = mio::make_mmap_sink(sramPath, error);
|
||||||
if (error) {
|
if (error) {
|
||||||
Util::Error::GetInstance().Throw(
|
Util::Error::GetInstance().Throw(
|
||||||
{Util::Error::Severity::NON_FATAL}, {Util::Error::Type::MMAP_MAKE_SINK_ERROR},
|
{Util::Error::Severity::NON_FATAL}, {Util::Error::Type::MMAP_MAKE_SINK_ERROR},
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ void Flash::Load(SaveType saveType, const std::string &path) {
|
|||||||
panic("Corrupt SRAM!");
|
panic("Corrupt SRAM!");
|
||||||
}
|
}
|
||||||
|
|
||||||
saveData = mio::make_mmap_sink(flashPath, 0, mio::map_entire_file, error);
|
saveData = mio::make_mmap_sink(flashPath, error);
|
||||||
if (error) {
|
if (error) {
|
||||||
panic("Could not make mmap {}", flashPath);
|
panic("Could not make mmap {}", flashPath);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ void PIF::MaybeLoadMempak() {
|
|||||||
panic("Corrupt mempak!");
|
panic("Corrupt mempak!");
|
||||||
}
|
}
|
||||||
|
|
||||||
mempak = mio::make_mmap_sink(mempakPath, 0, mio::map_entire_file, error);
|
mempak = mio::make_mmap_sink(mempakPath, error);
|
||||||
if (error) {
|
if (error) {
|
||||||
panic("Could not open {}", mempakPath);
|
panic("Could not open {}", mempakPath);
|
||||||
}
|
}
|
||||||
@@ -116,7 +116,7 @@ void PIF::LoadEeprom(const SaveType saveType, const std::string &path) {
|
|||||||
panic("Corrupt eeprom!");
|
panic("Corrupt eeprom!");
|
||||||
}
|
}
|
||||||
|
|
||||||
eeprom = mio::make_mmap_sink(eepromPath, 0, mio::map_entire_file, error);
|
eeprom = mio::make_mmap_sink(eepromPath, error);
|
||||||
if (error) {
|
if (error) {
|
||||||
panic("Could not open {}. Reason {}", eepromPath, error.message());
|
panic("Could not open {}. Reason {}", eepromPath, error.message());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user