ew global variable

This commit is contained in:
irisz64
2025-07-22 12:46:50 +02:00
parent 0d48f2c991
commit 3520a309ed
5 changed files with 10 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
#include <cassert>
#include <core/JIT.hpp>
#include <unarr.h>
#include <Options.hpp>
namespace n64 {
Mem::Mem(Registers &regs, ParallelRDP &parallel, JIT *jit) : mmio(*this, regs, parallel), flash(saveData), jit(jit) {
@@ -28,6 +29,7 @@ void Mem::Reset() {
void Mem::LoadSRAM(SaveType save_type, fs::path path) {
if (save_type == SAVE_SRAM_256k) {
std::error_code error;
std::string savePath = Options::GetInstance().GetValue<std::string>("general", "savePath");
if (!savePath.empty()) {
path = savePath / path.filename();
}