Skip to content

Commit e8d21a0

Browse files
authored
Merge pull request #1189 from asarium/fix/940
Set the registry key for FRED
2 parents 8b24877 + 0b472ea commit e8d21a0

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)