File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export APP_AUTHOR = jtothebell
7
7
export V_MAJOR = 0
8
8
export V_MINOR = 0
9
9
export V_PATCH = 2
10
- export V_BUILD = 10
10
+ export V_BUILD = 11
11
11
export APP_VERSION = v$(V_MAJOR ) .$(V_MINOR ) .$(V_PATCH ) .$(V_BUILD )
12
12
13
13
Original file line number Diff line number Diff line change 10
10
#include " host.h"
11
11
#include " hostVmShared.h"
12
12
13
+ #if __VITA__
14
+ #include < vitasdk.h>
15
+ #endif
16
+
13
17
14
18
15
19
int main (int argc, char * argv[])
@@ -30,9 +34,26 @@ int main(int argc, char* argv[])
30
34
31
35
vm->SetCartList (host->listcarts ());
32
36
37
+ bool loadCart = false ;
38
+ char * cart;
39
+ char boot_params[1024 ];
40
+
41
+ #if __VITA__
42
+ sceAppMgrGetAppParam (boot_params);
43
+ if (strstr (boot_params," psgm:play" ) && strstr (boot_params, " ¶m=" )) {
44
+ loadCart = true ;
45
+ cart = strstr (boot_params, " ¶m=" ) + 7 ;
46
+ }
47
+ #else
48
+ if (argc > 1 ) {
49
+ cart = argv[1 ];
50
+ loadCart = true ;
51
+ }
52
+ #endif
53
+
33
54
Logger_Write (" Loading Bios cart\n " );
34
- if (argc > 1 ){
35
- vm->LoadCart (argv[ 1 ] );
55
+ if (loadCart ){
56
+ vm->LoadCart (cart );
36
57
}
37
58
else {
38
59
vm->LoadBiosCart ();
You can’t perform that action at this time.
0 commit comments