Skip to content

Commit

Permalink
Added support for CNetChan::RequestFile
Browse files Browse the repository at this point in the history
  • Loading branch information
Batfoxkid committed Feb 17, 2023
1 parent ab5faf3 commit fc35537
Show file tree
Hide file tree
Showing 3 changed files with 303 additions and 24 deletions.
67 changes: 67 additions & 0 deletions gamedata/filenetwork.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
"windows" "\x55\x8B\xEC\x57\x8B\xF9\x8D\x8F\x94\x00\x00\x00\xE8\x2A\x2A\x2A\x2A\x85\xC0\x75\x2A\xB0\x01\x5F\x5D\xC2\x08\x00\x56\x8B\x75\x08\x85\xF6"
// "SendFile: %s (ID %i)\n"
}
"CNetChan::RequestFile"
{
"library" "engine"
"linux" "@_ZN8CNetChan11RequestFileEPKc"
"windows" "\x55\x8B\xEC\x83\xEC\x14\x53\x8B\xD9\x56\x89\x5D\xF4"
// "RequestFile: %s (ID %i)\n"
}
"CNetChan::IsFileInWaitingList"
{
"library" "engine"
Expand All @@ -47,6 +54,66 @@
// "CreateFragmentsFromFile: '%s' doesn't e" -> CNetChan::CreateFragmentsFromFile
// Top Call -> CNetChan::IsFileInWaitingList
}
"CGameClient::FileReceived"
{
"library" "engine"
"linux" "@_ZZN11CGameClient12FileReceivedEPKcj"
"windows" "\x55\x8B\xEC\x56\x8B\x75\x0C\x33\xD2\x57\x8B\xF9"
// "CGameClient::FileReceived: %s not wanted.\n"
}
"CGameClient::FileDenied"
{
"library" "engine"
"linux" "@_ZN11CGameClient10FileDeniedEPKcj"
"windows" "\x55\x8B\xEC\x8B\x01\xFF\x50\x44\x50\xFF\x75\x08\x68"
// "Downloading file '%s' from client %s failed.\n"
}
"CBaseClient::GetNetChannel"
{
"library" "engine"
"linux" "@_ZN11CBaseClient13GetNetChannelEv"
"windows" "\x8B\x81\xC0\x00\x00\x00"
// Good Luck
}
}
"Functions"
{
"CGameClient::FileReceived"
{
"signature" "CGameClient::FileReceived"
"callconv" "thiscall"
"return" "void"
"this" "address"
"arguments"
{
"fileName"
{
"type" "charptr"
}
"transferID "
{
"type" "int"
}
}
}
"CGameClient::FileDenied"
{
"signature" "CGameClient::FileDenied"
"callconv" "thiscall"
"return" "void"
"this" "address"
"arguments"
{
"fileName"
{
"type" "charptr"
}
"transferID "
{
"type" "int"
}
}
}
}
}
}
Loading

0 comments on commit fc35537

Please sign in to comment.