ew global variable
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <cassert>
|
||||
#include <core/JIT.hpp>
|
||||
#include <unarr.h>
|
||||
#include <Options.hpp>
|
||||
|
||||
namespace n64 {
|
||||
Mem::Mem(Registers ®s, ParallelRDP ¶llel, 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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user