357 |
|
copy((path)"packages/VanillaBSL/IGMD", (path)"../GameDataFolder"); |
358 |
|
setProgressBar( 1000 ); |
359 |
|
|
360 |
< |
copy("../../persist.dat",".."); |
361 |
< |
copy("../../key_config.txt",".."); |
360 |
> |
if(!exists("../persist.dat")) |
361 |
> |
copy("../../persist.dat",".."); |
362 |
> |
if(!exists("../key_config.txt")) |
363 |
> |
copy("../../key_config.txt",".."); |
364 |
|
|
365 |
|
#ifndef WIN32 |
366 |
|
/* On Mac only, set the current GDF to the AE GDF by writing to Oni's global preferences file (thankfully a standard OS X ".plist" XML file). |
1141 |
|
// Connect events and objects |
1142 |
|
Mods_CheckboxList->Connect(Mods_CheckboxList1, wxEVT_CREATE, wxWindowCreateEventHandler(MainWindow::ModList_OnCreate), NULL, this); |
1143 |
|
////@end MainWindow content construction |
1144 |
< |
|
1144 |
> |
#ifdef WIN32 |
1145 |
|
Handle = (HWND)GetHWND(); |
1146 |
|
::CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, IID_ITaskbarList, (void **)&pTaskbarList); |
1147 |
< |
|
1147 |
> |
#endif |
1148 |
|
|
1149 |
|
if ( exists( "../../GameDataFolder/level0_Final.sep" ) ) { |
1150 |
|
strImportOption = "-import:sep"; |