PSV modules refactoring

This commit is contained in:
Nekotekina 2015-06-21 02:04:01 +03:00
parent 8229c0ed3d
commit bc9481db1b
129 changed files with 5000 additions and 4588 deletions

View file

@ -2,19 +2,7 @@
#include "Emu/System.h"
#include "Emu/ARMv7/PSVFuncList.h"
extern psv_log_base sceSulpha;
typedef vm::psv::ptr<void(vm::psv::ptr<void> arg)> SceSulphaCallback;
struct SceSulphaConfig
{
SceSulphaCallback notifyCallback;
u32 port;
u32 bookmarkCount;
};
struct SceSulphaAgentsRegister;
typedef void SceSulphaHandle;
#include "sceSulpha.h"
s32 sceSulphaNetworkInit()
{
@ -26,17 +14,17 @@ s32 sceSulphaNetworkShutdown()
throw __FUNCTION__;
}
s32 sceSulphaGetDefaultConfig(vm::psv::ptr<SceSulphaConfig> config)
s32 sceSulphaGetDefaultConfig(vm::ptr<SceSulphaConfig> config)
{
throw __FUNCTION__;
}
s32 sceSulphaGetNeededMemory(vm::psv::ptr<const SceSulphaConfig> config, vm::psv::ptr<u32> sizeInBytes)
s32 sceSulphaGetNeededMemory(vm::ptr<const SceSulphaConfig> config, vm::ptr<u32> sizeInBytes)
{
throw __FUNCTION__;
}
s32 sceSulphaInit(vm::psv::ptr<const SceSulphaConfig> config, vm::psv::ptr<void> buffer, u32 sizeInBytes)
s32 sceSulphaInit(vm::ptr<const SceSulphaConfig> config, vm::ptr<void> buffer, u32 sizeInBytes)
{
throw __FUNCTION__;
}
@ -51,7 +39,7 @@ s32 sceSulphaUpdate()
throw __FUNCTION__;
}
s32 sceSulphaFileConnect(vm::psv::ptr<const char> filename)
s32 sceSulphaFileConnect(vm::ptr<const char> filename)
{
throw __FUNCTION__;
}
@ -61,22 +49,22 @@ s32 sceSulphaFileDisconnect()
throw __FUNCTION__;
}
s32 sceSulphaSetBookmark(vm::psv::ptr<const char> name, s32 id)
s32 sceSulphaSetBookmark(vm::ptr<const char> name, s32 id)
{
throw __FUNCTION__;
}
s32 sceSulphaAgentsGetNeededMemory(vm::psv::ptr<const SceSulphaAgentsRegister> config, vm::psv::ptr<u32> sizeInBytes)
s32 sceSulphaAgentsGetNeededMemory(vm::ptr<const SceSulphaAgentsRegister> config, vm::ptr<u32> sizeInBytes)
{
throw __FUNCTION__;
}
s32 sceSulphaAgentsRegister(vm::psv::ptr<const SceSulphaAgentsRegister> config, vm::psv::ptr<void> buffer, u32 sizeInBytes, vm::psv::ptr<SceSulphaHandle> handles)
s32 sceSulphaAgentsRegister(vm::ptr<const SceSulphaAgentsRegister> config, vm::ptr<void> buffer, u32 sizeInBytes, vm::ptr<SceSulphaHandle> handles)
{
throw __FUNCTION__;
}
s32 sceSulphaAgentsUnregister(vm::psv::ptr<const SceSulphaHandle> handles, u32 agentCount)
s32 sceSulphaAgentsUnregister(vm::ptr<const SceSulphaHandle> handles, u32 agentCount)
{
throw __FUNCTION__;
}
@ -89,6 +77,7 @@ psv_log_base sceSulpha("SceSulpha", []()
sceSulpha.on_load = nullptr;
sceSulpha.on_unload = nullptr;
sceSulpha.on_stop = nullptr;
sceSulpha.on_error = nullptr;
REG_FUNC(0xB4668AEA, sceSulphaNetworkInit);
REG_FUNC(0x0FC71B72, sceSulphaNetworkShutdown);