mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 20:22:30 +01:00
Stub cellSysconf module
This commit is contained in:
parent
219dba8aae
commit
22ec8c4dd2
@ -1,21 +1,26 @@
|
||||
#include "stdafx.h"
|
||||
#include "Emu/Cell/PPUModule.h"
|
||||
|
||||
#include "cellSysconf.h"
|
||||
|
||||
logs::channel cellSysconf("cellSysconf", logs::level::notice);
|
||||
|
||||
s32 cellSysconfAbort()
|
||||
{
|
||||
fmt::throw_exception("Unimplemented" HERE);
|
||||
cellSysconf.todo("cellSysconfAbort()");
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
s32 cellSysconfOpen()
|
||||
s32 cellSysconfOpen(u32 type, vm::ptr<CellSysconfCallback> func, vm::ptr<void> userdata, vm::ptr<void> extparam, u32 id)
|
||||
{
|
||||
fmt::throw_exception("Unimplemented" HERE);
|
||||
cellSysconf.todo("cellSysconfOpen(type=%d, func=*0x%x, userdata=*0x%x, extparam=*0x%x, id=%d)", type, func, userdata, extparam, id);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
s32 cellSysconfBtGetDeviceList()
|
||||
s32 cellSysconfBtGetDeviceList(vm::ptr<CellSysconfBtDeviceList> deviceList)
|
||||
{
|
||||
fmt::throw_exception("Unimplemented" HERE);
|
||||
cellSysconf.todo("cellSysconfBtGetDeviceList(deviceList=*0x%x)", deviceList);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
void cellSysutil_Sysconf_init()
|
||||
|
36
rpcs3/Emu/Cell/Modules/cellSysconf.h
Normal file
36
rpcs3/Emu/Cell/Modules/cellSysconf.h
Normal file
@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
|
||||
namespace vm { using namespace ps3; }
|
||||
|
||||
typedef void(CellSysconfCallback)(s32 result, vm::ptr<void> userdata);
|
||||
|
||||
struct CellSysconfBtDeviceInfo
|
||||
{
|
||||
be_t<u64> deviceId;
|
||||
be_t<s32> deviceType; // CellSysconfBtDeviceType
|
||||
be_t<s32> state; // CellSysconfBtDeviceState
|
||||
char name[64];
|
||||
be_t<u32> reserved[4];
|
||||
};
|
||||
|
||||
struct CellSysconfBtDeviceList
|
||||
{
|
||||
CellSysconfBtDeviceInfo device[16];
|
||||
};
|
||||
|
||||
enum CellSysconfBtDeviceType : s32
|
||||
{
|
||||
CELL_SYSCONF_BT_DEVICE_TYPE_AUDIO = 0x00000001,
|
||||
CELL_SYSCONF_BT_DEVICE_TYPE_HID = 0x00000002,
|
||||
};
|
||||
|
||||
enum CellSysconfBtDeviceState : s32
|
||||
{
|
||||
CELL_SYSCONF_BT_DEVICE_STATE_UNAVAILABLE = 0,
|
||||
CELL_SYSCONF_BT_DEVICE_STATE_AVAILABLE = 1,
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
CELL_SYSCONF_ERROR_PARAM = 0x8002bb01
|
||||
};
|
@ -584,6 +584,7 @@
|
||||
<ClInclude Include="Emu\Cell\Modules\cellSubdisplay.h" />
|
||||
<ClInclude Include="Emu\Cell\Modules\cellSync.h" />
|
||||
<ClInclude Include="Emu\Cell\Modules\cellSync2.h" />
|
||||
<ClInclude Include="Emu\Cell\Modules\cellSysconf.h" />
|
||||
<ClInclude Include="Emu\Cell\Modules\cellSysutil.h" />
|
||||
<ClInclude Include="Emu\Cell\Modules\cellSysutilAvc2.h" />
|
||||
<ClInclude Include="Emu\Cell\Modules\cellUsbd.h" />
|
||||
|
@ -1363,6 +1363,9 @@
|
||||
<ClInclude Include="Emu\Cell\Modules\cellSync2.h">
|
||||
<Filter>Emu\Cell\Modules</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Emu\Cell\Modules\cellSysconf.h">
|
||||
<Filter>Emu\Cell\Modules</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Emu\Cell\Modules\cellSysutil.h">
|
||||
<Filter>Emu\Cell\Modules</Filter>
|
||||
</ClInclude>
|
||||
|
Loading…
Reference in New Issue
Block a user