Login  •  Register


The time is now: Sat Jul 20, 2019 1:35 pm

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 7 posts ]
Print view Previous topic  |  Next topic
Author Message
PostPosted: Mon Oct 08, 2018 5:18 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1052
I still haven't finished this the way I hope to someday, but maybe someone will find it useful.

This is a slightly modified version of kanjitalk755's code for SheepShaver for macOS:

http://www.columbia.edu/~em36/SheepShaverEM.zip

You should launch the program first from a folder that has "Mac OS ROM" in it; this will allow the program to launch so that you can edit the preferences from the Preferences pane. You can of course specify any other location for the ROM file in the Preferences pane when it's open.

It differs from the standard build (available from this forum) in these ways:

1. It stores its prefs in a visible file named SheepShaverPrefs.txt, in your user folder. No need to go to the terminal and rename the file or enter terminal commands. Just edit the file in TextEdit.

2. It uses Ctrl-Cmd-Enter to toggle full-screen, Ctrl-Cmd-F5 to capture the mouse, etc., instead of Cmd-Enter, etc. These assignments are listed in the About box, and I use them because some old Mac software uses Cmd-Enter, etc., for built-in purposes.

3. It uses a classic-Mac icon instead of the standard sheep icon.

4. It is codesigned.

I want to add the ability to ZAP the PRAM (which is still a hidden file) from the Preferences screen, but I still haven't worked out how to make this happen, though it seems like a simple task of writing and reading a line like "zap xpram file" from the prefs file and using an already-existing function that zaps the PRAM. Someday I'll get to this, I hope.

Meanwhile, this is here if you want it. If you don't want it or need it or see any point of having it, please don't waste your valuable time posting a message saying that you don't plan to use it - just ignore it entirely.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Oct 20, 2018 9:55 am 
Offline
Apple Corer

Joined: Fri Oct 26, 2007 7:56 am
Posts: 245
Very nice. Thank you!


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Jan 07, 2019 12:13 am 
Offline
Inquisitive Elf
User avatar

Joined: Tue Jan 24, 2017 6:58 am
Posts: 27
This is nice. Did you modify the SS source to get it to load the custom path for the prefs file?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Jan 07, 2019 12:16 am 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1052
prefs_unix.cpp, line 52:

const char PREFS_FILE_NAME[] = "SheepShaverPrefs.txt"; // changed from ".sheepshaver_prefs"

That does the job (and it uses more or less all I know about programming).

If you can figure out how to zap the PRAM from the Preferences pane, please let us know!


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Jan 07, 2019 12:26 am 
Offline
Inquisitive Elf
User avatar

Joined: Tue Jan 24, 2017 6:58 am
Posts: 27
Cool!

Well, I'll start with building SS from source, which I have not done yet *palm to forehead*. No promises though, I have a really good feeling I'll get buggered and wind up coming back to it later.

Also, do you happen to know who the main contributors/moderators are for SS's source code? I know one of the major contributors hasn't been active recently.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Jan 07, 2019 12:50 am 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1052
The latest builds all use this, from kanjitalk755, who visits this forum and is very quick at solving problems:

https://github.com/kanjitalk755/macemu

I've modified it to include SDL2 in the codebase, and made my slight modifications described above (search for "emendelson" in the code if you want to undo these):

http://www.columbia.edu/~em36/macemu-ma ... nji-EM.zip

If you have Xcode installed, just go to SheepShaver->src->MacOSX, double-click on the xcodproj file, and build. It took me forever to learn that the executable gets built in the folder that you can find from the Xcode menu: File->Project Settings, and click on the right-pointing arrow next to the path shown just above the "Advanced..." button. Copy a ROM file into the folder with the executable, and go. (This is on High Sierra with Xcode 9; I think Mojave may need some fixes, and, if so, I'll upload for Mojave instead when I get a chance.)

Please let us know about your fixes. Maybe open a GitHub fork (which I suppose I should do also...)?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Jan 07, 2019 4:15 am 
Offline
Inquisitive Elf
User avatar

Joined: Tue Jan 24, 2017 6:58 am
Posts: 27
Hmm... I'll have to find myself a copy of Xcode 9.4 as the newer versions do not compile 32-bit applications. I don't have an Apple developer account (though maybe I should get one at some point).

Or maybe I'll just have to compile in the terminal. It's worth keeping in mind if someone writes a new "build sheepshaver" tutorial.


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


Who is online

Users browsing this forum: No registered users and 10 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