mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-19 23:20:57 +00:00
fix compile error
This commit is contained in:
+2
-2
@@ -3,7 +3,6 @@
|
|||||||
/// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info.
|
/// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info.
|
||||||
///
|
///
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#include <tomlplusplus/toml.hpp>
|
|
||||||
#include <wx/wxprec.h>
|
#include <wx/wxprec.h>
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include <wx/dc.h>
|
#include <wx/dc.h>
|
||||||
@@ -16,6 +15,7 @@
|
|||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
#include <wx/wxhtml.h.>
|
#include <wx/wxhtml.h.>
|
||||||
#include <wx/filepicker.h>
|
#include <wx/filepicker.h>
|
||||||
|
#include <tomlplusplus/toml.hpp>
|
||||||
#include <comutil.h>
|
#include <comutil.h>
|
||||||
#include <ShlObj.h>
|
#include <ShlObj.h>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
@@ -199,7 +199,7 @@ void MySettingsFrame::UpdateCacheDirectory(const std::string& path) {
|
|||||||
template<typename ValueType>
|
template<typename ValueType>
|
||||||
void UpdateConfig(const std::string& key, ValueType&& value) {
|
void UpdateConfig(const std::string& key, ValueType&& value) {
|
||||||
if (fs::exists(UIData::ConfigPath)) {
|
if (fs::exists(UIData::ConfigPath)) {
|
||||||
toml::table config = toml::parse_file(UIData::ConfigPath).table();
|
toml::parse_result config = toml::parse_file(UIData::ConfigPath);
|
||||||
config.insert_or_assign(key, value);
|
config.insert_or_assign(key, value);
|
||||||
|
|
||||||
std::ofstream tml(UIData::ConfigPath);
|
std::ofstream tml(UIData::ConfigPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user