Login  •  Register


The time is now: Sun Aug 18, 2019 8:09 pm

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 5 posts ]
Print view Previous topic  |  Next topic
Author Message
PostPosted: Sun Jan 20, 2019 6:42 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1069
A lot of sites report that BasiliskII, by default, uses a file called ROM as its rom file, if no filename is specified in the prefs file. This doesn't seem to work in the build I made from the current code (see another thread about this). Am I missing something obvious?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Jan 20, 2019 7:49 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1069
To fix this in the Windows version, add these two lines to main_windows.cpp, after line 365:

Code:
   if (PrefsFindString("rom", 0) == NULL)
      rom_path = tstr("ROM");


Similarly, if no "disk" line is present in the prefs file, you can make the Windows version default to opening a disk image named BasiliskII.dsk by adding this line to sys_windows.cpp, after line 219 (between the two curly brackets):

Code:
        PrefsAddString("disk", "BasiliskII.dsk");


Last edited by emendelson on Mon Jan 21, 2019 2:40 am, edited 1 time in total.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Jan 20, 2019 9:58 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1069
The only problem I've come across in kanjitalk755's excellent code is that the extfs icon on the Basilisk desktop doesn't take the name of the Windows computer but instead is named "C" or some other drive letter on the host machine. Older builds display the name of the host machine.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Jan 21, 2019 7:17 am 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4638
Location: Sittard, The Netherlands
In Windows, the external file system was always called "My Computer", not "Unix". In my case I get a "T". Without there being a disk with that letter.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Jan 21, 2019 12:42 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1069
Cat_7 wrote:
In Windows, the external file system was always called "My Computer", not "Unix". In my case I get a "T". Without there being a disk with that letter.


It's a little more complicated than that. The file system is named "My Computer" if you did NOT rename the optional "My Computer" icon on your Windows desktop. In user_string_windows.cpp there's a routine that looks in various places in the Windows Registry for that name, and uses it (or is supposed to use it) on the BasiliskII or SheepShaver desktop.

So if your "computer" icon on your Windows desktop is named "Christiaan Huygens" or "Lady Gaga", that is (or should be) the name of the external file system in BII or SS.

I figured this out when I was putting together my Mac OS 9 for Windows system. I couldn't figure out how to write an AppleScript in OS 9 that would recognize the name of the external file system. So the AutoIt launcher that I wrote for the system gets the name from the Registry and puts it in the Windows clipboard; when SheepShaver launches, a startup script retrieves the name from the clipboard and uses it to build an alias used by the file-transfer system that I create in OS 9.

It took me a while to sort this out. Someone who knows what they're doing could have done it in two minutes.


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


Who is online

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