Update to 0.9.1-4

This commit is contained in:
ChrisMiuchiz 2019-09-25 20:02:55 -04:00
parent 40eec69085
commit 289f7cd39a
5 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@
void cube::ChatWidget::PrintMessage(wchar_t* message, FloatRGBA* color){ void cube::ChatWidget::PrintMessage(wchar_t* message, FloatRGBA* color){
msvc::wstring str(message); msvc::wstring str(message);
((void(*)(cube::ChatWidget*, msvc::wstring*, FloatRGBA*))CWBase()+0x26A1A0)(this, &str, color); ((void(*)(cube::ChatWidget*, msvc::wstring*, FloatRGBA*))CWBase()+0x26A9B0)(this, &str, color);
} }
void cube::ChatWidget::PrintMessage(wchar_t* message) { void cube::ChatWidget::PrintMessage(wchar_t* message) {

View File

@ -7,5 +7,5 @@ cube::Creature* cube::Game::GetPlayer(){
} }
cube::Game* cube::GetGame() { cube::Game* cube::GetGame() {
return *(cube::Game**)(CWBase() + 0x54EA80); return *(cube::Game**)(CWBase() + 0x551A80);
} }

View File

@ -40,8 +40,8 @@ namespace cube {
_BYTE gap660[136]; _BYTE gap660[136];
cube::Host host; cube::Host host;
_BYTE gapCFA[3158]; _BYTE gapCFA[3158];
void* onP2PSessionRequest; void *onP2PSessionRequest;
_BYTE gap1960[536]; char gap1960[536];
int fullscreen; int fullscreen;
int width; int width;
int height; int height;
@ -59,9 +59,9 @@ namespace cube {
int field_1BB0; int field_1BB0;
int field_1BB4; int field_1BB4;
int rarity_coding; int rarity_coding;
_BYTE gap1BBC[1100]; _BYTE gap1BBC[1108];
msvc::string *current_music_file; msvc::string *current_music_file;
_BYTE gap2010[68]; _BYTE gap2010[60];
int seed; int seed;
msvc::string world_name; msvc::string world_name;
_BYTE gap2070[503]; _BYTE gap2070[503];

View File

@ -11,7 +11,7 @@ class World {
void *vtable; void *vtable;
int day; int day;
float time; float time;
_BYTE gap10[400]; _BYTE gap10[416];
cube::World *self_ptr; cube::World *self_ptr;
_BYTE gap1A8[72]; _BYTE gap1A8[72];
msvc::string world_name; msvc::string world_name;

View File

@ -1,4 +1,4 @@
#define MOD_MAJOR_VERSION 2 #define MOD_MAJOR_VERSION 3
#define MOD_MINOR_VERSION 1 #define MOD_MINOR_VERSION 1
#include "cwmods.h" #include "cwmods.h"