Add info about g_nAppMode to settings.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
03329bba84
commit
8499ccb692
3 changed files with 21 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue