TraceBullet/vba-rerecording

EmuLua savestate.create() return an invalid state object when passed argument

Opened this issue · 1 comments


for slot = 1, 12 do

    -- savestate.create() return an invalid state object when passed argument.
    local state = savestate.create(slot)

    -- expected filename: vba-save-directory/title_i.sgm
    -- actual filename: garbage(uninitialized memory)
    print(debug.getmetatable(state))

    -- Error! savestate failed
    --savestate.save(state)

    emu.pause()
end


do
    local state = savestate.create()

    -- filename: temporary path
    print(debug.getmetatable(state))

    -- OK
    savestate.save(state)
end


What version of the product are you using? On what operating system?
vba-rr svn r480. Windows7 x86


Fixed this. See attached patch file.

Original issue reported on code.google.com by alpha1...@gmail.com on 5 Jul 2013 at 6:40

Attachments:

Fixed on r482.
Thank you.

Original comment by alpha1...@gmail.com on 11 Jan 2014 at 7:27