std::vector<char*> vargs;
// start index 1 to avoid passing executable name "dotnet-launcher" as a parameter
- for (i = 1; i <argc; i++) {
+ for (i = 1; i < argc; i++) {
if (VersionOption.compare(argv[i]) == 0) {
printf("Dotnet launcher Version %s\n", LAUNCHER_VERSION_STR);
return 0;
char** args = &vargs[0];
if (runtime->launch(appId, appRoot.c_str(), standalonePath, argsLen, args)) {
_ERR("Failed to launch");
- return 0;
+ return 1;
}
} else {
Launchpad.onCreate = [&runtime]() {
};
Launchpad.onTerminate = [&runtime](const AppInfo& appInfo, int argc, char** argv) {
- _DBG("terminated with app path : %s", appInfo.path.c_str());
+ _DBG("launch request with app path : %s", appInfo.path.c_str());
_DBG("appId : %s", appInfo.id.c_str());
_DBG("pkg : %s", appInfo.pkg.c_str());
_DBG("type : %s", appInfo.type.c_str());