ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/MacOSX/Launcher/VMSettingsController.mm
(Generate patch)

Comparing SheepShaver/src/MacOSX/Launcher/VMSettingsController.mm (file contents):
Revision 1.4 by asvitkine, 2009-08-06T18:12:24Z vs.
Revision 1.5 by asvitkine, 2009-08-18T03:26:17Z

# Line 25 | Line 25
25  
26   const int CDROMRefNum = -62;                    // RefNum of driver
27  
28 + #ifdef STANDALONE_PREFS
29   void prefs_init()
30   {
31   }
# Line 32 | Line 33 | void prefs_init()
33   void prefs_exit()
34   {
35   }
36 + #endif
37  
38   @implementation VMSettingsController
39  
# Line 316 | Line 318 | static NSString *makeRelativeIfNecessary
318  
319   - (void) cancelEdit: (id) sender
320   {
321 + #ifdef STANDALONE_PREFS
322    PrefsExit();
323 + #endif
324    [[self window] close];
325    [NSApp stopModal];
326    cancelWasClicked = YES;
# Line 373 | Line 377 | static NSString *makeRelativeIfNecessary
377    PrefsReplaceString("serialb", [[printerPort stringValue] UTF8String]);
378    PrefsReplaceString("ether", [[ethernetInterface stringValue] UTF8String]);
379    SavePrefs();
380 + #ifdef STANDALONE_PREFS
381    PrefsExit();
382 + #endif
383  
384    [[self window] close];
385    [NSApp stopModal];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines