placidoproject / vba-rerecording

Automatically exported from code.google.com/p/vba-rerecording
GNU General Public License v2.0
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

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:

GoogleCodeExporter commented 9 years ago
Fixed on r482.
Thank you.

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