mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
sys_net: Stub sys_net_infoctl command 9
This commit is contained in:
parent
f0d526411c
commit
4bc157881d
1 changed files with 21 additions and 0 deletions
|
@ -2327,11 +2327,32 @@ error_code sys_net_abort(ppu_thread& ppu, s32 type, u64 arg, s32 flags)
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct net_infoctl_cmd_9_t
|
||||||
|
{
|
||||||
|
be_t<u32> zero;
|
||||||
|
vm::bptr<char> server_name;
|
||||||
|
// More (TODO)
|
||||||
|
};
|
||||||
|
|
||||||
error_code sys_net_infoctl(ppu_thread& ppu, s32 cmd, vm::ptr<void> arg)
|
error_code sys_net_infoctl(ppu_thread& ppu, s32 cmd, vm::ptr<void> arg)
|
||||||
{
|
{
|
||||||
vm::temporary_unlock(ppu);
|
vm::temporary_unlock(ppu);
|
||||||
|
|
||||||
sys_net.todo("sys_net_infoctl(cmd=%d, arg=*0x%x)", cmd, arg);
|
sys_net.todo("sys_net_infoctl(cmd=%d, arg=*0x%x)", cmd, arg);
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
switch (cmd)
|
||||||
|
{
|
||||||
|
case 9:
|
||||||
|
{
|
||||||
|
// TODO: Find out if this string can change
|
||||||
|
constexpr auto name = "nameserver 192.168.1.1\0"sv;
|
||||||
|
std::memcpy(vm::static_ptr_cast<net_infoctl_cmd_9_t>(arg)->server_name.get_ptr(), name.data(), name.size());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: break;
|
||||||
|
}
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue