E-Maculation
https://www.emaculation.com/forum/

Windows build (kanjitalk755 code) doesn't default to "ROM"?
https://www.emaculation.com/forum/viewtopic.php?f=6&t=10020
Page 1 of 1

Author:  emendelson [ Sun Jan 20, 2019 6:42 pm ]
Post subject:  Windows build (kanjitalk755 code) doesn't default to "ROM"?

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?

Author:  emendelson [ Sun Jan 20, 2019 7:49 pm ]
Post subject:  Re: Windows build (kanjitalk755 code) doesn't default to "RO

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");

Author:  emendelson [ Sun Jan 20, 2019 9:58 pm ]
Post subject:  Re: Windows build (kanjitalk755 code) doesn't default to "RO

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.

Author:  Cat_7 [ Mon Jan 21, 2019 7:17 am ]
Post subject:  Re: Windows build (kanjitalk755 code) doesn't default to "RO

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.

Author:  emendelson [ Mon Jan 21, 2019 12:42 pm ]
Post subject:  Re: Windows build (kanjitalk755 code) doesn't default to "RO

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/