[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Save the Lua state
- From: Steve Dekorte <steve@...>
- Date: Mon, 19 Jun 2000 13:31:43 -0700
email@example.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
> a file.
If you control how memory is allocated to Lua would it be possible to dump
whole block of memory that the lua state is stored in to a disk and load it
I guess you'd have to change any C function pointers on the lua stack when
reloaded it though.