Merge pull request #2007 from janisozaur/platform

Platform name
This commit is contained in:
Ted John 2015-10-02 23:19:00 +01:00
commit 2dfcbd82a1
2 changed files with 10 additions and 4 deletions

View File

@ -90,9 +90,7 @@ int cmdline_run(const char **argv, int argc)
argc = argparse_parse(&argparse, argc, argv);
if (version) {
printf("%s v%s\n", OPENRCT2_NAME, OPENRCT2_VERSION);
printf("%s (%s)\n", OPENRCT2_PLATFORM, OPENRCT2_ARCHITECTURE);
printf("%s\n", OPENRCT2_TIMESTAMP);
print_launch_information();
return 0;
}

View File

@ -85,7 +85,15 @@ typedef utf16* utf16string;
#define OPENRCT2_NAME "OpenRCT2"
#define OPENRCT2_VERSION "0.0.3"
#define OPENRCT2_ARCHITECTURE "x86"
#define OPENRCT2_PLATFORM "Windows"
#ifdef _WIN32
#define OPENRCT2_PLATFORM "Windows"
#endif // _WIN32
#ifdef __linux__
#define OPENRCT2_PLATFORM "Linux"
#endif
#ifndef OPENRCT2_PLATFORM
#error Unknown platform!
#endif
#define OPENRCT2_TIMESTAMP __DATE__ " " __TIME__
// The following constants are for automated build servers