fix auxlib and examples

This commit is contained in:
zeromus 2008-08-02 23:07:33 +00:00
parent 0285667a71
commit 74126c0e9b
3 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
-- This script shows a simple button and click event
-- Include our help script to load iup and take care of exit
require("auxlib.lua");
require("auxlib");
function testiup()
-- Our callback function
@ -23,6 +23,8 @@ function testiup()
end
testiup();
while (true) do -- prevent script from exiting
FCEU.frameadvance();
end;

View File

@ -2,7 +2,7 @@
-- this shows a test window with all kinds of idle dialogs
-- include our generic script (TAKES CARE OF CLOSING DIALOGS and includes the two iup systems)
require("auxlib.lua");
require("auxlib");
-- Note that in the following example, parentheses are optional if you
-- are specifying tables with curly braces! Might look a little confusing.

View File

@ -19,8 +19,8 @@ end
-- this system allows you to open a number of dialogs without
-- having to bother about cleanup when the script exits
local handles = {}; -- this table should hold the handle to all dialogs created in lua
local dialogs = 0; -- should be incremented PRIOR to creating a new dialog
handles = {}; -- this table should hold the handle to all dialogs created in lua
dialogs = 0; -- should be incremented PRIOR to creating a new dialog
-- called by the onclose event (above)
function emu.OnCloseIup()