ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/AE/Installer/trunk/source/aeinstallerapp.cpp
(Generate patch)

Comparing AE/Installer/trunk/source/aeinstallerapp.cpp (file contents):
Revision 382 by iritscen, Sun Jul 5 14:11:22 2009 UTC vs.
Revision 393 by iritscen, Mon Jul 6 15:39:35 2009 UTC

# Line 113 | Line 113 | bool AEInstallerApp::OnInit()
113   #ifndef WIN32
114          // test for the third-party mono framework, because without it, on Mac, we are up a creek
115          char monoCommand[300] = "which mono >> ";
116 <        strcat(monoCommand, system_complete("./mono_check.log").string().c_str());
116 >        strcat(monoCommand, escapePath(system_complete("mono_check.log").string()).c_str());
117          system(monoCommand);
118          fstream file;
119 <        file.open("./mono_check.log");
119 >        file.open("mono_check.log");
120          string line;
121          int line_count = 0;
122          while (!file.eof())
# Line 125 | Line 125 | bool AEInstallerApp::OnInit()
125                  getline(file, line);
126          }
127          file.close();
128 <        remove("./mono_check.log");
128 >        remove("mono_check.log");
129          
130          if (line_count <= 1) // this means that "which mono" returned nothing -- abort! abort! abort!
131          {
# Line 137 | Line 137 | bool AEInstallerApp::OnInit()
137   #endif
138  
139          //anything after this is done after the window appears...
140 +
141          if ( !exists("../GameDataFolder") )
142          {
143                  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);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)