| 198 | } |
| 199 | |
| 200 | void Config::saveDefaultFfmpeg(const std::filesystem::path& gamepath) { |
| 201 | /* Save only if game file exists */ |
| 202 | if (!std::filesystem::exists(gamepath)) |
| 203 | return; |
| 204 | |
| 205 | /* Open the general preferences */ |
| 206 | std::filesystem::path generalPath = configdir / "libTAS.ini"; |
| 207 | QSettings general_settings(QString(generalPath.c_str()), QSettings::IniFormat); |
| 208 | |
| 209 | general_settings.setFallbacksEnabled(false); |
| 210 | |
| 211 | general_settings.setValue("ffmpegoptions", ffmpegoptions.c_str()); |
| 212 | } |
| 213 | |
| 214 | void Config::load(const std::filesystem::path& gamepath) { |
| 215 | |