Skip to content

Commit

Permalink
Add sceNpMatchingInt
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam authored and AniLeo committed Feb 3, 2018
1 parent 6001808 commit cd9bfba
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 3 deletions.
41 changes: 41 additions & 0 deletions rpcs3/Emu/Cell/Modules/sceNpMatchingInt.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#include "stdafx.h"
#include "Emu/System.h"
#include "Emu/Cell/PPUModule.h"

namespace vm { using namespace ps3; }

logs::channel sceNpMatchingInt("sceNpMatchingInt");

s32 sceNpMatchingGetRoomMemberList()
{
UNIMPLEMENTED_FUNC(sceNpMatchingInt);
return CELL_OK;
}

// Parameter "unknown" added to distinguish this function
// from the one in sceNp.cpp which has the same name
s32 sceNpMatchingJoinRoomGUI(vm::ptr<void> unknown)
{
UNIMPLEMENTED_FUNC(sceNpMatchingInt);
return CELL_OK;
}

s32 sceNpMatchingGetRoomListGUI()
{
UNIMPLEMENTED_FUNC(sceNpMatchingInt);
return CELL_OK;
}

s32 sceNpMatchingSendRoomMessage()
{
UNIMPLEMENTED_FUNC(sceNpMatchingInt);
return CELL_OK;
}

DECLARE(ppu_module_manager::sceNpMatchingInt)("sceNpMatchingInt", []()
{
REG_FUNC(sceNpMatchingInt, sceNpMatchingGetRoomMemberList);
REG_FUNC(sceNpMatchingInt, sceNpMatchingJoinRoomGUI);
REG_FUNC(sceNpMatchingInt, sceNpMatchingGetRoomListGUI);
REG_FUNC(sceNpMatchingInt, sceNpMatchingSendRoomMessage);
});
1 change: 1 addition & 0 deletions rpcs3/Emu/Cell/PPUModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ static void ppu_initialize_modules(const std::shared_ptr<ppu_linkage_info>& link
&ppu_module_manager::sceNp2,
&ppu_module_manager::sceNpClans,
&ppu_module_manager::sceNpCommerce2,
&ppu_module_manager::sceNpMatchingInt,
&ppu_module_manager::sceNpSns,
&ppu_module_manager::sceNpTrophy,
&ppu_module_manager::sceNpTus,
Expand Down
1 change: 1 addition & 0 deletions rpcs3/Emu/Cell/PPUModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ class ppu_module_manager final
static const ppu_static_module sceNp2;
static const ppu_static_module sceNpClans;
static const ppu_static_module sceNpCommerce2;
static const ppu_static_module sceNpMatchingInt;
static const ppu_static_module sceNpSns;
static const ppu_static_module sceNpTrophy;
static const ppu_static_module sceNpTus;
Expand Down
1 change: 1 addition & 0 deletions rpcs3/emucore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@
<ClCompile Include="Emu\Cell\Modules\sceNp2.cpp" />
<ClCompile Include="Emu\Cell\Modules\sceNpClans.cpp" />
<ClCompile Include="Emu\Cell\Modules\sceNpCommerce2.cpp" />
<ClCompile Include="Emu\Cell\Modules\sceNpMatchingInt.cpp" />
<ClCompile Include="Emu\Cell\Modules\sceNpSns.cpp" />
<ClCompile Include="Emu\Cell\Modules\sceNpTrophy.cpp" />
<ClCompile Include="Emu\Cell\Modules\sceNpTus.cpp" />
Expand Down
9 changes: 6 additions & 3 deletions rpcs3/emucore.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@
<ClCompile Include="Emu\Cell\Modules\sceNpCommerce2.cpp">
<Filter>Emu\Cell\Modules</Filter>
</ClCompile>
<ClCompile Include="Emu\Cell\Modules\sceNpMatchingInt.cpp">
<Filter>Emu\Cell\Modules</Filter>
</ClCompile>
<ClCompile Include="Emu\Cell\Modules\sceNpSns.cpp">
<Filter>Emu\Cell\Modules</Filter>
</ClCompile>
Expand Down Expand Up @@ -934,12 +937,12 @@
</ClCompile>
<ClCompile Include="Emu\Cell\lv2\sys_net.cpp">
<Filter>Emu\Cell\lv2</Filter>
</ClCompile>
</ClCompile>
<ClCompile Include="Emu\Io\PadHandler.cpp">
<Filter>Emu\Io</Filter>
</ClCompile>
</ClCompile>
<ClCompile Include="Emu\RSX\overlays.cpp">
<Filter>Emu\GPU\RSX</Filter>
<Filter>Emu\GPU\RSX</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit cd9bfba

Please sign in to comment.