-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
915 additions
and
404 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "online.hpp" | ||
#include "memory.hpp" | ||
#include "search.hpp" | ||
|
||
Online* get_online() | ||
{ | ||
ONCE(Online*) | ||
{ | ||
auto mem = Memory::get(); | ||
auto tmp = find_inst(mem.exe(), "\xF3\x0F\x11\x4C\x24\x10\x56\x57"s, mem.after_bundle); | ||
tmp = mem.at_exe(decode_pc(mem.exe(), tmp + 24)); | ||
return res = *(Online**)tmp; | ||
} | ||
} | ||
|
||
std::string OnlineLobby::get_code() | ||
{ | ||
return fmt::format("{:X}", code); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#pragma once | ||
|
||
#include <array> | ||
#include <cstdint> | ||
|
||
struct OnlinePlayer | ||
{ | ||
uint32_t unknown1; | ||
uint32_t unknown2; | ||
uint32_t unknown3; | ||
uint32_t unknown4; | ||
uint8_t unknown5; | ||
uint8_t ready_state; | ||
uint8_t character; | ||
char player_name[37]; | ||
}; | ||
|
||
struct OnlineLobby | ||
{ | ||
uint32_t code; | ||
uint32_t unknown1; | ||
uint32_t keys_pressed; | ||
uint32_t keys_pressed_sync; | ||
uint8_t unknown2; | ||
uint8_t unknown3; | ||
int8_t unknown4; | ||
int8_t unknown5; | ||
uint32_t unknown6; | ||
int8_t unknown7; | ||
int8_t unknown8; | ||
uint8_t unknown9; | ||
uint8_t unknown10; | ||
int32_t unknown11; | ||
int32_t unknown12; | ||
int8_t unknown13; | ||
int8_t unknown14; | ||
uint8_t unknown15; | ||
uint8_t unknown16; | ||
uint32_t unknown17; | ||
uint8_t unknown18; | ||
uint8_t unknown19; | ||
int8_t unknown20; | ||
int8_t unknown21; | ||
int8_t unknown22; | ||
uint8_t unknown23; | ||
uint8_t unknown24; | ||
uint8_t unknown25; | ||
uint32_t unknown26; | ||
|
||
/// Gets the string equivalent of the code | ||
std::string get_code(); | ||
}; | ||
|
||
class Online | ||
{ | ||
public: | ||
uint32_t unknown1; | ||
uint32_t unknown2; | ||
uint64_t unknown3; | ||
uint64_t unknown4; | ||
uint64_t unknown5; | ||
uint32_t unknown6; | ||
uint32_t unknown7; | ||
uint32_t unknown8; | ||
uint32_t unknown9; | ||
uint32_t unknown10; | ||
uint32_t unknown11; | ||
uint32_t unknown12; | ||
uint32_t unknown13; | ||
std::array<OnlinePlayer, 4> online_players; | ||
OnlinePlayer local_player; | ||
OnlineLobby lobby; | ||
OnlineLobby lobby_dupe; | ||
// some more stuff | ||
|
||
virtual ~Online() = 0; | ||
}; | ||
|
||
Online* get_online(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.