10 |
|
///////////////////////////////////////////////////////////////////////////// |
11 |
|
#include "boost/thread.hpp" |
12 |
|
#include <boost/thread/mutex.hpp> |
13 |
< |
|
13 |
> |
#include <fstream> |
14 |
|
#include "boost/filesystem.hpp" // includes all needed Boost.Filesystem declarations |
15 |
|
#include "boost/lexical_cast.hpp" //int -> string |
16 |
|
using namespace boost::filesystem; |
110 |
|
////@end AEInstallerApp initialisation |
111 |
|
TheWindow = mainWindow; |
112 |
|
|
113 |
+ |
#ifndef WIN32 |
114 |
+ |
// CIP: test for the third-party mono framework, because without it, on Mac, we are up a creek |
115 |
+ |
|
116 |
+ |
|
117 |
+ |
if (!monoPresent) // abort! abort! abort! |
118 |
+ |
{ |
119 |
+ |
// CIP: disable window controls, present alert with URL to download mono, alert window has one button, "Quit" |
120 |
+ |
} |
121 |
+ |
#endif |
122 |
+ |
|
123 |
|
//anything after this is done after the window appears... |
124 |
|
if ( !exists("../GameDataFolder") ) { |
125 |
|
wxMessageDialog* YesNoDialog = new wxMessageDialog(TheWindow, "You haven't globalized yet! \nYou must globalize to use the Anniversary Edition framework. \nWould you like to globalize now? (This could take a while...)\n(Selecting \"No\" will exit this program...)", "AE Installer Alert", wxYES_NO | wxICON_EXCLAMATION , wxDefaultPosition); |