XGlobals Asset: Difference between revisions
Aerosoul94 (talk | contribs) Created page with "__NOTOC__ Category:Assets Category:BO1 Category:BO2 The xGlobals asset exists only in Black Ops 1 and Black Ops 2 and appears to hold global variables. <source lan..." |
No edit summary |
||
| Line 5: | Line 5: | ||
The xGlobals asset exists only in Black Ops 1 and Black Ops 2 and appears to hold global variables. | The xGlobals asset exists only in Black Ops 1 and Black Ops 2 and appears to hold global variables. | ||
<source lang="cpp"> | <source lang="cpp"> | ||
struct | struct gump_info_t | ||
{ | { | ||
char *name; | |||
int size; | |||
}; | }; | ||
struct | struct overlay_info_t | ||
{ | { | ||
char *name; | |||
int size; | |||
}; | }; | ||
struct | struct XGlobals // BO1 size = 0x28, BO2 size = 0x234 | ||
{ | { | ||
const char *name; // xGlobalsSingleton | |||
int xanimStreamBufferSize; | |||
int cinematicMaxWidth; | |||
int cinematicMaxHeight; | |||
int extracamResolution; | |||
vec4_t screenClearColor; | |||
int bigestGumpSize; | |||
#ifdef BO2 | #ifdef BO2 | ||
int gumpsCount; | |||
gump_info_t gumps[32]; | |||
int bigestOverlaySize; | |||
int overlayCount; | |||
overlay_info_t overlays[32]; | |||
#endif | #endif | ||
}; | }; | ||
</source> | </source> | ||
Revision as of 01:11, 21 December 2014
The xGlobals asset exists only in Black Ops 1 and Black Ops 2 and appears to hold global variables.
struct gump_info_t
{
char *name;
int size;
};
struct overlay_info_t
{
char *name;
int size;
};
struct XGlobals // BO1 size = 0x28, BO2 size = 0x234
{
const char *name; // xGlobalsSingleton
int xanimStreamBufferSize;
int cinematicMaxWidth;
int cinematicMaxHeight;
int extracamResolution;
vec4_t screenClearColor;
int bigestGumpSize;
#ifdef BO2
int gumpsCount;
gump_info_t gumps[32];
int bigestOverlaySize;
int overlayCount;
overlay_info_t overlays[32];
#endif
};