1
0
mirror of https://github.com/blawar/ooot.git synced 2024-06-28 07:24:04 +00:00

added fast forward speed setting in config.json

This commit is contained in:
Blake Warner 2022-04-06 23:53:52 -04:00
parent 455e16dcf4
commit f44f1f2536
3 changed files with 14 additions and 1 deletions

View File

@ -412,7 +412,7 @@ namespace oot::hid
Player_ToggleTunic();
break;
case Button::FAST_FORWARD:
oot::state.fastForward = 5;
oot::state.fastForward = config().game().fastForwardSpeed();
break;
case Button::CENTER_CAMERA:
oot::state.center_camera = true;

View File

@ -169,6 +169,7 @@ namespace oot
json::setU64(container, "pauseExitInputClearFrames", pauseExitInputClearFrames(), allocator);
json::setU64(container, "textScrollSpeed", textScrollSpeed(), allocator);
json::setU64(container, "fastForwardSpeed", fastForwardSpeed(), allocator);
json::set(container, "language", languageGetString(language()), allocator);
@ -192,6 +193,7 @@ namespace oot
json::getBool(container, "enableDebugLevelSelect", enablDebugLevelSelect());
json::getU64(container, "pauseExitInputClearFrames", pauseExitInputClearFrames());
json::getU64(container, "fastForwardSpeed", fastForwardSpeed());
json::getU64(container, "textScrollSpeed", textScrollSpeed());
std::string lang;

View File

@ -344,6 +344,16 @@ namespace oot
void setLanguage(Language id);
const u64& fastForwardSpeed() const
{
return m_fastForwardSpeed;
}
u64& fastForwardSpeed()
{
return m_fastForwardSpeed;
}
protected:
bool m_graphicsEnabled = true;
bool m_audioEnabled = true;
@ -357,6 +367,7 @@ namespace oot
u64 m_pauseExitInputClearFrames = 2;
u64 m_textScrollSpeed = 1;
Language m_language = LANGUAGE_ENG;
u64 m_fastForwardSpeed = 5;
};
class Base