| 390 |
|
const string GlobalNeeded = "GlobalNeeded"; |
| 391 |
|
const string Category = "Category"; |
| 392 |
|
const string Creator = "Creator"; |
| 393 |
– |
package.modStringName = modName; |
| 393 |
|
while (!file.eof()) |
| 394 |
|
{ |
| 395 |
|
getline(file,line); |
| 420 |
|
iter++; |
| 421 |
|
package.modStringVersion = atof((*iter).c_str()); |
| 422 |
|
} |
| 423 |
< |
else if (!ModString.compare(*iter)) |
| 423 |
> |
else if (!ModVersion.compare(*iter)) |
| 424 |
|
{ |
| 425 |
|
iter++; iter++; |
| 426 |
|
package.modStringVersion = atof((*iter).c_str()); |
| 491 |
|
} |
| 492 |
|
} |
| 493 |
|
} |
| 494 |
< |
|
| 494 |
> |
package.modStringName = modName; |
| 495 |
|
return package; |
| 496 |
|
} |
| 497 |
|
|
| 657 |
|
vector<string> skippedfolders; |
| 658 |
|
|
| 659 |
|
ofstream BSLlog("BSL.log"); |
| 660 |
< |
if(exists("../GameDataFolder/BSLBackup/")) { |
| 662 |
< |
remove_all("../GameDataFolder/BSLBackup/"); |
| 663 |
< |
} |
| 664 |
< |
else { |
| 660 |
> |
if(!exists("../GameDataFolder/BSLBackup/")) { |
| 661 |
|
create_directory("../GameDataFolder/BSLBackup/"); |
| 662 |
+ |
copy("../GameDataFolder/IGMD/", "../GameDataFolder/BSLBackup/"); |
| 663 |
|
} |
| 664 |
< |
copy("../GameDataFolder/IGMD/", "../GameDataFolder/BSLBackup/"); |
| 664 |
> |
|
| 665 |
|
for ( directory_iterator dir_itr( "../GameDataFolder/IGMD/" ), end_itr; |
| 666 |
|
dir_itr != end_itr; |
| 667 |
|
++dir_itr ) { |
| 762 |
|
bsl_itr != end_itr; |
| 763 |
|
bsl_itr++ ) { |
| 764 |
|
if ( bsl_itr->path().extension() == ".bsl" ) { |
| 765 |
+ |
if(exists("../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename())) |
| 766 |
+ |
remove("../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename()); |
| 767 |
|
copy_file(bsl_itr->path(), "../GameDataFolder/IGMD/" + dir_itr->path().filename() + "/" + bsl_itr->path().filename()); |
| 768 |
|
} |
| 769 |
|
} |
| 1478 |
|
#ifndef WIN32 |
| 1479 |
|
rename((path)("../" + thePath), (path)(strTrashDir + thePath)); |
| 1480 |
|
#else |
| 1481 |
< |
remove((path)("../" + thePath)); |
| 1481 |
> |
remove_all((path)("../" + thePath)); |
| 1482 |
|
#endif |
| 1483 |
|
} |
| 1484 |
|
} |
| 1550 |
|
} |
| 1551 |
|
catch (exception & ex) |
| 1552 |
|
{ |
| 1553 |
+ |
wxMessageDialog* DotNetDialogOfDeath = |
| 1554 |
+ |
new wxMessageDialog(TheWindow, ex.what(), "AE Installer Alert", |
| 1555 |
+ |
wxICON_EXCLAMATION , wxDefaultPosition); |
| 1556 |
+ |
|
| 1557 |
+ |
DotNetDialogOfDeath->ShowModal(); |
| 1558 |
|
setStatusArea("Warning, handled exception: " + (string)ex.what()); |
| 1559 |
|
return false; |
| 1560 |
|
} |