mirror of
https://github.com/EricPlayZ/EGameTools.git
synced 2026-10-10 12:53:04 +08:00
fixed a small config bug for boolean options
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#include <filesystem>
|
||||
#include <any>
|
||||
#include <array>
|
||||
#include <filesystem>
|
||||
#include <functional>
|
||||
#include "config.h"
|
||||
#include "..\menu\menu.h"
|
||||
#include "..\utils.h"
|
||||
#include "..\print.h"
|
||||
#include "..\utils.h"
|
||||
#include "config.h"
|
||||
#include "ini.h"
|
||||
|
||||
namespace Config {
|
||||
@@ -4132,7 +4132,7 @@ namespace Config {
|
||||
for (auto& entry : configVariablesDefault) {
|
||||
switch (entry.type) {
|
||||
case OPTION:
|
||||
reinterpret_cast<Option*>(entry.optionPtr)->Change(reader.Get(entry.section.data(), entry.key.data(), std::any_cast<bool>(entry.value)));
|
||||
reinterpret_cast<Option*>(entry.optionPtr)->Set(reader.Get(entry.section.data(), entry.key.data(), std::any_cast<bool>(entry.value)));
|
||||
break;
|
||||
case Float:
|
||||
*reinterpret_cast<float*>(entry.optionPtr) = reader.Get(entry.section.data(), entry.key.data(), std::any_cast<float>(entry.value));
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
#include <filesystem>
|
||||
#include <imgui.h>
|
||||
#include <ImGuiFileDialog.h>
|
||||
#include <Hotkey.h>
|
||||
#include "..\game_classes.h"
|
||||
#include <ImGuiFileDialog.h>
|
||||
#include <algorithm>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <imgui.h>
|
||||
#include <sstream>
|
||||
#include "..\core.h"
|
||||
#include "..\game_classes.h"
|
||||
#include "..\utils.h"
|
||||
#include "camera.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user