Ignore:
Timestamp:
Mar 15, 2010, 12:31:14 AM (11 years ago)
Author:
iritscen
Message:

Changed 'Installer replacement failed' message so user can choose not to quit.
Fixed BSL mod package-detecting bug and other dubious flag-detecting code.
Added check for required Installer version when scanning package info files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • AE/Installer/trunk/source/main_window.cpp

    r489 r500  
    4545
    4646bool busy = false;
     47int updateStatus;
     48bool installerJustUpdated = false;
    4749vector<string> globalInstalledMods;
    4850vector<ModPackage> globalPackages;
     
    355357        ::CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, IID_ITaskbarList, (void **)&pTaskbarList);
    356358#endif
     359
     360        updateStatus = GetUpdateStatus(&currentAE, &updateAE, &installerJustUpdated);
    357361       
    358362        globalPackages = getPackages();
    359363        globalInstalledMods = getInstallString();
    360         for (unsigned int i = 0; i < globalPackages.size(); i++) {
     364        for (unsigned int i = 0; i < globalPackages.size(); i++)
     365        {
    361366                Mods_CheckboxList->Append(globalPackages[i].name.c_str());
    362                 if( binary_search(globalInstalledMods.begin(), globalInstalledMods.end(), globalPackages[i].modStringName ) ) Mods_CheckboxList->Check(i);
     367                if (binary_search(globalInstalledMods.begin(), globalInstalledMods.end(), globalPackages[i].modStringName)) Mods_CheckboxList->Check(i);
    363368        }
    364369
Note: See TracChangeset for help on using the changeset viewer.