Created
May 29, 2018 20:27
-
-
Save andymasteroffish/5a3ed9c787bf46fff46a22b2dc6e45e7 to your computer and use it in GitHub Desktop.
openFrameworks function to launch a website used for Dream BoxXx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ofApp::launchWeb(string url) { | |
if (isFullScreened()) { | |
ofToggleFullscreen(); | |
} | |
std::wstring pathTemp = std::wstring(url.begin(), url.end()); | |
LPCWSTR pathLPC = pathTemp.c_str(); | |
ShellExecute(0, 0, pathLPC, 0, 0, SW_MAXIMIZE); | |
canSelectGame = false; | |
if (closeAfterLaunchingGame) { | |
ofExit(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment