--- AE/Installer/trunk/source/main_window.cpp 2009/06/19 22:25:08 358 +++ AE/Installer/trunk/source/main_window.cpp 2009/06/21 01:50:24 371 @@ -3,9 +3,10 @@ AE/Mod Installer by Gumby and Iritscen */ -// To-do: - +// To-do: - Load credits from text resource file +// - Version number in credits should be universalized // - Institute lots of checks into file-handling -// - Clear mod info fields when mod is de-selected ??? +// - Clear mod info fields when mod is de-selected #define DEBUG #include @@ -288,7 +289,7 @@ int globalizeData(void) //printf(Step_x_x,"Step %d/%d: reimporting level", parts_done + 1, 7 + 2 * num_levels); setStatusArea((string)Step_x_x + levels[i] + (string)"_Final.dat"); setStatusArea("Step " + lexical_cast(parts_done + 1) + "/" + lexical_cast(total_steps) + " reimporting level" + levels[i]+"_Final.oni"); system( (strOniSplit + " " + strImportOption + " ../GameDataFolder/level" + levels[i] + "_Final packages/VanillaDats/level" + levels[i] + "_Final/level" - + levels[i] + "_Final/level" + levels[i] + "_Final.oni > Globalize.oni").c_str()); + + levels[i] + "_Final/level" + levels[i] + "_Final.oni > Globalize.log").c_str()); setProgressBar( (int)(1000 * (float)(parts_done) / (float)(total_steps) )); parts_done++; } @@ -323,7 +324,7 @@ int globalizeData(void) if (exists("../GameDataFolder/IGMD")) remove_all("../GameDataFolder/IGMD"); */ create_directory((path)"../GameDataFolder/IGMD"); - copy((path)"packages/VanillaBSL/", (path)"../GameDataFolder"); + copy((path)"packages/VanillaBSL/IGMD", (path)"../GameDataFolder"); setProgressBar( 1000 ); setStatusArea((string)"Done! Now select your mod packages and click install."); // while(1) Sleep(-1); @@ -1567,8 +1568,6 @@ void MainWindow::OnReGlobalizeButtonClic // Tg.create_thread( &globalizeData(), this ); #else globalizeData(); - setProgressBar(1000); - setStatusArea("Done!"); #endif this->InstallButton->Enable();