impr: Clean up window setup code

This commit is contained in:
WerWolv
2025-08-10 12:34:03 +02:00
parent 3e98d0a0f8
commit 5028b354cc
16 changed files with 120 additions and 129 deletions

View File

@@ -6,6 +6,7 @@ namespace hex::init {
void handleFileOpenRequest();
void initializationFinished();
std::unique_ptr<WindowSplash> initializeImHex();
void deinitializeImHex();

View File

@@ -53,6 +53,7 @@ namespace hex {
void registerEventHandlers();
void loadPostProcessingShader();
void setupEmergencyPopups();
void drawImGui();
void drawWithShader();
@@ -66,13 +67,10 @@ namespace hex {
double m_lastStartFrameTime = 0;
double m_lastFrameTime = 0;
std::mutex m_popupMutex;
std::list<std::string> m_popupsToOpen;
std::set<int> m_pressedKeys;
ImGuiExt::ImHexCustomData m_imguiCustomData;
u32 m_searchBarPosition = 0;
bool m_emergencyPopupOpen = false;
bool m_shouldUnlockFrameRate = false;
double m_fpsUnlockedEndTime = 0.0;