Have a default path for saves
This commit is contained in:
@@ -111,7 +111,7 @@ void PIF::LoadEeprom(const SaveType saveType, const std::string &path) {
|
||||
std::vector<u8> dummy{};
|
||||
dummy.resize(GetSaveSize(saveType));
|
||||
Util::WriteFileBinary(dummy, eepromPath);
|
||||
eepromVec = Util::ReadFileBinary(eepromPath);
|
||||
eepromVec = dummy;
|
||||
}
|
||||
|
||||
if (eepromVec.size() != eepromSize) {
|
||||
|
||||
@@ -15,7 +15,8 @@ struct Options {
|
||||
return;
|
||||
}
|
||||
|
||||
structure["general"]["savePath"] = "";
|
||||
structure["general"]["savePath"] = "saves";
|
||||
fs::create_directory("saves");
|
||||
structure["audio"]["volumeL"] = "0.5";
|
||||
structure["audio"]["volumeR"] = "0.5";
|
||||
structure["audio"]["lock"] = "true";
|
||||
|
||||
Reference in New Issue
Block a user