mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 11:53:14 +08:00
Fix read packed int not working (#128)
* Fix read packed int not working Remove the scope setting packed int (because accidentally setting packed int in bulk will cause account failures and there is no need to set it in bulk) Do not generate some configuration files at the root of the game * In VS, the views are sorted by folder * quash * Change the path * Reset the window style
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "Menu.hpp"
|
||||
|
||||
#include "imgui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "core/commands/Commands.hpp"
|
||||
#include "core/frontend/manager/UIManager.hpp"
|
||||
#include "core/renderer/Renderer.hpp"
|
||||
@@ -15,7 +16,7 @@
|
||||
#include "submenus/Settings.hpp"
|
||||
#include "submenus/Debug.hpp"
|
||||
#include "submenus/World.hpp"
|
||||
|
||||
#include "core/filemgr/FileMgr.hpp"
|
||||
namespace YimMenu
|
||||
{
|
||||
void Menu::Init()
|
||||
@@ -110,7 +111,11 @@ namespace YimMenu
|
||||
|
||||
void Menu::SetupFonts()
|
||||
{
|
||||
auto& IO = ImGui::GetIO();
|
||||
auto& IO = ImGui::GetIO();
|
||||
auto file_path = std::filesystem::path(std::getenv("appdata")) / "YimMenuV2" / "imgui.ini";
|
||||
std::string path = file_path.string();
|
||||
IO.IniFilename = path.c_str();
|
||||
IO.LogFilename = NULL;
|
||||
ImFontConfig FontCfg{};
|
||||
FontCfg.FontDataOwnedByAtlas = false;
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ namespace YimMenu::Submenus
|
||||
if (info.m_IsBoolStat)
|
||||
value.m_AsBool = STATS::GET_PACKED_STAT_BOOL_CODE(info.m_Index, -1);
|
||||
else
|
||||
value.m_AsInt = STATS::GET_PACKED_STAT_BOOL_CODE(info.m_Index, -1);
|
||||
value.m_AsInt = STATS::GET_PACKED_STAT_INT_CODE(info.m_Index, -1);
|
||||
}
|
||||
|
||||
static void WritePackedStat(const StatValue& value, const PackedStatInfo& info)
|
||||
@@ -224,8 +224,6 @@ namespace YimMenu::Submenus
|
||||
|
||||
if (info.m_IsBoolStat)
|
||||
STATS::SET_PACKED_STAT_BOOL_CODE(info.m_Index, static_cast<bool>(value), -1);
|
||||
else
|
||||
STATS::SET_PACKED_STAT_INT_CODE(info.m_Index, value, -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user