From 4bc33f2ae7a47ed36cdabcdc2517c00ea05ad535 Mon Sep 17 00:00:00 2001 From: Cuyler36 Date: Sat, 21 Jun 2025 07:03:43 -0400 Subject: [PATCH] jaudio_NES: match & link connect --- configure.py | 2 +- src/static/jaudio_NES/internal/connect.c | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/configure.py b/configure.py index 838e0ea4..4a58ed75 100644 --- a/configure.py +++ b/configure.py @@ -765,7 +765,7 @@ config.libs = [ Object(NonMatching, "jaudio_NES/internal/centcalc.c"), Object(NonMatching, "jaudio_NES/internal/channel.c"), Object(NonMatching, "jaudio_NES/internal/cmdstack.c"), - Object(NonMatching, "jaudio_NES/internal/connect.c"), + Object(Matching, "jaudio_NES/internal/connect.c"), Object(NonMatching, "jaudio_NES/internal/driver.c"), Object(Matching, "jaudio_NES/internal/driverinterface.c"), Object(Matching, "jaudio_NES/internal/dsp_cardunlock.c"), diff --git a/src/static/jaudio_NES/internal/connect.c b/src/static/jaudio_NES/internal/connect.c index 1dd4e364..1f3f4097 100644 --- a/src/static/jaudio_NES/internal/connect.c +++ b/src/static/jaudio_NES/internal/connect.c @@ -271,11 +271,8 @@ u16 Jac_WsPhysicalToVirtual(u16 ws) */ void Jac_WsConnectTableSet(u32 id, u32 val) { - u32* id2 = &id; - u32* bnk = &val; - if (id != 0xffff && id < 0x100 && WS_V2P_TABLE[id] == -1) { - WS_V2P_TABLE[id] = *bnk; + WS_V2P_TABLE[id] = val; } } @@ -286,11 +283,8 @@ void Jac_WsConnectTableSet(u32 id, u32 val) */ void Jac_BnkConnectTableSet(u32 id, u32 val) { - u32* id2 = &id; - u32* bnk = &val; - if (id != 0xffff && id < 0x100 && BNK_V2P_TABLE[id] == -1) { - BNK_V2P_TABLE[id] = *bnk; + BNK_V2P_TABLE[id] = val; } }