How to save global variables using the lua C API

lua

This function will save all the global variables in a lua state. Only string, number and boolean variables are supported, but this code can be easily extended to support tables as well.

Continue reading

Advertisements