mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Stub cellBgdl module
This commit is contained in:
parent
7c2af5ceae
commit
219dba8aae
@ -2,41 +2,32 @@
|
||||
#include "Emu/System.h"
|
||||
#include "Emu/Cell/PPUModule.h"
|
||||
|
||||
#include "cellBgdl.h"
|
||||
|
||||
logs::channel cellBGDL("cellBGDL", logs::level::notice);
|
||||
|
||||
// Return Codes
|
||||
enum
|
||||
s32 cellBGDLGetInfo(vm::cptr<char> content_id, vm::ptr<CellBGDLInfo> info, s32 num)
|
||||
{
|
||||
CELL_BGDL_UTIL_RET_OK = 0x00000000,
|
||||
CELL_BGDL_UTIL_ERROR_BUSY = 0x8002ce01,
|
||||
CELL_BGDL_UTIL_ERROR_INTERNAL = 0x8002ce02,
|
||||
CELL_BGDL_UTIL_ERROR_PARAM = 0x8002ce03,
|
||||
CELL_BGDL_UTIL_ERROR_ACCESS_ERROR = 0x8002ce04,
|
||||
CELL_BGDL_UTIL_ERROR_INITIALIZE = 0x8002ce05,
|
||||
};
|
||||
|
||||
s32 cellBGDLGetInfo()
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellBGDL);
|
||||
return CELL_OK;
|
||||
cellBGDL.todo("cellBGDLGetInfo(content_id=%s, info=*0x%x, num=%d)", content_id, info, num);
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 cellBGDLGetInfo2()
|
||||
s32 cellBGDLGetInfo2(vm::cptr<char> service_id, vm::ptr<CellBGDLInfo> info, s32 num)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellBGDL);
|
||||
return CELL_OK;
|
||||
cellBGDL.todo("cellBGDLGetInfo2(service_id=%s, info=*0x%x, num=%d)", service_id, info, num);
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 cellBGDLSetMode()
|
||||
s32 cellBGDLSetMode(CellBGDLMode mode)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellBGDL);
|
||||
return CELL_OK;
|
||||
cellBGDL.todo("cellBGDLSetMode(mode=%d)", (s32) mode);
|
||||
return CELL_BGDL_UTIL_RET_OK;
|
||||
}
|
||||
|
||||
s32 cellBGDLGetMode()
|
||||
s32 cellBGDLGetMode(vm::ptr<CellBGDLMode> mode)
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellBGDL);
|
||||
return CELL_OK;
|
||||
cellBGDL.todo("cellBGDLGetMode(mode=*0x%x)", mode);
|
||||
return CELL_BGDL_UTIL_RET_OK;
|
||||
}
|
||||
|
||||
DECLARE(ppu_module_manager::cellBGDL)("cellBGDLUtility", []()
|
||||
|
37
rpcs3/Emu/Cell/Modules/cellBgdl.h
Normal file
37
rpcs3/Emu/Cell/Modules/cellBgdl.h
Normal file
@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
|
||||
namespace vm { using namespace ps3; }
|
||||
|
||||
// Return Codes
|
||||
enum
|
||||
{
|
||||
CELL_BGDL_UTIL_RET_OK = 0x00000000,
|
||||
CELL_BGDL_UTIL_ERROR_BUSY = 0x8002ce01,
|
||||
CELL_BGDL_UTIL_ERROR_INTERNAL = 0x8002ce02,
|
||||
CELL_BGDL_UTIL_ERROR_PARAM = 0x8002ce03,
|
||||
CELL_BGDL_UTIL_ERROR_ACCESS_ERROR = 0x8002ce04,
|
||||
CELL_BGDL_UTIL_ERROR_INITIALIZE = 0x8002ce05,
|
||||
};
|
||||
|
||||
enum CellBGDLState : s32
|
||||
{
|
||||
CELL_BGDL_STATE_ERROR = 0,
|
||||
CELL_BGDL_STATE_PAUSE,
|
||||
CELL_BGDL_STATE_READY,
|
||||
CELL_BGDL_STATE_RUN,
|
||||
CELL_BGDL_STATE_COMPLETE,
|
||||
};
|
||||
|
||||
enum CellBGDLMode : s32
|
||||
{
|
||||
CELL_BGDL_MODE_AUTO = 0,
|
||||
CELL_BGDL_MODE_ALWAYS_ALLOW,
|
||||
};
|
||||
|
||||
struct CellBGDLInfo
|
||||
{
|
||||
be_t<u64> received_size;
|
||||
be_t<u64> content_size;
|
||||
be_t<s32> state; // CellBGDLState
|
||||
vm::bptr<void> reserved;
|
||||
};
|
@ -548,6 +548,7 @@
|
||||
<ClInclude Include="Emu\Cell\Modules\cellAudio.h" />
|
||||
<ClInclude Include="Emu\Cell\Modules\cellAudioIn.h" />
|
||||
<ClInclude Include="Emu\Cell\Modules\cellAudioOut.h" />
|
||||
<ClInclude Include="Emu\Cell\Modules\cellBgdl.h" />
|
||||
<ClInclude Include="Emu\Cell\Modules\cellCamera.h" />
|
||||
<ClInclude Include="Emu\Cell\Modules\cellDmux.h" />
|
||||
<ClInclude Include="Emu\Cell\Modules\cellFiber.h" />
|
||||
|
@ -1255,6 +1255,9 @@
|
||||
<ClInclude Include="Emu\Cell\Modules\cellAudioOut.h">
|
||||
<Filter>Emu\Cell\Modules</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Emu\Cell\Modules\cellBgdl.h">
|
||||
<Filter>Emu\Cell\Modules</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Emu\Cell\Modules\cellCamera.h">
|
||||
<Filter>Emu\Cell\Modules</Filter>
|
||||
</ClInclude>
|
||||
|
Loading…
Reference in New Issue
Block a user