From ba94792de8f2a0e5e02b69e581a1be71bd2e2083 Mon Sep 17 00:00:00 2001 From: beyondcoast Date: Sun, 10 Feb 2019 19:06:33 -0600 Subject: [PATCH] fix mapping detection --- host/scripts/snes/v2proto_hirom.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/host/scripts/snes/v2proto_hirom.lua b/host/scripts/snes/v2proto_hirom.lua index 2a5a0a8..e3417c8 100644 --- a/host/scripts/snes/v2proto_hirom.lua +++ b/host/scripts/snes/v2proto_hirom.lua @@ -758,7 +758,8 @@ local function process(process_opts, console_opts) local internal_header = get_header() local snes_mapping = console_opts["mapper"] if snes_mapping == "" then - snes_mapping = internal_header["mapping"] + snes_mapping = lorom_name + if (internal_header["map_mode"] & 1) == 1 then map_mode_str = hirom_name end print("Mapping not provided, " .. snes_mapping .. " detected.") end