diff --git a/src/gui/components/wxTitleManagerList.cpp b/src/gui/components/wxTitleManagerList.cpp index de1d8960..129454a3 100644 --- a/src/gui/components/wxTitleManagerList.cpp +++ b/src/gui/components/wxTitleManagerList.cpp @@ -156,6 +156,12 @@ void wxTitleManagerList::AddColumns() col5.SetText(_("Format")); col5.SetWidth(63); InsertColumn(ColumnFormat, col5); + + wxListItem col6; + col6.SetId(ColumnLocation); + col6.SetText(_("Location")); + col6.SetWidth(63); + InsertColumn(ColumnLocation, col6); } wxString wxTitleManagerList::OnGetItemText(long item, long column) const @@ -935,6 +941,16 @@ wxString wxTitleManagerList::GetTitleEntryText(const TitleEntry& entry, ItemColu return ""; //return wxStringFormat2("{}", entry.format); } + case ColumnLocation: + { + const auto relative_mlc_path = + entry.path.lexically_relative(ActiveSettings::GetMlcPath()).string(); + + if (relative_mlc_path.starts_with("usr") || relative_mlc_path.starts_with("sys")) + return _("MLC"); + else + return _("Game Paths"); + } default: UNREACHABLE; } diff --git a/src/gui/components/wxTitleManagerList.h b/src/gui/components/wxTitleManagerList.h index 2db99309..706de2e7 100644 --- a/src/gui/components/wxTitleManagerList.h +++ b/src/gui/components/wxTitleManagerList.h @@ -24,6 +24,7 @@ public: ColumnVersion, ColumnRegion, ColumnFormat, + ColumnLocation, ColumnMAX, };