Skip to content

Commit

Permalink
modules/SceShellSvc: Stub sceShellSvcGetSvcObj.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zangetsu38 committed Nov 5, 2024
1 parent e78b375 commit 3799349
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion vita3k/modules/SceShellSvc/SceShellSvc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,39 @@

#include <module/module.h>

#include <modules/module_parent.h>

EXPORT(int, sceShellSvcGetSvcObj) {
return UNIMPLEMENTED();
static Ptr<void> client_vtable = Ptr<void>();
static Ptr<int> svc_client;
if (!client_vtable) {
// initialize the vtable
client_vtable = create_vtable({
0x101C93F8, // destroy
0xA22C3E01, // connect
0xEC73331C, // disconnect
0xD484D36D, // terminateConnection
0x28BD5F19, // invokeSyncMethod
0x73C72FBB, // invokeSyncMethod
0xAFD10F3B, // invokeAsyncMethod
0x387AFA3F, // invokeAsyncMethod
0xF8C2B8BA, // tryGetResult
0x4EBB01A2, // tryGetResult
0x8FF23C3C, // pollEventFlag
0x45C32034, // waitEventFlag
0x004F48ED, // getUserData
0xA3E650B0, // getMsg
0x60EFADE7, // tryGetMsg
0xA5AA193C, // ~Client
},
emuenv.mem);
}

if (!svc_client) {
svc_client = Ptr<int>(alloc(emuenv.mem, sizeof(int), "ShellSvc"));
*svc_client.get(emuenv.mem) = client_vtable.address();
}

STUBBED("STUBBED");
return svc_client.address();
}

0 comments on commit 3799349

Please sign in to comment.