lua-users home
lua-l archive

state not being retained

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


This is where I think the problem lies:
if v.list then
 for j,x in pairs(v.list) do
 k = {}
 k.desc = x.desc
 k.offset = x.offset
 if x.offset then
 k.addr = v.addr + x.offset
 else
 k.addr = x.addr
 end
 k.Type = x.Type
 k.size = x.size
 k.list = x.list
 k.count = x.count
 k.split = x.split
 k.generated = x.generated
 GUI.keep_cheat = nil
 GUI.draw_cheat(ctx,font,k)
 k = GUI.keep_cheat
 v.list[j] = k
 end
 GUI.keep_cheat = v
 return
 end
...
local function draw_cheat(ctx,font,v)
 local prv, now, nxt, text, j, k, x, tmp, bytes, test
 if v.desc == nil then
 v.desc = "???"
 end
 GUI.keep_cheat = nil
 if v.prev or v.list or v.count or v.split then
 GUI.draw_cheats( ctx, font, v )
 v = GUI.keep_cheat
 return
 end
Though if you think the problem lies elsewhere feel free to look
through the source at https://github.com/awsdert/gasp, I'm just about
to upload the recent changes just in case you do

AltStyle によって変換されたページ (->オリジナル) /