rpcsx/rpcs3/Emu/Cell/Modules/cellSpudll.cpp

48 lines
1.2 KiB
C++
Raw Normal View History

2015-07-29 20:35:03 +02:00
#include "stdafx.h"
2016-03-21 20:43:03 +01:00
#include "Emu/Cell/PPUModule.h"
2015-07-29 20:35:03 +02:00
#include "cellSpudll.h"
2016-08-19 23:14:10 +02:00
2016-05-13 15:55:34 +02:00
logs::channel cellSpudll("cellSpudll", logs::level::notice);
2015-07-29 20:35:03 +02:00
s32 cellSpudllGetImageSize(vm::ptr<u32> psize, vm::cptr<void> so_elf, vm::cptr<CellSpudllHandleConfig> config)
2015-07-29 20:35:03 +02:00
{
cellSpudll.todo("cellSpudllGetImageSize(psize=*0x%x, so_elf=*0x%x, config=*0x%x)", psize, so_elf, config);
if (!psize || !so_elf)
{
return CELL_SPUDLL_ERROR_NULL_POINTER;
}
// todo
return CELL_OK;
2015-07-29 20:35:03 +02:00
}
s32 cellSpudllHandleConfigSetDefaultValues(vm::ptr<CellSpudllHandleConfig> config)
2015-07-29 20:35:03 +02:00
{
cellSpudll.trace("cellSpudllHandleConfigSetDefaultValues(config=*0x%x)", config);
if (!config)
{
return CELL_SPUDLL_ERROR_NULL_POINTER;
}
config->mode = 0;
config->dmaTag = 0;
config->numMaxReferred = 16;
config->unresolvedSymbolValueForFunc = vm::null;
config->unresolvedSymbolValueForObject = vm::null;
config->unresolvedSymbolValueForOther = vm::null;
std::memset(config->__reserved__, 0, sizeof(config->__reserved__));
return CELL_OK;
2015-07-29 20:35:03 +02:00
}
2016-03-21 20:43:03 +01:00
DECLARE(ppu_module_manager::cellSpudll)("cellSpudll", []()
2015-07-29 20:35:03 +02:00
{
REG_FUNC(cellSpudll, cellSpudllGetImageSize);
REG_FUNC(cellSpudll, cellSpudllHandleConfigSetDefaultValues).flags = MFF_PERFECT;
2015-07-29 20:35:03 +02:00
});