Skip to content

Commit

Permalink
Merge pull request #232 from illusion0001/patch-1
Browse files Browse the repository at this point in the history
App launching definitions (from @LightningMods)
  • Loading branch information
kiwidoggie authored Jul 6, 2023
2 parents d7c3e6a + 897ef8f commit 8edbc32
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 6 deletions.
9 changes: 4 additions & 5 deletions include/orbis/ShellUIUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,25 @@
#define _SCE_SHELL_UI_UTIL_H_

#include <stdint.h>
#include <orbis/_types/shell_ui.h>

#ifdef __cplusplus
extern "C" {
#endif


// Empty Comment
void sceShellUIUtilGetAppUrl();
// Empty Comment
void sceShellUIUtilGetDefaultQueryParameter();
// Empty Comment
void sceShellUIUtilInitialize();
int sceShellUIUtilInitialize();
// Empty Comment
void sceShellUIUtilLaunchByUri();
int sceShellUIUtilLaunchByUri(const char* uri, OrbisShellUIUtilLaunchByUriParam *Param);
// Empty Comment
void sceShellUIUtilTerminate();


#ifdef __cplusplus
}
#endif

#endif
#endif // _SCE_SHELL_UI_UTIL_H_
2 changes: 1 addition & 1 deletion include/orbis/SystemService.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ int32_t sceSystemServiceParamGetInt(int32_t paramId, int32_t *value);
int32_t sceSystemServiceParamGetString(int32_t paramId, char *buf, size_t bufSize);
int32_t sceSystemServiceGetAppIdOfBigApp(void);
int32_t sceSystemServiceGetAppIdOfMiniApp(void);
int32_t sceLncUtilLaunchApp(const char* title_id, const char* argv[], LncAppParam* param);
int32_t sceSystemServiceKillApp(uint32_t appid, int32_t opt, int32_t method, int32_t reason);

void sceSystemServiceAcquireFb0();
void sceSystemServiceAddLocalProcess();
void sceSystemServiceAddLocalProcessForPsmKit();
Expand Down
10 changes: 10 additions & 0 deletions include/orbis/_types/shell_ui.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#pragma once

#include <stdint.h>

// Credit: LightningMods
typedef struct
{
uint32_t size;
uint32_t userId;
} OrbisShellUIUtilLaunchByUriParam;
22 changes: 22 additions & 0 deletions include/orbis/_types/sys_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,25 @@
#define ORBIS_SYSTEM_PARAM_LANG_THAI 27 //Thai
#define ORBIS_SYSTEM_PARAM_LANG_VIETNAMESE 28 //Vietnamese
#define ORBIS_SYSTEM_PARAM_LANG_INDONESIAN 29 //Indonesian

// Credit: LightningMods
enum LaunchApp_Flag
{
LaunchApp_None = 0,
LaunchApp_SkipLaunch = 1,
LaunchApp_SkipResume = 1,
LaunchApp_SkipSystemUpdate = 2,
LaunchApp_RebootPatchInstall = 4,
LaunchApp_VRMode = 8,
LaunchApp_NonVRMode = 16
};

typedef struct _LncAppParam
{
uint32_t size;
uint32_t user_id;
uint32_t app_opt;
uint64_t crash_report;
enum LaunchApp_Flag LaunchAppCheck_flag;
}
LncAppParam;

0 comments on commit 8edbc32

Please sign in to comment.