lua-users home
lua-l archive

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


erik@hougaard.com (Erik Hougaard) wrote:
> > I'm using Lua in a video game to define scenes behaviour.
> > When the user save the game to play later, I need to save the Lua state 
on
> a file.

If you control how memory is allocated to Lua would it be possible to dump 
the 
whole block of memory that the lua state is stored in to a disk and load it 
later?
I guess you'd have to change any C function pointers on the lua stack when 
you
reloaded it though.

Steve