Prepare for Atrac context data to work the new way. Not actually active yet. Also restrict old versions to 4 contexts.

This commit is contained in:
Henrik Rydgård committed 2025-03-16 19:32:03 +01:00
1 parent 4fbdb58beb
commit b7782d98f3
7 files changed
+84 -49

No files matched your search

+2 -2
View File
@@ -968,7 +968,7 @@ void DrawAudioDecodersView(ImConfig &cfg, ImControl &control) {
ImGui::TableHeadersRow();
for (int i = 0; i < PSP_NUM_ATRAC_IDS; i++) {
for (int i = 0; i < PSP_MAX_ATRAC_IDS; i++) {
u32 type = 0;
const AtracBase *ctx = __AtracGetCtx(i, &type);
if (!ctx) {
@@ -1009,7 +1009,7 @@ void DrawAudioDecodersView(ImConfig &cfg, ImControl &control) {
ImGui::EndTable();
}
if (cfg.selectedAtracCtx >= 0 && cfg.selectedAtracCtx < PSP_NUM_ATRAC_IDS) {
if (cfg.selectedAtracCtx >= 0 && cfg.selectedAtracCtx < PSP_MAX_ATRAC_IDS) {
u32 type = 0;
const AtracBase *ctx = __AtracGetCtx(cfg.selectedAtracCtx, &type);
// Show details about the selected atrac context here.