Config: Port Movie settings to new config system.

This commit is contained in:
Admiral H. Curtiss 2021-12-27 19:39:35 +01:00
commit aa437d9805
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
9 changed files with 49 additions and 62 deletions

View file

@ -25,6 +25,7 @@ extern "C" {
#include "Common/Logging/Log.h"
#include "Common/MsgHandler.h"
#include "Core/Config/MainSettings.h"
#include "Core/ConfigManager.h"
#include "Core/HW/SystemTimers.h"
#include "Core/HW/VideoInterface.h"
@ -93,7 +94,7 @@ std::string GetDumpPath(const std::string& extension, std::time_t time, u32 inde
// Ask to delete file.
if (File::Exists(path))
{
if (SConfig::GetInstance().m_DumpFramesSilent ||
if (Config::Get(Config::MAIN_MOVIE_DUMP_FRAMES_SILENT) ||
AskYesNoFmtT("Delete the existing file '{0}'?", path))
{
File::Delete(path);