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:
Misa
2020-06-29 19:49:14 -07:00
committed by Ethan Lee
parent 3f077ee56a
commit 35c540449e
5 changed files with 48 additions and 7 deletions

View File

@@ -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");