Optimization

This commit is contained in:
momo5502 2016-07-31 21:07:08 +02:00
parent 3c448f173f
commit 56b01bc2ae
4 changed files with 2432 additions and 2426 deletions

View File

@ -101,7 +101,7 @@ namespace Components
for (int i =0;;)
{
char* mapname = reinterpret_cast<char*>(0x7471D0) + 40 * i;
char* mapname = Game::mapnames[i];
if (!*mapname)
{
i = 0;

View File

@ -233,6 +233,8 @@ namespace Game
IDirect3D9** d3d9 = (IDirect3D9**)0x66DEF84;
IDirect3DDevice9** dx_ptr = (IDirect3DDevice9**)0x66DEF88;
mapname_t* mapnames = (mapname_t*)0x7471D0;
XAssetHeader ReallocateAssetPool(XAssetType type, unsigned int newSize)
{
int elSize = DB_GetXAssetSizeHandlers[type]();

View File

@ -462,6 +462,8 @@ namespace Game
extern IDirect3D9** d3d9;
extern IDirect3DDevice9** dx_ptr;
extern mapname_t* mapnames;
XAssetHeader ReallocateAssetPool(XAssetType type, unsigned int newSize);
void Menu_FreeItemMemory(Game::itemDef_t* item);
const char* TableLookup(StringTable* stringtable, int row, int column);

View File

@ -2421,6 +2421,8 @@ namespace Game
};
#pragma pack(pop)
typedef char mapname_t[40];
#ifdef __cplusplus
}
#endif