diff options
| author | 2021-06-18 16:20:10 +0200 | |
|---|---|---|
| committer | 2021-09-18 23:22:11 +0200 | |
| commit | f25d6ebc45dc02904ef3ca6ad8efea9a0853d194 (patch) | |
| tree | 45ad353f9b1a76e05cee0d9abe4a9642eaa9b3d0 /src/common | |
| parent | input_common/tas: Base playback & recording system (diff) | |
| download | yuzu-f25d6ebc45dc02904ef3ca6ad8efea9a0853d194.tar.gz yuzu-f25d6ebc45dc02904ef3ca6ad8efea9a0853d194.tar.xz yuzu-f25d6ebc45dc02904ef3ca6ad8efea9a0853d194.zip | |
settings: File selector & other settings
First of all, TASing requires a script to play back. The user can select the parent directory at `System -> Filesystem`, next to an option to pause TAS during loads: This requires a "hacky" setup deeper in the code and will be added in the last commit.
Also, Hotkeys are being introduced: CTRL+F5 for playback start/stop, CTRL+F6 for re-reading the script and CTRL+F7 for recording a new script.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/fs/path_util.cpp | 2 | ||||
| -rw-r--r-- | src/common/fs/path_util.h | 2 | ||||
| -rw-r--r-- | src/common/settings.h | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src/common/fs/path_util.cpp b/src/common/fs/path_util.cpp index 6cdd14f13..5f76adedb 100644 --- a/src/common/fs/path_util.cpp +++ b/src/common/fs/path_util.cpp | |||
| @@ -116,6 +116,8 @@ private: | |||
| 116 | GenerateYuzuPath(YuzuPath::ScreenshotsDir, yuzu_path / SCREENSHOTS_DIR); | 116 | GenerateYuzuPath(YuzuPath::ScreenshotsDir, yuzu_path / SCREENSHOTS_DIR); |
| 117 | GenerateYuzuPath(YuzuPath::SDMCDir, yuzu_path / SDMC_DIR); | 117 | GenerateYuzuPath(YuzuPath::SDMCDir, yuzu_path / SDMC_DIR); |
| 118 | GenerateYuzuPath(YuzuPath::ShaderDir, yuzu_path / SHADER_DIR); | 118 | GenerateYuzuPath(YuzuPath::ShaderDir, yuzu_path / SHADER_DIR); |
| 119 | |||
| 120 | GenerateYuzuPath(YuzuPath::TASFile, fs::path{""}); | ||
| 119 | } | 121 | } |
| 120 | 122 | ||
| 121 | ~PathManagerImpl() = default; | 123 | ~PathManagerImpl() = default; |
diff --git a/src/common/fs/path_util.h b/src/common/fs/path_util.h index f956ac9a2..6079de4c6 100644 --- a/src/common/fs/path_util.h +++ b/src/common/fs/path_util.h | |||
| @@ -23,6 +23,8 @@ enum class YuzuPath { | |||
| 23 | ScreenshotsDir, // Where yuzu screenshots are stored. | 23 | ScreenshotsDir, // Where yuzu screenshots are stored. |
| 24 | SDMCDir, // Where the emulated SDMC is stored. | 24 | SDMCDir, // Where the emulated SDMC is stored. |
| 25 | ShaderDir, // Where shaders are stored. | 25 | ShaderDir, // Where shaders are stored. |
| 26 | |||
| 27 | TASFile, // Where the current script file is stored. | ||
| 26 | }; | 28 | }; |
| 27 | 29 | ||
| 28 | /** | 30 | /** |
diff --git a/src/common/settings.h b/src/common/settings.h index 29b888f10..884ea55f8 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -550,6 +550,9 @@ struct Values { | |||
| 550 | BasicSetting<bool> gamecard_current_game{false, "gamecard_current_game"}; | 550 | BasicSetting<bool> gamecard_current_game{false, "gamecard_current_game"}; |
| 551 | BasicSetting<std::string> gamecard_path{std::string(), "gamecard_path"}; | 551 | BasicSetting<std::string> gamecard_path{std::string(), "gamecard_path"}; |
| 552 | 552 | ||
| 553 | // TAS | ||
| 554 | bool pauseTasOnLoad; | ||
| 555 | |||
| 553 | // Debugging | 556 | // Debugging |
| 554 | bool record_frame_times; | 557 | bool record_frame_times; |
| 555 | BasicSetting<bool> use_gdbstub{false, "use_gdbstub"}; | 558 | BasicSetting<bool> use_gdbstub{false, "use_gdbstub"}; |