Add info about g_nAppMode to settings.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2021-03-06 18:00:31 +00:00
parent 03329bba84
commit 8499ccb692
3 changed files with 21 additions and 0 deletions

View file

@ -98,6 +98,11 @@ namespace sa2
const eCpuType cpu = GetMainCpu();
ImGui::Selectable(getCPUName(cpu).c_str());
ImGui::TableNextColumn();
ImGui::Selectable("Mode");
ImGui::TableNextColumn();
ImGui::Selectable(getModeName(g_nAppMode).c_str());
ImGui::EndTable();
}

View file

@ -46,6 +46,16 @@ namespace
{CPU_65C02, "CPU_65C02"},
{CPU_Z80, "CPU_Z80"},
};
const std::map<AppMode_e, std::string> modes =
{
{MODE_LOGO, "MODE_LOGO"},
{MODE_PAUSED, "MODE_PAUSED"},
{MODE_RUNNING, "MODE_RUNNING"},
{MODE_DEBUG, "MODE_DEBUG"},
{MODE_STEPPING, "MODE_STEPPING"},
{MODE_BENCHMARK, "MODE_BENCHMARCK"},
};
}
namespace sa2
@ -66,4 +76,9 @@ namespace sa2
return cpuTypes.at(cpu);
}
const std::string & getModeName(AppMode_e mode)
{
return modes.at(mode);
}
}

View file

@ -12,5 +12,6 @@ namespace sa2
const std::string & getCardName(SS_CARDTYPE card);
const std::string & getApple2Name(eApple2Type type);
const std::string & getCPUName(eCpuType cpu);
const std::string & getModeName(AppMode_e mode);
}