MCPcopy Create free account
hub / github.com/clementgallet/libTAS / saveDefaultFfmpeg

Method saveDefaultFfmpeg

src/program/Config.cpp:200–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void 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
214void Config::load(const std::filesystem::path& gamepath) {
215

Callers 1

slotDefaultMethod · 0.80

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected