UI+build: Isolate wxWidgets code from non-GUI code (#1633)

This commit is contained in:
SSimco 2025-07-15 05:28:41 +03:00 committed by GitHub
parent 5f3c2816ec
commit 67de63bed6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
199 changed files with 2414 additions and 2091 deletions

View file

@ -1,50 +0,0 @@
#pragma once
#include <wx/frame.h>
#include <wx/checkbox.h>
#include <wx/choice.h>
#include <wx/combobox.h>
#include <wx/slider.h>
#include "Cafe/GameProfile/GameProfile.h"
class GameProfileWindow : public wxFrame
{
public:
GameProfileWindow(wxWindow* parent, uint64_t title_id);
~GameProfileWindow();
private:
uint64_t m_title_id;
GameProfile m_game_profile;
void OnStreamoutSizeChange(wxCommandEvent& event);
void OnControllerProfileDropdown(wxCommandEvent& event);
void SetSliderValue(wxSlider* slider, sint32 new_value) const;
void SetProfileInt(gameProfileIntegerOption_t& option, wxCheckBox* checkbox, sint32 value) const;
void ApplyProfile();
void SaveProfile();
// general
wxCheckBox* m_load_libs, *m_start_with_padview;
// cpu
wxChoice *m_cpu_mode;
wxChoice* m_thread_quantum;
// gpu
//wxCheckBox* m_extended_texture_readback;
//wxChoice* m_precompiled;
wxChoice* m_graphic_api;
wxChoice* m_shader_mul_accuracy;
//wxChoice* m_cache_accuracy;
// audio
//wxCheckBox* m_disable_audio;
// controller
wxComboBox* m_controller_profile[8];
};