mirror of
https://github.com/wiiu-env/EnvironmentLoader.git
synced 2024-11-23 14:39:15 +01:00
Cause an OSFatal when the EnvironmentLoader has been loaded twice
This commit is contained in:
parent
66dc52a537
commit
2e61281d0a
@ -93,6 +93,16 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
|
|
||||||
|
if (IOS_Open((char *) ("/dev/iosuhax"), static_cast<IOSOpenMode>(0)) >= 0) {
|
||||||
|
auto checkTiramisuHBL = fopen("fs:/vol/external01/wiiu/environments/tiramisu/modules/setup/50_hbl_installer.rpx", "r");
|
||||||
|
if(checkTiramisuHBL != nullptr){
|
||||||
|
fclose(checkTiramisuHBL);
|
||||||
|
OSFatal("Don't run the EnvironmentLoader twice.\n\nIf you want to open the Homebrew Launcher, launch the Mii Maker\ninstead.");
|
||||||
|
} else {
|
||||||
|
OSFatal("Don't run the EnvironmentLoader twice.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DEBUG_FUNCTION_LINE("Hello from EnvironmentLoader!");
|
DEBUG_FUNCTION_LINE("Hello from EnvironmentLoader!");
|
||||||
|
|
||||||
char environmentPath[0x100];
|
char environmentPath[0x100];
|
||||||
|
Loading…
Reference in New Issue
Block a user