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.5 by asvitkine, 2009-08-18T03:26:17Z vs.
Revision 1.7 by asvitkine, 2009-08-30T17:56:30Z

# Line 171 | Line 171 | static NSString *getStringFromPrefs(cons
171    [NSApp runModalForWindow:window];
172   }
173  
174 + - (void) editSettingsForNewVM: (NSString *) vmdir sender: (id) sender
175 + {
176 +  chdir([vmdir fileSystemRepresentation]);
177 +  AddPrefsDefaults();
178 +  AddPlatformPrefsDefaults();
179 +  LoadPrefs([vmdir fileSystemRepresentation]);
180 +  PrefsReplaceString("screen", "win/800/600");
181 +  PrefsReplaceString("extfs", "");
182 +  PrefsReplaceString("ether", "slirp");
183 +  PrefsReplaceInt32("ramsize", 64 << 20);
184 +  PrefsReplaceInt32("frameskip", 2);
185 +  PrefsReplaceBool("jit", true);
186 +  NSWindow *window = [self window];
187 +  [self setupGUI];
188 +  [NSApp runModalForWindow:window];
189 + }
190 +
191   static NSString *makeRelativeIfNecessary(NSString *path)
192   {
193    char cwd[1024], filename[1024];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines