Allocate only interpreter or dynarec + hopefully fixed some FPU bugs + hopefully it will build in Windows CI 🙏
This commit is contained in:
@@ -65,6 +65,13 @@ Settings::Settings(n64::Core& core) {
|
||||
settingsFile << settings;
|
||||
}
|
||||
settingsFile.close();
|
||||
|
||||
switch(core.cpuType) {
|
||||
case n64::CpuType::Interpreter: core.cpuInterp = new n64::Interpreter; break;
|
||||
case n64::CpuType::Dynarec: core.cpuDynarec = new n64::JIT::Dynarec; break;
|
||||
case n64::CpuType::NONE:
|
||||
Util::panic("BRUH\n");
|
||||
}
|
||||
}
|
||||
|
||||
Settings::~Settings() {
|
||||
@@ -100,7 +107,7 @@ void Settings::RenderWidget(bool& show) {
|
||||
const char *categories[] = {"General", "CPU", "Audio"};
|
||||
enum Category { General, CPU, Audio };
|
||||
static int category = General;
|
||||
CreateComboList("", &category, categories, 3);
|
||||
CreateComboList("##", &category, categories, 3);
|
||||
ImGui::Separator();
|
||||
switch (category) {
|
||||
case General:
|
||||
|
||||
Reference in New Issue
Block a user