| 1 |
filter mod-types from combobox with no nodes |
| 2 |
|
| 3 |
save current installed config |
| 4 |
|
| 5 |
install |
| 6 |
select all (only of current type?) |
| 7 |
revert - select mods that are currently installed |
| 8 |
|
| 9 |
|
| 10 |
globalization: |
| 11 |
|
| 12 |
installation: |
| 13 |
- remove current .dat/.raw/.sep from GDF |
| 14 |
- remove current BSL-folders? |
| 15 |
- combine vanilla+default-mods+selected-mods |
| 16 |
- combine BSL |
| 17 |
|
| 18 |
|
| 19 |
orig: |
| 20 |
globalization: installer.cpp/h - globalizeData() in #31 |
| 21 |
installation: installer.cpp/h - recompileAll() in #500 |
| 22 |
|
| 23 |
#ifdef WIN32 |
| 24 |
bool splitInstances = false; |
| 25 |
string strImportOption = "-import:nosep"; |
| 26 |
string strOniSplit = "Onisplit.exe"; |
| 27 |
#else |
| 28 |
bool splitInstances = false; |
| 29 |
string strImportOption = "-import:sep"; |
| 30 |
string strOniSplit = "mono Onisplit.exe"; |
| 31 |
#endif |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
check .net>2.0: |
| 37 |
win: http://msdn.microsoft.com/en-us/kb/kbarticle.aspx?id=318785 |
| 38 |
HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP\v2.0.50727: dword "Install" = 1 |
| 39 |
system("start http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5"); |
| 40 |
|
| 41 |
mac: |
| 42 |
fWhichMono = popen("which mono", "r"); |
| 43 |
fgets(chrWhichMono, sizeof(chrWhichMono), fWhichMono); |
| 44 |
pclose(fWhichMono); |
| 45 |
string strWhichMono = (string)chrWhichMono; |
| 46 |
string::size_type loc = strWhichMono.find("mono", 0); |
| 47 |
|
| 48 |
if (loc == string::npos) // this means that "which mono" did not return a path leading to the mono binary -- abort! abort! abort! |
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
check globalization: |
| 53 |
bool CheckForGlobalization(bool justDoIt) |
| 54 |
{ |
| 55 |
if (!exists("../GameDataFolder")) |
| 56 |
{ |
| 57 |
string globMsg = "You haven't globalized yet!\n"; |
| 58 |
globMsg = globMsg + "You must globalize to use the Anniversary Edition framework.\n" + |
| 59 |
"Would you like to globalize now? (This could take a while...)\n" + |
| 60 |
"(Selecting \"No\" will exit this program...)"; |
| 61 |
wxMessageDialog* YesNoDialog = new wxMessageDialog(TheWindow, globMsg.c_str(), "AE Installer Alert", wxYES_NO | wxICON_EXCLAMATION, wxDefaultPosition); |
| 62 |
|
| 63 |
if (YesNoDialog->ShowModal() == wxID_NO) // if the user said no... |
| 64 |
{ |
| 65 |
TheWindow->Close(); |
| 66 |
return true; |
| 67 |
} |
| 68 |
} |
| 69 |
else if (!justDoIt) |
| 70 |
return false; |
| 71 |
// Code below this point runs if user clicks "Yes" or if they are never asked but justDoIt is true |
| 72 |
#ifdef WIN32 |
| 73 |
boost::thread thrd3(globalize2); |
| 74 |
#else // cannot use multi-threading in Mac build |
| 75 |
TheWindow->InstallButton->Disable(); |
| 76 |
TheWindow->ReglobalizeButton->Disable(); |
| 77 |
globalizeData(); |
| 78 |
TheWindow->InstallButton->Enable(); |
| 79 |
TheWindow->ReglobalizeButton->Enable(); |
| 80 |
#endif |
| 81 |
|
| 82 |
return true; |
| 83 |
} |