mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 01:55:25 -04:00
c2ca8cf0d9
Corrected wiki links in welcome screen. Added victor Levasseur to contributors list. git-svn-id: svn://localhost@599 8062f311-0dae-4547-b526-b8ab9ac864a5
40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
#include "CompilationChecker.h"
|
|
#include "GDL/Version.h"
|
|
#include "GDL/VersionWrapper.h"
|
|
#include "GDL/CommonTools.h"
|
|
|
|
using namespace std;
|
|
|
|
bool CompilationChecker::EnsureCorrectGDLVersion()
|
|
{
|
|
string versionString = ToString(GDLVersionWrapper::Major()) + ", " + ToString(GDLVersionWrapper::Minor()) + ", " +
|
|
ToString(GDLVersionWrapper::Build()) + ", " + ToString(GDLVersionWrapper::Revision());
|
|
|
|
if (versionString != RC_FILEVERSION_STRING)
|
|
{
|
|
char beep = 7;
|
|
cout << endl;
|
|
cout << "-- WARNING ! --" << beep << endl;
|
|
cout << "Compiled with a different version of GDL." << endl;
|
|
cout << "GDL DLL Version :" << versionString << endl;
|
|
cout << "Compiled with version :" << RC_FILEVERSION_STRING << endl;
|
|
cout << "---------------" << endl;
|
|
|
|
return false;
|
|
}
|
|
|
|
if ( !GDLVersionWrapper::CompiledForEdittime() )
|
|
{
|
|
char beep = 7;
|
|
std::cout << std::endl;
|
|
std::cout << "-- ERROR ! --" << beep << std::endl;
|
|
std::cout << "GDL build mismatch:" << std::endl;
|
|
std::cout << "IDE is using GDL without edittime support!" << std::endl;
|
|
std::cout << "---------------" << std::endl;
|
|
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|