Skip to content

Commit

Permalink
Fixed two minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOfficialFloW committed Apr 16, 2017
1 parent 4158ac2 commit f99d5a5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions readme.txt
Expand Up @@ -13,6 +13,10 @@
- IMPORTANT NOTE -
For 6.61 Adrenaline-2 or higher, you must put Adrenaline files to 'ux0:adrenaline' instead of 'ux0:pspemu/adrenaline'.

- Changelog v3 fix -
- Fixed bug where 'Cannot find application' would show up instead of returning to livearea.
- Fixed bug where you couldn't access the Adrenaline Menu after enabling/disabling wifi.

- Changelog v3 -
- Added ability to launch PS1 games from XMB and play them with full sound.
- Added ability to save and load states using the 'States' tab in the Adrenaline menu.
Expand Down
10 changes: 5 additions & 5 deletions user/main.c
Expand Up @@ -101,7 +101,7 @@ uint32_t text_addr, text_size, data_addr, data_size;

static int lock_power = 0;

static char cur_titleid[12];
static char app_titleid[12];

SceUID usbdevice_modid = -1;

Expand Down Expand Up @@ -350,7 +350,7 @@ static int AdrenalineExit(SceSize args, void *argp) {
if (doubleClick(SCE_CTRL_PS_BTN, 300 * 1000)) {
stopUsb(usbdevice_modid);

if (sceAppMgrLaunchAppByName2(cur_titleid, NULL, NULL) < 0)
if (sceAppMgrLaunchAppByName2(app_titleid, NULL, NULL) < 0)
ScePspemuErrorExit(0);
}
}
Expand Down Expand Up @@ -521,9 +521,6 @@ static SceUID sceKernelCreateThreadPatched(const char *name, SceKernelThreadEntr
static int ScePspemuInitTitleSpecificInfoPatched(const char *titleid, SceUID uid) {
int res = 0;

// Copy titleid
strncpy(cur_titleid, titleid, sizeof(cur_titleid));

// Make __sce_menuinfo path
snprintf((char *)(data_addr + 0x11C7D0C), 0x80, "ms0:PSP/GAME/%s/__sce_menuinfo", titleid);

Expand Down Expand Up @@ -805,6 +802,9 @@ void _start() __attribute__ ((weak, alias("module_start")));
int module_start(SceSize args, void *argp) {
int res;

// Get app titleid
sceAppMgrGetNameById(sceKernelGetProcessId(), app_titleid);

// Init vita newlib
_init_vita_newlib();

Expand Down
2 changes: 1 addition & 1 deletion user/menu.c
Expand Up @@ -482,7 +482,7 @@ int AdrenalineDraw(SceSize args, void *argp) {
int ScePspemuCustomSettingsHandler(int a1, int a2, int a3, int a4) {
if (a2 == 3) {
EnterAdrenalineMenu();
} else {
} else if (a2 == 1) {
sceKernelWaitSema(settings_semaid, 1, NULL);

if (!open_official_settings) {
Expand Down

0 comments on commit f99d5a5

Please sign in to comment.