mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add being able to disable unfocus pause
It's sometimes unwanted by people, and it's unwanted enough that there exist instructions to hexedit the binary to remove it ( https://distractionware.com/forum/index.php?topic=3247.0 ). Fun fact, the unfocus pause didn't exist in 2.0.
This commit is contained in:
@@ -401,6 +401,8 @@ void Game::init(void)
|
||||
kludge_ingametemp = Menu::mainmenu;
|
||||
shouldreturntopausemenu = false;
|
||||
|
||||
disablepause = false;
|
||||
|
||||
/* Terry's Patrons... */
|
||||
const char* superpatrons_arr[] = {
|
||||
"Anders Ekermo",
|
||||
@@ -4811,6 +4813,11 @@ void Game::loadstats()
|
||||
skipfakeload = atoi(pText);
|
||||
}
|
||||
|
||||
if (pKey == "disablepause")
|
||||
{
|
||||
disablepause = atoi(pText);
|
||||
}
|
||||
|
||||
if (pKey == "over30mode")
|
||||
{
|
||||
over30mode = atoi(pText);
|
||||
@@ -5059,6 +5066,10 @@ void Game::savestats()
|
||||
msg->LinkEndChild(doc.NewText(help.String((int) skipfakeload).c_str()));
|
||||
dataNode->LinkEndChild(msg);
|
||||
|
||||
msg = doc.NewElement("disablepause");
|
||||
msg->LinkEndChild(doc.NewText(help.String((int) disablepause).c_str()));
|
||||
dataNode->LinkEndChild(msg);
|
||||
|
||||
msg = doc.NewElement("notextoutline");
|
||||
msg->LinkEndChild(doc.NewText(help.String((int) graphics.notextoutline).c_str()));
|
||||
dataNode->LinkEndChild(msg);
|
||||
@@ -7216,6 +7227,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
||||
option("text outline");
|
||||
option("invincibility", !ingame_titlemode || (!game.insecretlab && !game.intimetrial && !game.nodeathmode));
|
||||
option("slowdown", !ingame_titlemode || (!game.insecretlab && !game.intimetrial && !game.nodeathmode));
|
||||
option("unfocus pause");
|
||||
option("load screen");
|
||||
option("room name bg");
|
||||
option("return");
|
||||
|
||||
Reference in New Issue
Block a user