Skip to content

Commit

Permalink
Expire build on 2021-06-01
Browse files Browse the repository at this point in the history
  • Loading branch information
danstiner committed Mar 26, 2021
1 parent 2597ed0 commit 8e848e8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions UI/obs-app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1421,13 +1421,28 @@ bool OBSApp::OBSInit()
ResetHotkeyState(state == Qt::ApplicationActive);
});
ResetHotkeyState(applicationState() == Qt::ApplicationActive);

struct tm expiration {};
expiration.tm_year = 2021 - 1900;
expiration.tm_mon = 6 - 1;
expiration.tm_mday = 1;
double timeRemaining = difftime(mktime(&expiration), time(NULL));
blog(LOG_WARNING, "Expirimental build, expires in: %d seconds", timeRemaining);
if (timeRemaining <= 0.0) {
OBSCrashReport expired(mainWindow, "This experimental OBS build has expired, please switch to an official OBS build.");
expired.exec();
return false;
}

return true;
}

string OBSApp::GetVersionString() const
{
stringstream ver;

ver << "- EXPERIMENTAL Glimesh.tv build, expires 2021-06-01 - ";

#ifdef HAVE_OBSCONFIG_H
ver << OBS_VERSION;
#else
Expand Down

0 comments on commit 8e848e8

Please sign in to comment.