fix auxlib and examples
This commit is contained in:
parent
0285667a71
commit
74126c0e9b
|
@ -1,7 +1,7 @@
|
||||||
-- This script shows a simple button and click event
|
-- This script shows a simple button and click event
|
||||||
|
|
||||||
-- Include our help script to load iup and take care of exit
|
-- Include our help script to load iup and take care of exit
|
||||||
require("auxlib.lua");
|
require("auxlib");
|
||||||
|
|
||||||
function testiup()
|
function testiup()
|
||||||
-- Our callback function
|
-- Our callback function
|
||||||
|
@ -23,6 +23,8 @@ function testiup()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
testiup();
|
||||||
|
|
||||||
while (true) do -- prevent script from exiting
|
while (true) do -- prevent script from exiting
|
||||||
FCEU.frameadvance();
|
FCEU.frameadvance();
|
||||||
end;
|
end;
|
|
@ -2,7 +2,7 @@
|
||||||
-- this shows a test window with all kinds of idle dialogs
|
-- 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)
|
-- 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
|
-- Note that in the following example, parentheses are optional if you
|
||||||
-- are specifying tables with curly braces! Might look a little confusing.
|
-- are specifying tables with curly braces! Might look a little confusing.
|
||||||
|
|
|
@ -19,8 +19,8 @@ end
|
||||||
|
|
||||||
-- this system allows you to open a number of dialogs without
|
-- this system allows you to open a number of dialogs without
|
||||||
-- having to bother about cleanup when the script exits
|
-- having to bother about cleanup when the script exits
|
||||||
local handles = {}; -- this table should hold the handle to all dialogs created in lua
|
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
|
dialogs = 0; -- should be incremented PRIOR to creating a new dialog
|
||||||
|
|
||||||
-- called by the onclose event (above)
|
-- called by the onclose event (above)
|
||||||
function emu.OnCloseIup()
|
function emu.OnCloseIup()
|
||||||
|
|
Loading…
Reference in New Issue