mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
add threaded 3D option to the interface and config file. not functional yet.
This commit is contained in:
@ -33,6 +33,8 @@ int WindowHeight;
|
|||||||
|
|
||||||
int DirectBoot;
|
int DirectBoot;
|
||||||
|
|
||||||
|
int Threaded3D;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
char Name[16];
|
char Name[16];
|
||||||
@ -77,6 +79,8 @@ ConfigEntry ConfigFile[] =
|
|||||||
|
|
||||||
{"DirectBoot", 0, &DirectBoot, 1, NULL, 0},
|
{"DirectBoot", 0, &DirectBoot, 1, NULL, 0},
|
||||||
|
|
||||||
|
{"Threaded3D", 0, &Threaded3D, 1, NULL, 0},
|
||||||
|
|
||||||
{"", -1, NULL, 0, NULL, 0}
|
{"", -1, NULL, 0, NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -35,6 +35,8 @@ extern int WindowHeight;
|
|||||||
|
|
||||||
extern int DirectBoot;
|
extern int DirectBoot;
|
||||||
|
|
||||||
|
extern int Threaded3D;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // CONFIG_H
|
#endif // CONFIG_H
|
||||||
|
@ -36,6 +36,10 @@ EmuConfigDialog::EmuConfigDialog(wxWindow* parent)
|
|||||||
vboxmain->Add(cbDirectBoot, 0, wxALL&(~wxBOTTOM), 15);
|
vboxmain->Add(cbDirectBoot, 0, wxALL&(~wxBOTTOM), 15);
|
||||||
cbDirectBoot->SetValue(Config::DirectBoot != 0);
|
cbDirectBoot->SetValue(Config::DirectBoot != 0);
|
||||||
|
|
||||||
|
cbThreaded3D = new wxCheckBox(this, wxID_ANY, "Threaded 3D renderer");
|
||||||
|
vboxmain->Add(cbThreaded3D, 0, wxALL&(~wxBOTTOM), 15);
|
||||||
|
cbThreaded3D->SetValue(Config::Threaded3D != 0);
|
||||||
|
|
||||||
{
|
{
|
||||||
wxPanel* p = new wxPanel(this);
|
wxPanel* p = new wxPanel(this);
|
||||||
wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
@ -62,6 +66,7 @@ EmuConfigDialog::~EmuConfigDialog()
|
|||||||
void EmuConfigDialog::OnOk(wxCommandEvent& event)
|
void EmuConfigDialog::OnOk(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
Config::DirectBoot = cbDirectBoot->GetValue() ? 1:0;
|
Config::DirectBoot = cbDirectBoot->GetValue() ? 1:0;
|
||||||
|
Config::Threaded3D = cbThreaded3D->GetValue() ? 1:0;
|
||||||
Config::Save();
|
Config::Save();
|
||||||
|
|
||||||
Close();
|
Close();
|
||||||
|
@ -37,6 +37,7 @@ private:
|
|||||||
void OnCancel(wxCommandEvent& event);
|
void OnCancel(wxCommandEvent& event);
|
||||||
|
|
||||||
wxCheckBox* cbDirectBoot;
|
wxCheckBox* cbDirectBoot;
|
||||||
|
wxCheckBox* cbThreaded3D;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // WX_EMUCONFIG_H
|
#endif // WX_EMUCONFIG_H
|
||||||
|
Reference in New Issue
Block a user