Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Commit

Permalink
ATTEMPT FIX NOTIFY
Browse files Browse the repository at this point in the history
  • Loading branch information
sugarleaf committed May 20, 2018
1 parent e3d9b54 commit 238b1ff
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions Firmware/MiraFW/src/entrypoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,11 @@ void* mira_entry(void* args)
if (!result)
return NULL;

return NULL;
}

int init_oni()
/*
This is the OniFramework entry where platform specific
configurations should be set up and the framework initialized
*/
{
// Elevate to kernel
SelfElevateAndRun((uint8_t*)0x926200000, 0x80000, oni_kernelInitialization);

// Prompt the user
int64_t moduleId = sys_dynlib_load_prx("libSceSysUtil.sprx");
int(*sceSysUtilSendSystemNotificationWithText)(int messageType, int userID, char* message) = NULL;

// TODO: Fix, this call fails and never populates sceSysUtilSendSystemNotificationWithText investigate why
sys_dynlib_dlsym(moduleId, "sceSysUtilSendSystemNotificationWithText", &sceSysUtilSendSystemNotificationWithText);

if (sceSysUtilSendSystemNotificationWithText)
Expand All @@ -100,6 +89,18 @@ int init_oni()

sys_dynlib_unload_prx(moduleId);

return NULL;
}

int init_oni()
/*
This is the OniFramework entry where platform specific
configurations should be set up and the framework initialized
*/
{
// Elevate to kernel
SelfElevateAndRun((uint8_t*)0x926200000, 0x80000, oni_kernelInitialization);

return true;
}

Expand Down

0 comments on commit 238b1ff

Please sign in to comment.