mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-08-15 09:27:27 +00:00
Quick fix for NVRAM
This commit is contained in:
@@ -52,11 +52,11 @@ void NVram::nvram_init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NVram::nvram_save() {
|
void NVram::nvram_save() {
|
||||||
std::ofstream outfile("nvram.bin");
|
NVram::nvram_savefile.open("nvram.bin", ios::out | ios::binary);
|
||||||
|
|
||||||
outfile.write((char*)nvram_storage, 8192);
|
NVram::nvram_savefile.write((char*)nvram_storage, 8192);
|
||||||
|
|
||||||
outfile.close();
|
NVram::nvram_savefile.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t NVram::nvram_read(uint32_t nvram_offset){
|
uint8_t NVram::nvram_read(uint32_t nvram_offset){
|
||||||
|
Reference in New Issue
Block a user