src/file.cpp

changeset 461
fbcc91ae1dd2
parent 460
b230ae09c8e5
child 467
59549731151a
equal deleted inserted replaced
460:b230ae09c8e5 461:fbcc91ae1dd2
30 #include "history.h" 30 #include "history.h"
31 #include "dialogs.h" 31 #include "dialogs.h"
32 #include "gldraw.h" 32 #include "gldraw.h"
33 #include "build/moc_file.cpp" 33 #include "build/moc_file.cpp"
34 34
35 cfg (str, io_ldpath, ""); 35 cfg (String, io_ldpath, "");
36 cfg (str, io_recentfiles, ""); 36 cfg (String, io_recentfiles, "");
37 extern_cfg (str, net_downloadpath); 37 extern_cfg (String, net_downloadpath);
38 extern_cfg (bool, gl_logostuds); 38 extern_cfg (Bool, gl_logostuds);
39 39
40 static bool g_loadingMainFile = false; 40 static bool g_loadingMainFile = false;
41 static const int g_MaxRecentFiles = 5; 41 static const int g_MaxRecentFiles = 5;
42 static bool g_aborted = false; 42 static bool g_aborted = false;
43 static LDFile* g_logoedStud = null; 43 static LDFile* g_logoedStud = null;
493 rfiles << path; 493 rfiles << path;
494 494
495 // Rebuild the config string 495 // Rebuild the config string
496 io_recentfiles = rfiles.join ("@"); 496 io_recentfiles = rfiles.join ("@");
497 497
498 config::save(); 498 Config::save();
499 g_win->updateRecentFilesMenu(); 499 g_win->updateRecentFilesMenu();
500 } 500 }
501 501
502 // ============================================================================= 502 // =============================================================================
503 // Open an LDraw file and set it as the main model 503 // Open an LDraw file and set it as the main model

mercurial