Skip to content

Commit

Permalink
preparing for beta...
Browse files Browse the repository at this point in the history
  • Loading branch information
Ironbell committed Nov 23, 2017
1 parent 8230026 commit d616d33
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
// Resolve .app package internal resource path for mac builds
// #define APPLE_APP_BUILD

#define DEBUG
#define BETA
// #define DEBUG

#ifdef _WIN32
#define _WIN32_WINNT 0x0500
Expand All @@ -29,22 +28,6 @@ std::string g_documentsPath = "";

int main(int argc, char* argv[]) {

#ifdef BETA
time_t timeNow = time(NULL);
tm now;
tm* nowTemp = gmtime(&timeNow);
std::memcpy(&now, nowTemp, sizeof(now));

if (nowTemp->tm_year >= 117) { // 2017
if (nowTemp->tm_mon >= 10) { // november
if (nowTemp->tm_mday >= 30) { // the 30th
return 0;
}
}
}
#endif // BETA


// show console window in windows only when debug mode is enabled.
#ifndef DEBUG
#ifdef _WIN32
Expand Down

0 comments on commit d616d33

Please sign in to comment.