Changeset 502
- Timestamp:
- Mar 22, 2010, 5:51:50 PM (15 years ago)
- Location:
- AE/Installer/trunk/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/globals.h
r500 r502 59 59 string modStringName; 60 60 int modStringVersion; 61 string platform; 61 62 bool hasOnis; 62 63 bool hasDeltas; -
AE/Installer/trunk/source/installer.cpp
r500 r502 343 343 package = fileToModPackage(file); 344 344 if (package.installerVersion.compare(INSTALLER_VERSION) < 1) // if mod requires newer version of the Installer, we won't add it to the list 345 packages.push_back(package); 345 { 346 #ifdef WIN32 347 if (!package.platform.compare("Windows") || !package.platform.compare("Both")) // don't show package if it's not for the right OS 348 #else 349 if (!package.platform.compare("Macintosh") || !package.platform.compare("Both")) 350 #endif 351 packages.push_back(package); 352 } 346 353 } 347 354 file.close(); … … 374 381 static string ARROW = "->"; 375 382 static string ModString = "ModString"; 383 static string Platform = "Platform"; 376 384 static string HasOnis = "HasOnis"; 377 385 static string HasDeltas = "HasDeltas"; … … 412 420 iter++; 413 421 package.modStringVersion = atoi((*iter).c_str()); 422 } 423 else if (!Platform.compare(*iter)) 424 { 425 iter++; iter++; 426 package.platform = *iter; 414 427 } 415 428 else if (!HasOnis.compare(*iter)) … … 1614 1627 modStringName = ""; 1615 1628 modStringVersion = 0; 1629 platform = "Both"; 1616 1630 hasOnis = false; 1617 1631 hasDeltas = false;
Note:
See TracChangeset
for help on using the changeset viewer.