Android: Ensure we forget the shortcut on next run.

Prevents an issue where we would use the shortcut param again when
starting the app directly.
This commit is contained in:
Unknown W. Brackets 2020-03-08 14:58:42 -07:00
parent ac909d2192
commit fc8306dde1
3 changed files with 3 additions and 0 deletions

View File

@ -2732,6 +2732,7 @@ static int IoAsyncFinish(int id) {
default:
ERROR_LOG_REPORT(SCEIO, "Unknown async op %d", params.op);
us = 0;
break;
}

View File

@ -538,6 +538,7 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
const char *stateToLoad = 0;
bool gotBootFilename = false;
boot_filename = "";
// Parse command line
LogTypes::LOG_LEVELS logLevel = LogTypes::LINFO;

View File

@ -88,6 +88,7 @@ public class PpssppActivity extends NativeActivity {
super.setShortcutParam(getIntent().getStringExtra(SHORTCUT_EXTRA_KEY));
} else {
Log.e(TAG, "Shortcut missing parameter!");
super.setShortcutParam("");
}
}
super.onCreate(savedInstanceState);