kernel: merge appInfo and appInfo2

This commit is contained in:
DH 2024-11-27 14:10:53 +03:00
parent 20303c903d
commit eaf15a0169
5 changed files with 27 additions and 45 deletions

View file

@ -20,22 +20,10 @@ struct AppInfo {
};
static_assert(sizeof(AppInfo) == 72);
struct AppInfo2 {
uint32_t appId;
uint32_t unk0;
uint32_t unk1;
uint32_t appType;
char titleId[10];
uint16_t unk2;
uint32_t unk3;
slong unk4;
slong unk5;
slong unk6;
slong unk7;
slong unk8;
struct AppInfoEx : AppInfo {
slong unk9;
slong unk10;
};
static_assert(sizeof(AppInfo2) == 88);
static_assert(sizeof(AppInfoEx) == 88);
} // namespace orbis

View file

@ -55,7 +55,7 @@ enum class FwType : std::uint8_t {
Ps5,
};
struct RcAppInfo : RcBase, AppInfo2 {
struct RcAppInfo : RcBase, AppInfoEx {
orbis::uint32_t appState = 0;
};

View file

@ -68,8 +68,7 @@ struct Process final {
ptr<void> processParam = nullptr;
uint64_t processParamSize = 0;
const ProcessOps *ops = nullptr;
AppInfo appInfo{};
AppInfo2 appInfo2{};
AppInfoEx appInfo{};
AuthInfo authInfo{};
kstring cwd;
kstring root = "/";