mirror of
https://github.com/blawar/ooot.git
synced 2024-06-30 16:29:55 +00:00
added fast forward speed setting in config.json
This commit is contained in:
parent
455e16dcf4
commit
f44f1f2536
|
@ -412,7 +412,7 @@ namespace oot::hid
|
||||||
Player_ToggleTunic();
|
Player_ToggleTunic();
|
||||||
break;
|
break;
|
||||||
case Button::FAST_FORWARD:
|
case Button::FAST_FORWARD:
|
||||||
oot::state.fastForward = 5;
|
oot::state.fastForward = config().game().fastForwardSpeed();
|
||||||
break;
|
break;
|
||||||
case Button::CENTER_CAMERA:
|
case Button::CENTER_CAMERA:
|
||||||
oot::state.center_camera = true;
|
oot::state.center_camera = true;
|
||||||
|
|
|
@ -169,6 +169,7 @@ namespace oot
|
||||||
|
|
||||||
json::setU64(container, "pauseExitInputClearFrames", pauseExitInputClearFrames(), allocator);
|
json::setU64(container, "pauseExitInputClearFrames", pauseExitInputClearFrames(), allocator);
|
||||||
json::setU64(container, "textScrollSpeed", textScrollSpeed(), allocator);
|
json::setU64(container, "textScrollSpeed", textScrollSpeed(), allocator);
|
||||||
|
json::setU64(container, "fastForwardSpeed", fastForwardSpeed(), allocator);
|
||||||
json::set(container, "language", languageGetString(language()), allocator);
|
json::set(container, "language", languageGetString(language()), allocator);
|
||||||
|
|
||||||
|
|
||||||
|
@ -192,6 +193,7 @@ namespace oot
|
||||||
json::getBool(container, "enableDebugLevelSelect", enablDebugLevelSelect());
|
json::getBool(container, "enableDebugLevelSelect", enablDebugLevelSelect());
|
||||||
|
|
||||||
json::getU64(container, "pauseExitInputClearFrames", pauseExitInputClearFrames());
|
json::getU64(container, "pauseExitInputClearFrames", pauseExitInputClearFrames());
|
||||||
|
json::getU64(container, "fastForwardSpeed", fastForwardSpeed());
|
||||||
json::getU64(container, "textScrollSpeed", textScrollSpeed());
|
json::getU64(container, "textScrollSpeed", textScrollSpeed());
|
||||||
|
|
||||||
std::string lang;
|
std::string lang;
|
||||||
|
|
|
@ -344,6 +344,16 @@ namespace oot
|
||||||
|
|
||||||
void setLanguage(Language id);
|
void setLanguage(Language id);
|
||||||
|
|
||||||
|
const u64& fastForwardSpeed() const
|
||||||
|
{
|
||||||
|
return m_fastForwardSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
u64& fastForwardSpeed()
|
||||||
|
{
|
||||||
|
return m_fastForwardSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool m_graphicsEnabled = true;
|
bool m_graphicsEnabled = true;
|
||||||
bool m_audioEnabled = true;
|
bool m_audioEnabled = true;
|
||||||
|
@ -357,6 +367,7 @@ namespace oot
|
||||||
u64 m_pauseExitInputClearFrames = 2;
|
u64 m_pauseExitInputClearFrames = 2;
|
||||||
u64 m_textScrollSpeed = 1;
|
u64 m_textScrollSpeed = 1;
|
||||||
Language m_language = LANGUAGE_ENG;
|
Language m_language = LANGUAGE_ENG;
|
||||||
|
u64 m_fastForwardSpeed = 5;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Base
|
class Base
|
||||||
|
|
Loading…
Reference in New Issue
Block a user