ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Windows/main_windows.cpp
(Generate patch)

Comparing BasiliskII/src/Windows/main_windows.cpp (file contents):
Revision 1.2 by gbeauche, 2004-12-03T22:48:08Z vs.
Revision 1.3 by gbeauche, 2004-12-05T15:28:39Z

# Line 38 | Line 38 | using std::string;
38   #include "xpram.h"
39   #include "timer.h"
40   #include "video.h"
41 + #include "cdrom.h"
42   #include "emul_op.h"
43   #include "prefs.h"
44   #include "prefs_editor.h"
# Line 210 | Line 211 | static void usage(const char *prg_name)
211   int main(int argc, char **argv)
212   {
213          char str[256];
214 +        bool cd_boot = false;
215  
216          // Initialize variables
217          RAMBaseHost = NULL;
# Line 241 | Line 243 | int main(int argc, char **argv)
243                  } else if (strcmp(argv[i], "--rominfo") == 0) {
244                          argv[i] = NULL;
245                          PrintROMInfo = true;
246 +                } else if (strcmp(argv[i], "--cdboot") == 0) {
247 +                        argv[i] = NULL;
248 +                        cd_boot = true;
249                  }
250          }
251  
# Line 261 | Line 266 | int main(int argc, char **argv)
266          // Read preferences
267          PrefsInit(argc, argv);
268  
269 +        // Boot MacOS from CD-ROM?
270 +        if (cd_boot)
271 +                PrefsReplaceInt32("bootdriver", CDROMRefNum);
272 +
273          // Any command line arguments left?
274          for (int i=1; i<argc; i++) {
275                  if (argv[i][0] == '-') {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines