mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
ImDebugger: Add a GameInfo tab to the PARAM.SFO window.
This commit is contained in:
1 parent
ac48b9125b
commit
7fda054147
3 files changed
+73
No files matched your search
@@ -65,6 +65,7 @@
|
||||
#include "UI/ImDebugger/ImDebugger.h"
|
||||
#include "UI/ImDebugger/ImGe.h"
|
||||
#include "UI/AudioCommon.h"
|
||||
#include "UI/GameInfoCache.h"
|
||||
|
||||
extern bool g_TakeScreenshot;
|
||||
static ImVec4 g_normalTextColor;
|
||||
@@ -547,6 +548,50 @@ void DrawParamSFO(ImConfig &cfg, ImControl &control) {
|
||||
renderParamSFOTable(g_paramSFORaw);
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
if (ImGui::BeginTabItem("GameInfo")) {
|
||||
Path path = PSP_CoreParameter().fileToStart;
|
||||
std::shared_ptr<GameInfo> info = g_gameInfoCache->GetInfo(nullptr, path, GameInfoFlags::PARAM_SFO);
|
||||
|
||||
if (info && ImGui::BeginTable("paramsfo", 2, ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersH | ImGuiTableFlags_Resizable)) {
|
||||
ImGui::TableSetupColumn("Key", ImGuiTableColumnFlags_WidthFixed, 140.0f);
|
||||
ImGui::TableSetupColumn("Value", ImGuiTableColumnFlags_WidthFixed, 270.0f);
|
||||
|
||||
ImGui::TableHeadersRow();
|
||||
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TextUnformatted("Title");
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TextUnformatted(info->GetTitle());
|
||||
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TextUnformatted("Path");
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TextUnformatted(path.ToVisualString());
|
||||
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TextUnformatted("Detected type");
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TextUnformatted(IdentifiedFileTypeToString(info->fileType));
|
||||
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TextUnformatted("Detected region");
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TextUnformatted(GameRegionToString(info->region));
|
||||
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TextUnformatted("HasConfig");
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TextUnformatted(BoolStr(info->hasConfig));
|
||||
|
||||
ImGui::EndTable();
|
||||
}
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
ImGui::EndTabBar();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user