Skip to content

Commit

Permalink
Merge pull request #2 from Physics365/stable
Browse files Browse the repository at this point in the history
Update StartupUi.cpp
  • Loading branch information
telecomadm1145 authored Aug 30, 2024
2 parents dbe37d7 + 60123d7 commit 032994b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CasioEmuMsvc/StartupUi/StartupUi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@ class ModelEditor : public UIWindow {
mi.ink_color.g = color[1] * 255;
mi.ink_color.b = color[2] * 255;
}
if (ImGui::Button("Save")) {
std::ofstream ifs(pth / "config.bin", std::ios::binary);
if (!ifs)
PANIC("Cannot open.");
Binary::Write(ifs, mi);
this->open = false;
}
ImGui::Separator();
if (btninfo) {
if (ImGui::InputText("Keyname", buffer, 260)) {
Expand Down

0 comments on commit 032994b

Please sign in to comment.