# | 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 | + | NSWindow *window = [self window]; |
181 | + | [NSApp runModalForWindow:window]; |
182 | + | } |
183 | + | |
184 | static NSString *makeRelativeIfNecessary(NSString *path) | |
185 | { | |
186 | char cwd[1024], filename[1024]; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |