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 |
– |
|
23 |
|
|
24 |
|
|
25 |
|
|
28 |
|
mac: which mono |
29 |
|
|
30 |
|
http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5 |
41 |
– |
|
42 |
– |
|
43 |
– |
|
44 |
– |
check globalization: |
45 |
– |
bool CheckForGlobalization(bool justDoIt) |
46 |
– |
{ |
47 |
– |
if (!exists("../GameDataFolder")) |
48 |
– |
{ |
49 |
– |
string globMsg = "You haven't globalized yet!\n"; |
50 |
– |
globMsg = globMsg + "You must globalize to use the Anniversary Edition framework.\n" + |
51 |
– |
"Would you like to globalize now? (This could take a while...)\n" + |
52 |
– |
"(Selecting \"No\" will exit this program...)"; |
53 |
– |
wxMessageDialog* YesNoDialog = new wxMessageDialog(TheWindow, globMsg.c_str(), "AE Installer Alert", wxYES_NO | wxICON_EXCLAMATION, wxDefaultPosition); |
54 |
– |
|
55 |
– |
if (YesNoDialog->ShowModal() == wxID_NO) // if the user said no... |
56 |
– |
{ |
57 |
– |
TheWindow->Close(); |
58 |
– |
return true; |
59 |
– |
} |
60 |
– |
} |
61 |
– |
else if (!justDoIt) |
62 |
– |
return false; |
63 |
– |
// Code below this point runs if user clicks "Yes" or if they are never asked but justDoIt is true |
64 |
– |
#ifdef WIN32 |
65 |
– |
boost::thread thrd3(globalize2); |
66 |
– |
#else // cannot use multi-threading in Mac build |
67 |
– |
TheWindow->InstallButton->Disable(); |
68 |
– |
TheWindow->ReglobalizeButton->Disable(); |
69 |
– |
globalizeData(); |
70 |
– |
TheWindow->InstallButton->Enable(); |
71 |
– |
TheWindow->ReglobalizeButton->Enable(); |
72 |
– |
#endif |
73 |
– |
|
74 |
– |
return true; |
75 |
– |
} |