This commit is contained in:
wheremyfoodat 2023-07-18 22:45:55 +03:00
parent 31d1c6ff3f
commit c339c7d1c5
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,7 @@
#include "config.hpp"
#include <fstream>
#include <string>
#include "helpers.hpp"
#include "toml.hpp"
@ -68,7 +69,7 @@ void EmulatorConfig::save(const std::filesystem::path& path) {
}
data["GPU"]["EnableShaderJIT"] = shaderJitEnabled;
data["GPU"]["Renderer"] = Renderer::typeToString(rendererType);
data["GPU"]["Renderer"] = std::string(Renderer::typeToString(rendererType));
std::ofstream file(path, std::ios::out);
file << data;