Login  •  Register


The time is now: Mon Oct 22, 2018 4:29 am

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 3 posts ]
Print view Previous topic  |  Next topic
Author Message
PostPosted: Sun Sep 30, 2018 5:08 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 915
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.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Sep 30, 2018 6:03 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 5136
Location: Amsterdam, Netherlands
emendelson wrote:
but I haven't been able to test whether it works because I don't know enough.

Can't you check this while viewing the home folder with hidden files visible? You can see the nvram file disappear and/or re-appear in the home folder window.

(BTW: In latest couple of macOS versions you can toggle visibility of hidden files in the frontmost Finder window with command-shift-. (command-shift-dot).)


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Sep 30, 2018 6:37 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 915
Ronald P. Regensburg wrote:
emendelson wrote:
but I haven't been able to test whether it works because I don't know enough.

Can't you check this while viewing the home folder with hidden files visible? You can see the nvram file disappear and/or re-appear in the home folder window.

(BTW: In latest couple of macOS versions you can toggle visibility of hidden files in the frontmost Finder window with command-shift-. (command-shift-dot).)


Apologies for being unclear: I meant only that I wasn't able to figure out exactly how to run that routine. As you say, it's easy to figure out whether the file has been deleted or not!


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 3 posts ]


Who is online

Users browsing this forum: Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group