Changeset 4292 for trunk/gsdl/src/w32server/settings.cpp
- Timestamp:
- 2003-05-21T14:00:33+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/w32server/settings.cpp
r2577 r4292 62 62 int gsdl_browser = GS_IEXPLORE; 63 63 char gsdl_browser_exe[MAX_FILENAME_SIZE] = ""; 64 64 text_t gsdl_url; 65 65 66 66 // private data … … 267 267 } 268 268 269 void write_settings ( ) {269 void write_settings (const text_t url) { 270 270 char conffile[MAX_FILENAME_SIZE]; 271 271 … … 281 281 // top (gsdl) level stuff 282 282 fout << "[gsdl]\n"; 283 284 if (!url.empty()) { 285 // url entry should only be written to gsdlsite.cfg when the 286 // server is actually running, not when it's stopped (since we 287 // can't be sure what the url is at that stage). That is, 288 // write_settings() is called with the url argument set when the 289 // server first starts up, it's then called without url set as 290 // the server shuts down. 291 write_ini_line(fout, "url", url); 292 } 293 283 294 write_ini_line(fout, "enterlib", gsdl_enterlib); 284 295 write_ini_line(fout, "gsdlhome", gsdl_gsdlhome); … … 814 825 // save the settings if we exited via the ok button 815 826 if (res == 1) { 816 write_settings( );827 write_settings(gsdl_url); 817 828 // reset httpprefix in case port number was changed 818 829 // configure_httpprefix ();
Note:
See TracChangeset
for help on using the changeset viewer.