[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Save the Lua state
- From: Steve Dekorte <steve@...>
- Date: Mon, 19 Jun 2000 13:31:43 -0700
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