Stuff concerning issue

This commit is contained in:
momo5502 2016-08-31 18:04:28 +02:00
parent 243ddc400d
commit 63acb4374d
4 changed files with 12 additions and 12 deletions

2
deps/mongoose vendored

@ -1 +1 @@
Subproject commit 844c7787f9d86715c80ab56f4f28d1b808df5341 Subproject commit 4120f953c7e5a14fdce2445effb1158b0650f103

View File

@ -207,7 +207,7 @@ namespace Components
{ {
auto fsGame = Dvar::Var("fs_game"); auto fsGame = Dvar::Var("fs_game");
fsGame.Set(mod); fsGame.Set(mod);
fsGame.Get<Game::dvar_t*>()->pad2[0] = 1; fsGame.Get<Game::dvar_t*>()->modified = true;
mod.clear(); mod.clear();

View File

@ -60,7 +60,7 @@ namespace Components
{ {
auto fsGame = Dvar::Var("fs_game"); auto fsGame = Dvar::Var("fs_game");
fsGame.Set(""); fsGame.Set("");
fsGame.Get<Game::dvar_t*>()->pad2[0] = 1; fsGame.Get<Game::dvar_t*>()->modified = true;
if (Dvar::Var("cl_modVidRestart").Get<bool>()) if (Dvar::Var("cl_modVidRestart").Get<bool>())
{ {
@ -76,7 +76,7 @@ namespace Components
{ {
auto fsGame = Dvar::Var("fs_game"); auto fsGame = Dvar::Var("fs_game");
fsGame.Set(fmt::sprintf("mods/%s", mod.data())); fsGame.Set(fmt::sprintf("mods/%s", mod.data()));
fsGame.Get<Game::dvar_t*>()->pad2[0] = 1; fsGame.Get<Game::dvar_t*>()->modified = true;
if (Dvar::Var("cl_modVidRestart").Get<bool>()) if (Dvar::Var("cl_modVidRestart").Get<bool>())
{ {

View File

@ -117,14 +117,14 @@ namespace Game
typedef struct dvar_t typedef struct dvar_t
{ {
//startbyte:endbyte //startbyte:endbyte
const char* name; //0:3 const char* name; //0:3
const char* description; //4:7 const char* description; //4:7
unsigned int flags; //8:11 unsigned int flags; //8:11
char type; //12:12 char type; //12:12
char pad2[3]; //13:15 bool modified; //13:15
dvar_value_t current; //16:31 dvar_value_t current; //16:31
dvar_value_t latched; //32:47 dvar_value_t latched; //32:47
dvar_value_t _default; //48:64 dvar_value_t _default; //48:64
dvar_maxmin_t min; //65:67 dvar_maxmin_t min; //65:67
dvar_maxmin_t max; //68:72 woooo dvar_maxmin_t max; //68:72 woooo
} dvar_t; } dvar_t;