mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 22:28:45 +00:00
added ExecuteGuest in callback
This commit is contained in:
parent
93e1928aea
commit
1d1819a3b1
1 changed files with 5 additions and 1 deletions
|
@ -6,6 +6,9 @@
|
||||||
#include "core/libraries/error_codes.h"
|
#include "core/libraries/error_codes.h"
|
||||||
#include "core/libraries/libs.h"
|
#include "core/libraries/libs.h"
|
||||||
#include "np_manager.h"
|
#include "np_manager.h"
|
||||||
|
#include <common/singleton.h>
|
||||||
|
#include <common/singleton.h>
|
||||||
|
#include <core/linker.h>
|
||||||
|
|
||||||
namespace Libraries::NpManager {
|
namespace Libraries::NpManager {
|
||||||
|
|
||||||
|
@ -2513,7 +2516,8 @@ NpStateCallbackForNpToolkit NpStateCbForNp;
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceNpCheckCallbackForLib() {
|
int PS4_SYSV_ABI sceNpCheckCallbackForLib() {
|
||||||
// LOG_ERROR(Lib_NpManager, "(STUBBED) called");
|
// LOG_ERROR(Lib_NpManager, "(STUBBED) called");
|
||||||
NpStateCbForNp.func(1, ORBIS_NP_STATE_SIGNED_OUT, NpStateCbForNp.userdata);
|
const auto* linker = Common::Singleton<Core::Linker>::Instance();
|
||||||
|
linker->ExecuteGuest(NpStateCbForNp.func,1, ORBIS_NP_STATE_SIGNED_OUT, NpStateCbForNp.userdata);
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue