Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
Merge pull request #82 from jtothebell/VitaLauncher
Browse files Browse the repository at this point in the history
Vita launcher
  • Loading branch information
jtothebell authored Jul 5, 2021
2 parents 9cb2d0a + 169d918 commit ac327b9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export APP_AUTHOR = jtothebell
export V_MAJOR = 0
export V_MINOR = 0
export V_PATCH = 2
export V_BUILD = 10
export V_BUILD = 11
export APP_VERSION = v$(V_MAJOR).$(V_MINOR).$(V_PATCH).$(V_BUILD)


Expand Down
25 changes: 23 additions & 2 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#include "host.h"
#include "hostVmShared.h"

#if __VITA__
#include <vitasdk.h>
#endif



int main(int argc, char* argv[])
Expand All @@ -30,9 +34,26 @@ int main(int argc, char* argv[])

vm->SetCartList(host->listcarts());

bool loadCart = false;
char* cart;
char boot_params[1024];

#if __VITA__
sceAppMgrGetAppParam(boot_params);
if (strstr(boot_params,"psgm:play") && strstr(boot_params, "&param=")) {
loadCart = true;
cart = strstr(boot_params, "&param=") + 7;
}
#else
if (argc > 1) {
cart = argv[1];
loadCart = true;
}
#endif

Logger_Write("Loading Bios cart\n");
if (argc > 1){
vm->LoadCart(argv[1]);
if (loadCart){
vm->LoadCart(cart);
}
else {
vm->LoadBiosCart();
Expand Down

0 comments on commit ac327b9

Please sign in to comment.