Make CPU respect chosen option (JIT, etc)
This commit is contained in:
@@ -8,17 +8,12 @@
|
||||
std::string savePath;
|
||||
|
||||
bool SettingsWindow::render() {
|
||||
ImGui::OpenPopup("Settings", ImGuiPopupFlags_None);
|
||||
ImVec2 center = ImGui::GetMainViewport()->GetCenter();
|
||||
ImGui::SetNextWindowPos(center, ImGuiCond_Appearing, ImVec2(0.5f, 0.5f));
|
||||
|
||||
if(ImGui::BeginPopupModal("Settings")) {
|
||||
if(ImGui::BeginPopupModal("Settings", &isOpen)) {
|
||||
if(ImGui::BeginTabBar("SettingsTabBar")) {
|
||||
if(ImGui::BeginTabItem("General")) {
|
||||
ImGui::BeginDisabled();
|
||||
ImGui::InputText("Save Path", (char*)savesPath.c_str(), savesPath.length());
|
||||
ImGui::EndDisabled();
|
||||
ImGui::SameLine();
|
||||
if(ImGui::Button("Pick...")) {
|
||||
NFD::Guard guard;
|
||||
NFD::UniquePath outPath;
|
||||
@@ -33,6 +28,10 @@ bool SettingsWindow::render() {
|
||||
applyEnabled = true;
|
||||
}
|
||||
}
|
||||
ImGui::SameLine();
|
||||
ImGui::BeginDisabled();
|
||||
ImGui::InputText("Save Path", (char*)savesPath.c_str(), savesPath.length());
|
||||
ImGui::EndDisabled();
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
|
||||
@@ -65,6 +64,7 @@ bool SettingsWindow::render() {
|
||||
ImGui::SameLine();
|
||||
|
||||
if(ImGui::Button("Cancel")) {
|
||||
isOpen = false;
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
ImGui::EndPopup();
|
||||
|
||||
Reference in New Issue
Block a user