pcsx-redux icon indicating copy to clipboard operation
pcsx-redux copied to clipboard

Accessing `psxRegisters` struct incorrectly causes crash to desktop

Open alam0rt opened this issue 1 year ago • 1 comments

While writing a lua script, I was incorrectly accessing the registers like so

    local regs = PCSX.getRegisters()
    local offsets = regs.a0

This was causing pcsx-redux to crash to desktop with no warning/error/logging

Fixing the script to use the correct fields

    local regs = PCSX.getRegisters()
    local offsets = regs.GPR.n.a0

fixed the issue, but the problem remains that the applicaton crashed from illegally accessing a struct field that didn't exist.

I'd expect that the application would handle this without crashing.

pcsx-redux-nightly-14035.20230321.9-x64

alam0rt avatar Mar 26 '23 03:03 alam0rt