View Issue Details

IDProjectCategoryView StatusLast Update
0000733FSSCPlauncherpublic2006-01-29 22:06
ReporterWMCoolmon Assigned Tophreak  
PrioritynormalSeveritytrivialReproducibilityalways
Status resolvedResolutionfixed 
Summary0000733: Launcher defaults to C:\games\freespace2
DescriptionWhenever one is selecting an EXE, the Launcher always defaults to C:\games\freespace2 (Asssuming it exists) even if the last used directory exists.
TagsNo tags attached.

Activities

phreak

2006-01-24 15:36

developer   ~0004454

i am at school right now, but in LauncherDlg.cpp, comment out this line in CLauncherDlg::OnBrowse()

details.lpstrInitialDir = "C:\\Games\\Freespace2";

phreak

2006-01-28 19:55

developer   ~0004530

If i comment out that line, the launcher will default to the current directory if there are any EXEs in that directory that match the string "*fs2_open*.exe", with stars being wildcards. If there are none, it would default to the user's "My documents" folder, which i don't think is able to be changed.

Goober5000

2006-01-28 20:39

administrator   ~0004533

Perhaps what we should do is default to C:\Games\Freespace2 if this is the first time using the launcher, but if the launcher was previously used and chose an EXE from a different directory, that directory should be saved in the launcher settings and loaded upon startup.

phreak

2006-01-28 20:57

developer   ~0004536

Last edited: 2006-01-28 21:16

Sounds like a plan.

edit: looking through the code, there is a popup window that will appear if the launcher isn't in the same directory as the FS2 file you select. We could always just force it to go to the current directory its located in. By calling GetCurrentDirectory() and using the output of that for lpstrInitialDir. Doing some tests, it doesn't default to "My documents" if no FSO exes are found.

edited on: 01-28-06 16:15

edited on: 01-28-06 16:16

phreak

2006-01-29 22:06

developer   ~0004553

fixed.

Issue History

Date Modified Username Field Change
2006-01-20 05:49 WMCoolmon New Issue
2006-01-24 15:36 phreak Note Added: 0004454
2006-01-28 19:55 phreak Note Added: 0004530
2006-01-28 20:39 Goober5000 Note Added: 0004533
2006-01-28 20:57 phreak Note Added: 0004536
2006-01-28 21:15 phreak Note Edited: 0004536
2006-01-28 21:16 phreak Note Edited: 0004536
2006-01-29 22:06 phreak Status new => resolved
2006-01-29 22:06 phreak Resolution open => fixed
2006-01-29 22:06 phreak Assigned To => phreak
2006-01-29 22:06 phreak Note Added: 0004553