| 27 |  | // externs declared in installer.h | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 28 |  | string strInstallCfg = "../GameDataFolder/Add.cfg"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 29 |  | string strEUFN = "Edition"; // GetUpdateStatus() may set this to "Edition-patch" later, but this is the assumed name of the new Edition folder in Updates/ | 
 
 
 
 
 
 
 
 | 30 | + | extern MainWindow* TheWindow; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 31 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 32 |  | int globalizeData(void) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 33 |  | { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 976 |  | ModPackage installedPackage, updatePackage; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 977 |  | if (is_directory(install_iter->path()) && exists(install_iter->path().string() + "/Mod_Info.cfg")) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 978 |  | { | 
 
 
 
 
 
 
 
 
 | 978 | – | string blah =install_iter->path().string() + "/Mod_Info.cfg"; | 
 
 
 
 
 
 
 
 
 | 979 | – | string blah2 = "packages/" + install_iter->path().filename() + "/Mod_Info.cfg"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 979 |  | fstream file; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 980 |  | file.open((install_iter->path().string() + "/Mod_Info.cfg").c_str()); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 981 |  | if (!file.fail()) | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1492 |  | TheWindow->OnRefreshButtonClick( e ); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1493 |  | return true; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1494 |  | } | 
 
 
 
 
 
 
 
 
 
 
 | 1495 | < | extern MainWindow* TheWindow; | 
 
 
 
 
 
 
 
 
 | 1495 | > |  | 
 
 
 
 
 
 
 
 
 
 
 | 1496 |  | void ProcessPackageUpdates(string pathToUpdate, string strPathToPackages) | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1497 |  | { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1498 |  | ptime startTime(second_clock::local_time()); |