mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
Huge sceNp cleanup, added sceNpCommerce2Init and sceNpCommerce2Term
This commit is contained in:
parent
2234d0fe0a
commit
4a998e5374
3 changed files with 1320 additions and 1292 deletions
|
@ -90,6 +90,8 @@ void Module::UnLoad()
|
|||
if(m_unload_func) m_unload_func();
|
||||
|
||||
// TODO: Re-enable this when needed
|
||||
// This was disabled because some functions would get unloaded and
|
||||
// some games tried to use them, thus only printing a TODO message
|
||||
//for(u32 i=0; i<m_funcs_list.size(); ++i)
|
||||
//{
|
||||
// Emu.GetModuleManager().UnloadFunc(m_funcs_list[i]->id);
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -6,6 +6,18 @@
|
|||
|
||||
Module *sceNpCommerce2 = nullptr;
|
||||
|
||||
struct sceNpCommerce2Internal
|
||||
{
|
||||
bool m_bSceNpCommerce2Initialized;
|
||||
|
||||
sceNpCommerce2Internal()
|
||||
: m_bSceNpCommerce2Initialized(false)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
sceNpCommerce2Internal sceNpCommerce2Instance;
|
||||
|
||||
int sceNpCommerce2ExecuteStoreBrowse()
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(sceNpCommerce2);
|
||||
|
@ -20,13 +32,25 @@ int sceNpCommerce2GetStoreBrowseUserdata()
|
|||
|
||||
int sceNpCommerce2Init()
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(sceNpCommerce2);
|
||||
sceNpCommerce2->Warning("sceNpCommerce2Init()");
|
||||
|
||||
if (sceNpCommerce2Instance.m_bSceNpCommerce2Initialized)
|
||||
return SCE_NP_COMMERCE2_ERROR_ALREADY_INITIALIZED;
|
||||
|
||||
sceNpCommerce2Instance.m_bSceNpCommerce2Initialized = true;
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
int sceNpCommerce2Term()
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(sceNpCommerce2);
|
||||
sceNpCommerce2->Warning("sceNpCommerce2Term()");
|
||||
|
||||
if (!sceNpCommerce2Instance.m_bSceNpCommerce2Initialized)
|
||||
return SCE_NP_COMMERCE2_ERROR_NOT_INITIALIZED;
|
||||
|
||||
sceNpCommerce2Instance.m_bSceNpCommerce2Initialized = false;
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue