Add 3DSX RomFS reads via NCCH archive

This commit is contained in:
wheremyfoodat 2023-09-03 11:04:54 +03:00
parent 53917841bc
commit a380aa83f0
5 changed files with 15 additions and 8 deletions

View file

@ -426,6 +426,10 @@ bool Emulator::loadROM(const std::filesystem::path& path) {
reset(ReloadOption::NoReload);
}
// Reset whatever state needs to be reset before loading a new ROM
memory.loadedCXI = std::nullopt;
memory.loaded3DSX = std::nullopt;
// Get path for saving files (AppData on Windows, /home/user/.local/share/ApplcationName on Linux, etc)
// Inside that path, we be use a game-specific folder as well. Eg if we were loading a ROM called PenguinDemo.3ds, the savedata would be in
// %APPDATA%/Alber/PenguinDemo/SaveData on Windows, and so on. We do this because games save data in their own filesystem on the cart