mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add being able to toggle over/fixed-30-FPS, off by default
There is now an option in "graphic options" named "toggle fps", which toggles whether the game visually runs at 1000/34 FPS or over 1000/34 FPS. It is off by default. I've had to put the entire game loop in yet another set of braces, I'll indent it next commit.
This commit is contained in:
@@ -387,6 +387,8 @@ void Game::init(void)
|
||||
shouldreturntoeditor = false;
|
||||
#endif
|
||||
|
||||
over30mode = false;
|
||||
|
||||
/* Terry's Patrons... */
|
||||
const char* superpatrons_arr[] = {
|
||||
"Anders Ekermo",
|
||||
@@ -4746,6 +4748,11 @@ void Game::loadstats()
|
||||
skipfakeload = atoi(pText);
|
||||
}
|
||||
|
||||
if (pKey == "over30mode")
|
||||
{
|
||||
over30mode = atoi(pText);
|
||||
}
|
||||
|
||||
if (pKey == "notextoutline")
|
||||
{
|
||||
graphics.notextoutline = atoi(pText);
|
||||
@@ -4991,6 +4998,10 @@ void Game::savestats()
|
||||
msg->LinkEndChild(doc.NewText(help.String((int)graphics.showmousecursor).c_str()));
|
||||
dataNode->LinkEndChild(msg);
|
||||
|
||||
msg = doc.NewElement("over30mode");
|
||||
msg->LinkEndChild(doc.NewText(help.String((int) over30mode).c_str()));
|
||||
dataNode->LinkEndChild(msg);
|
||||
|
||||
for (size_t i = 0; i < controllerButton_flip.size(); i += 1)
|
||||
{
|
||||
msg = doc.NewElement("flipButton");
|
||||
@@ -7063,6 +7074,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
||||
option("toggle filter");
|
||||
option("toggle analogue");
|
||||
option("toggle mouse");
|
||||
option("toggle fps");
|
||||
option("return");
|
||||
menuxoff = -50;
|
||||
menuyoff = 8;
|
||||
|
||||
Reference in New Issue
Block a user