1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-29 00:41:38 +02:00

Attempt to apply patch from stopiccot.

This commit is contained in:
Michał W. Urbańczyk
2013-03-01 21:32:26 +00:00
parent 01d1029b1f
commit 8c7c4789ca
8 changed files with 74 additions and 6 deletions

View File

@ -173,6 +173,9 @@ static void prog_help(const po::options_description &opts)
// printf(" -v, --version display version information and exit\n");
}
#ifdef __APPLE__
void OSX_checkForUpdates();
#endif
#ifdef _WIN32
int _tmain(int argc, _TCHAR* argv[])
@ -188,6 +191,9 @@ int main(int argc, char** argv)
std::string workDir = executablePath.substr(0, executablePath.rfind('/'));
chdir(workDir.c_str());
// Check for updates
OSX_checkForUpdates();
// Check that game data is prepared. Otherwise run vcmibuilder helper application
FILE* check = fopen((GVCMIDirs.UserPath + "/game_data_prepared").c_str(), "r");
if (check == NULL) {