Skip to content

Commit 0b472ea

Browse files
committed
Set the registry key for FRED
The default key is probably not valid anymore since we don't use the registry virtualization anymore. This fixes #940.
1 parent f50be50 commit 0b472ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fred2/fred.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ BOOL CFREDApp::InitInstance() {
206206
Enable3dControlsStatic(); // Call this when linking to MFC statically
207207
#endif
208208

209+
// Set the company registry key, settings saving doesn't work otherwise
210+
SetRegistryKey("HardLightProductions");
211+
209212
LoadStdProfileSettings(9); // Load standard INI file options (including MRU)
210213
Show_stars = GetProfileInt("Preferences", "Show stars", Show_stars);
211214
Show_grid_positions = GetProfileInt("Preferences", "Show grid positions", Show_grid_positions);
@@ -516,6 +519,7 @@ void CFREDApp::write_ini_file(int degree) {
516519
write_window("Asteroid window", &Asteroid_wnd_data);
517520
write_window("Mission notes window", &Mission_notes_wnd_data);
518521
}
522+
m_pRecentFileList->WriteList();
519523
}
520524

521525
void CFREDApp::write_window(char *name, window_data *wndd) {

0 commit comments

Comments
 (0)