How to zap pram from SheepShaver preferences pane?
Posted: Sun Sep 30, 2018 5:08 pm
I'm working on a custom build of SheepShaver and I would like it to have an option on the Preferences panel to zap the PRAM. This would work this way: it would delete the ~/.sheepshaver_nvram file and then set a flag that tells SheepShaver NOT to write a new PRAM file when it exits.
There's a function named ZapPRAM already in the code, but it doesn't seem to do anything. I think I've managed to create a function named DeleteXPRAM that works like LoadXPRAM, but removes the file instead of reading it, but I haven't been able to test whether it works because I don't know enough.
Has anyone already worked on this problem? The old GTK prefs file deleted the PRAM file before launching SheepShaver, but the built-in prefs are only available after SheepShaver starts, so it needs to do something more complicated.
If anyone has any insights, I'll be grateful.
There's a function named ZapPRAM already in the code, but it doesn't seem to do anything. I think I've managed to create a function named DeleteXPRAM that works like LoadXPRAM, but removes the file instead of reading it, but I haven't been able to test whether it works because I don't know enough.
Has anyone already worked on this problem? The old GTK prefs file deleted the PRAM file before launching SheepShaver, but the built-in prefs are only available after SheepShaver starts, so it needs to do something more complicated.
If anyone has any insights, I'll be grateful.