Skip to content

Instantly share code, notes, and snippets.

@andymasteroffish
Created May 29, 2018 20:27
Show Gist options
  • Save andymasteroffish/5a3ed9c787bf46fff46a22b2dc6e45e7 to your computer and use it in GitHub Desktop.
Save andymasteroffish/5a3ed9c787bf46fff46a22b2dc6e45e7 to your computer and use it in GitHub Desktop.
openFrameworks function to launch a website used for Dream BoxXx
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