Changeset 565 for AE/Installer/trunk/source
- Timestamp:
- Jun 1, 2010, 3:13:59 PM (15 years ago)
- Location:
- AE/Installer/trunk/source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/about.cpp
r548 r565 112 112 113 113 string aboutText = "AE Installer v"; 114 aboutText = aboutText + INSTALLER_VERSION;114 aboutText = aboutText + gInstallerVersion; 115 115 aboutText = aboutText + "\nby Gumby and Iritscen\n\n" + 116 116 "AE Credits:\n" + -
AE/Installer/trunk/source/globals.h
r553 r565 40 40 using namespace std; 41 41 42 //#pragma mark DEFINES43 #define INSTALLER_VERSION "1.1" // only place in source we need to change this44 42 #define UPDATE_LOG_READ_ERR -1 45 43 #define UPDATE_INST_REPL_ERR -2 … … 51 49 #define UPDATE_CONT_UPD 4 52 50 #define UPDATE_PKG_AVAIL 5 53 //#pragma mark STRUCTS 51 54 52 struct ModPackage 55 53 { … … 91 89 }; 92 90 93 94 //#pragma mark PROTOTYPES95 91 void recompileAll(vector<string>); 96 92 int globalizeData(void); … … 106 102 void copy_directory(const path &from_dir_ph, const path &to_dir_ph); 107 103 void copy(const path &from_file_ph, const path &to_file_ph); 104 105 static string gInstallerVersion = "1.11"; // only place in source we need to change this -
AE/Installer/trunk/source/installer.cpp
r562 r565 25 25 using namespace boost::posix_time; 26 26 27 // externs declared in installer.h28 27 string strInstallCfg = "../GameDataFolder/Add.cfg"; 29 28 string strEUFN = "Edition"; // GetUpdateStatus() may set this to "Edition-patch" later, but this is the assumed name of the new Edition folder in Updates/ … … 349 348 { 350 349 package = fileToModPackage(file, dir_itr->path().filename()); 351 if (package.installerVersion.compare(INSTALLER_VERSION) < 1) // if mod requires newer version of the Installer, we won't add it to the list 350 351 if (package.installerVersion.compare(gInstallerVersion) < 1) // if mod requires newer version of the Installer, we won't add it to the list 352 352 { 353 353 #ifdef WIN32 … … 375 375 { 376 376 ModPackage package; 377 string line;378 377 const string AEInstallVersion = "AEInstallVersion"; // used for comparing to the current token... 379 378 const string NameOfMod = "NameOfMod"; … … 393 392 while (!file.eof()) 394 393 { 395 getline(file,line); 396 vector<string> tokens; 394 string line; 395 getline(file, line); 396 vector<string> tokens; 397 397 vector<string>::iterator iter; 398 398 tokenize(line, tokens); 399 399 if (tokens.capacity() >= 3) 400 400 { 401 for (int a = 0; a < tokens.size(); a++) 402 StripNewlines(&tokens.at(a)); 401 403 iter = tokens.begin(); 402 404 403 405 if (!AEInstallVersion.compare(*iter)) 404 406 { … … 942 944 { 943 945 readingInstallerVersion = false; 944 string installerVersion = INSTALLER_VERSION; 945 if (installerVersion.compare(*iter)) // then the shell script-powered replacement failed 946 if (gInstallerVersion.compare(*iter)) // then the shell script-powered replacement failed 946 947 return UPDATE_INST_REPL_ERR; 947 948 else … … 957 958 ptime startTime(second_clock::local_time()); 958 959 string strStartTime = to_simple_string(startTime); 959 string newUpdateLine = installerVersion + " on " + strStartTime;960 string newUpdateLine = gInstallerVersion + " on " + strStartTime; 960 961 for (int a = 0; a < lines.capacity() - 2; a++) // if there were even lines in the log before this at all 961 962 { … … 987 988 { 988 989 string strNewInstallerPath = "../updates/" + strEUFN + "/install/" + strInstallerName; 989 string installerVersion = INSTALLER_VERSION; 990 if (updateAE->InstallerVersion.compare(installerVersion) >= 1) 990 if (updateAE->InstallerVersion.compare(gInstallerVersion) >= 1) 991 991 { 992 992 if (exists(strNewInstallerPath)) … … 1030 1030 if (updatePackage.modStringVersion > installedPackage.modStringVersion) 1031 1031 { 1032 if (updatePackage.installerVersion <= INSTALLER_VERSION)1032 if (updatePackage.installerVersion.compare(gInstallerVersion) < 1) 1033 1033 return UPDATE_PKG_AVAIL; 1034 1034 } … … 1617 1617 if (updatePackage.modStringVersion > installedPackage.modStringVersion) 1618 1618 { 1619 if (updatePackage.installerVersion <= INSTALLER_VERSION)1619 if (updatePackage.installerVersion.compare(gInstallerVersion) < 1) 1620 1620 { 1621 1621 if(exists(strPathToPackages + "/" + updatePackage.modStringName)) { … … 1690 1690 /* StripNewlines() gets rids of any linebreaks that come from text returned by getline(); \ 1691 1691 | getline() should be stripping those out, but Windows CR/LF files seem to be sneaking | 1692 \ some extra return characters into strings in the ReadInstallInfoCfg() function.*/1692 \ some extra return characters into strings. */ 1693 1693 void StripNewlines(string *theLine) 1694 1694 { -
AE/Installer/trunk/source/main_window.cpp
r526 r565 289 289 StatusArea->SetName(_T("StatusArea")); 290 290 StatusArea->SetFieldsCount(1); 291 string versionText = "AE Installer v" + (string)INSTALLER_VERSION;291 string versionText = "AE Installer v" + gInstallerVersion; 292 292 StatusArea->SetStatusText(versionText.c_str(), 0); 293 293 itemBoxSizer2->Add(StatusArea, 0, wxGROW|wxALL, 0);
Note:
See TracChangeset
for help on using the changeset viewer.