Skip to content

Commit

Permalink
fix for issue (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed Feb 3, 2025
1 parent 8bcafd6 commit 3589f63
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions extras/menus/arkMenu/src/browser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,9 @@ void Browser::installPlugin(){
{3, "VSH (XMB)"},
{4, "UMD/ISO"},
{5, "Homebrew"},
{6, "<Game ID>"},
{7, "<LoadStart Module>"},
{6, "Launcher"},
{7, "<Game ID>"},
{8, "<LoadStart Module>"},
};

optionsmenu = new OptionsMenu("Install Plugin", sizeof(options_entries)/sizeof(t_options_entry), options_entries);
Expand All @@ -353,11 +354,11 @@ void Browser::installPlugin(){

string mode;

if (ret < 6){
char* modes[] = {"always", "game", "ps1", "xmb", "psp", "homebrew"};
if (ret < 7){
char* modes[] = {"always", "game", "ps1", "xmb", "psp", "homebrew", "launcher"};
mode = modes[ret];
}
else if (ret == 6){
else if (ret == 7){
SystemMgr::pauseDraw();
OSK osk;
osk.init("Game ID (i.e. ULUS01234)", (TextEditor::clipboard.size() > 0)? TextEditor::clipboard.c_str() : "", 50);
Expand All @@ -373,7 +374,7 @@ void Browser::installPlugin(){
SystemMgr::resumeDraw();
if (osk_res == OSK_CANCEL) return;
}
else if (ret == 7){
else if (ret == 8){
const char* path = e->getPath().c_str();
int uid = kuKernelLoadModule(path, 0, NULL);
int res = sceKernelStartModule(uid, strlen(path) + 1, (void*)path, NULL, NULL);
Expand Down

0 comments on commit 3589f63

Please sign in to comment.