Skip to content

Commit

Permalink
write our some more obvious stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Auto committed Nov 2, 2023
1 parent 07e37a3 commit 4efa404
Showing 1 changed file with 63 additions and 8 deletions.
71 changes: 63 additions & 8 deletions src/game_api/game_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include <cstddef>
#include <cstdint>
#include <optional>
#include <unordered_map>
#include <vector>

struct Renderer
{
Expand All @@ -19,22 +21,75 @@ struct Renderer
uint8_t flags2;
uint8_t padding[6];

uint8_t skip[0x1228]; // tons of pointers

uint8_t skip2[0x7F284]; // a lot of nothing

uint8_t skip[0x1228]; // tons of pointers, some structs with vtables

uint8_t skip2[0x7F048]; // a lot of nothing

size_t unknown38; // bool?
float unknown39; // not sure if actually float
float unknown40;
float unknown41;
uint8_t unknown42[4];
const char** unknown43a; // font/floor it's changing
const char** unknown43b; // noise0.dds
const char** unknown43c; // noise1.dds
size_t unknown44[4]; // null?
size_t unknown45; // bool?

// feels like two standard containers or something
size_t* unknown46;
size_t* unknown47;
size_t unknown48;
size_t* unknown49;
size_t* unknown50;
size_t unknown51; //

uint32_t unknown52;
uint32_t unknown53; // padding probably
size_t unknown54; // sometimes -1 sometimes pointer
uint32_t unknown55; // -1
uint32_t unknown56; // null
size_t unknown57;
size_t unknown58;
uint16_t unknown59; // 2k
uint16_t unknown60a; // 512
uint16_t unknown60b[2]; // padding?
size_t* unknown61[4];
size_t unknown62; // bool?
std::unordered_map<int, size_t*> unknown63; // not sure about the key/value

// bounch of vectors that probably used to load textures or something, they all seam to contain names of the .dds files
// when i checked all seam to be already cleared and just have the data leftover, the "const char**" pointers identical as in texturedb

size_t unknown64[6]; // possibly two more vectors?
std::vector<const char**> unknown65; // splash 0,1,2
std::vector<const char**> unknown66; // fonts, basecamp, pet
std::vector<const char**> unknown67; // fonts and menu textures + characters (character select screen textures?)
std::vector<const char**> unknown68; // main menu background textures?
size_t unknown69[3]; // probably also vector, but it's null when i checked
std::vector<const char**> unknown70; // menu textures?
std::vector<const char**> unknown71; // only the ai.dds
size_t unknown[8]; // null

uint8_t unknown80;
uint8_t unknown81;
uint8_t unknown82;
uint8_t unknown83; // padding probably
float current_zoom;
float target_zoom;
float target_zoom_offset;
float current_zoom_offset;
float backlayer_light_level; // constantly overwritten by theme virtual get_backlayer_light_level
uint8_t unknown2;
uint8_t unknown3;
uint16_t unknown4;
uint8_t unknown84;
uint8_t unknown85;
uint8_t unknown86[6]; // padding probably

size_t* unknown87; // some vtables

uint8_t skip3[0xAE4];
uint8_t skip3[0xAD8]; // probably some static arrays of ... stuff

size_t swap_chain;
// 3 more pointers, some bit fields, then 5 more pointers

// somewhere there should be shaders stored

Expand Down

0 comments on commit 4efa404

Please sign in to comment.