Skip to content

Commit

Permalink
Register missing cellSysutil and sysPrxForUser function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zangetsu38 authored and Nekotekina committed Jan 27, 2017
1 parent fe23e0c commit b6f8efa
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 2 deletions.
104 changes: 103 additions & 1 deletion rpcs3/Emu/Cell/Modules/cellSysutil.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
#include "Utilities/Config.h"
#include "Emu/System.h"
#include "Emu/IdManager.h"
Expand Down Expand Up @@ -413,6 +413,90 @@ s32 cellSysutilGameReboot_I()
fmt::throw_exception("Unimplemented" HERE);
}

s32 _ZN4cxml7Element11AppendChildERS0_()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZN4cxml8DocumentC1Ev()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZN4cxml8DocumentD1Ev()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZN4cxml8Document13CreateElementEPKciPNS_7ElementE()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZN4cxml8Document14SetHeaderMagicEPKc()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZN4cxml8Document16CreateFromBufferEPKvjb()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZN4cxml8Document18GetDocumentElementEv()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZNK4cxml4File7GetAddrEv()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZN8cxmlutil6SetIntERKN4cxml7ElementEPKci()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZN8cxmlutil6GetIntERKN4cxml7ElementEPKcPi()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZN8cxmlutil9SetStringERKN4cxml7ElementEPKcS5_()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZN8cxmlutil16CheckElementNameERKN4cxml7ElementEPKc()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZN8cxmlutil16FindChildElementERKN4cxml7ElementEPKcS5_S5_()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

s32 _ZN8cxmlutil7GetFileERKN4cxml7ElementEPKcPNS0_4FileE()
{
UNIMPLEMENTED_FUNC(cellSysutil);
return CELL_OK;
}

extern void cellSysutil_SaveData_init();
extern void cellSysutil_GameData_init();
extern void cellSysutil_MsgDialog_init();
Expand Down Expand Up @@ -463,4 +547,22 @@ DECLARE(ppu_module_manager::cellSysutil)("cellSysutil", []()
REG_FUNC(cellSysutil, cellSysutilGameExit_I);
REG_FUNC(cellSysutil, cellSysutilGamePowerOff_I);
REG_FUNC(cellSysutil, cellSysutilGameReboot_I);

REG_FUNC(cellSysutil, _ZN4cxml7Element11AppendChildERS0_);

REG_FUNC(cellSysutil, _ZN4cxml8DocumentC1Ev);
REG_FUNC(cellSysutil, _ZN4cxml8DocumentD1Ev);
REG_FUNC(cellSysutil, _ZN4cxml8Document13CreateElementEPKciPNS_7ElementE);
REG_FUNC(cellSysutil, _ZN4cxml8Document14SetHeaderMagicEPKc);
REG_FUNC(cellSysutil, _ZN4cxml8Document16CreateFromBufferEPKvjb);
REG_FUNC(cellSysutil, _ZN4cxml8Document18GetDocumentElementEv);

REG_FUNC(cellSysutil, _ZNK4cxml4File7GetAddrEv);

REG_FUNC(cellSysutil, _ZN8cxmlutil6SetIntERKN4cxml7ElementEPKci);
REG_FUNC(cellSysutil, _ZN8cxmlutil6GetIntERKN4cxml7ElementEPKcPi);
REG_FUNC(cellSysutil, _ZN8cxmlutil9SetStringERKN4cxml7ElementEPKcS5_);
REG_FUNC(cellSysutil, _ZN8cxmlutil16CheckElementNameERKN4cxml7ElementEPKc);
REG_FUNC(cellSysutil, _ZN8cxmlutil16FindChildElementERKN4cxml7ElementEPKcS5_S5_);
REG_FUNC(cellSysutil, _ZN8cxmlutil7GetFileERKN4cxml7ElementEPKcPNS0_4FileE);
});
10 changes: 9 additions & 1 deletion rpcs3/Emu/Cell/Modules/sysPrxForUser.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
#include "Emu/System.h"
#include "Emu/Cell/PPUModule.h"

Expand Down Expand Up @@ -154,6 +154,12 @@ s32 sys_get_random_number(vm::ptr<u8> addr, u64 size)
return CELL_OK;
}

s32 __sys_look_ctype_table()
{
UNIMPLEMENTED_FUNC(sysPrxForUser);
return CELL_OK;
}

s32 console_getc()
{
fmt::throw_exception("Unimplemented" HERE);
Expand Down Expand Up @@ -220,6 +226,8 @@ DECLARE(ppu_module_manager::sysPrxForUser)("sysPrxForUser", []()

REG_FUNC(sysPrxForUser, sys_get_random_number);

REG_FUNC(sysPrxForUser, __sys_look_ctype_table);

REG_FUNC(sysPrxForUser, console_getc);
REG_FUNC(sysPrxForUser, console_putc);
REG_FUNC(sysPrxForUser, console_write);
Expand Down
1 change: 1 addition & 0 deletions rpcs3/emucore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@
<ClInclude Include="Emu\Cell\Modules\cellMsgDialog.h" />
<ClInclude Include="Emu\Cell\Modules\cellMusic.h" />
<ClInclude Include="Emu\Cell\Modules\cellNetCtl.h" />
<ClInclude Include="Emu\Cell\Modules\cellOskDialog.h" />
<ClInclude Include="Emu\Cell\Modules\cellPad.h" />
<ClInclude Include="Emu\Cell\Modules\cellPamf.h" />
<ClInclude Include="Emu\Cell\Modules\cellPng.h" />
Expand Down
3 changes: 3 additions & 0 deletions rpcs3/emucore.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,9 @@
<ClInclude Include="Emu\Cell\Modules\cellNetCtl.h">
<Filter>Emu\Cell\Modules</Filter>
</ClInclude>
<ClInclude Include="Emu\Cell\Modules\cellOskDialog.h">
<Filter>Emu\Cell\Modules</Filter>
</ClInclude>
<ClInclude Include="Emu\Cell\Modules\cellPad.h">
<Filter>Emu\Cell\Modules</Filter>
</ClInclude>
Expand Down

0 comments on commit b6f8efa

Please sign in to comment.