25 |
|
|
26 |
|
const int CDROMRefNum = -62; // RefNum of driver |
27 |
|
|
28 |
+ |
#ifdef STANDALONE_PREFS |
29 |
|
void prefs_init() |
30 |
|
{ |
31 |
|
} |
33 |
|
void prefs_exit() |
34 |
|
{ |
35 |
|
} |
36 |
+ |
#endif |
37 |
|
|
38 |
|
@implementation VMSettingsController |
39 |
|
|
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; |
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]; |