* fixed filename reference in Luabot.lua (#603)
* SDL: fixed instructions counting (even though the only way to see the value of the counter is to use debugger.getinstructionscount() in Lua)
This commit is contained in:
parent
50a1ad74ab
commit
78b47b938a
|
@ -142,7 +142,7 @@ function createGUI(n)
|
|||
-- ok, file selected, if an error occurred or user canceled, the function already returned, so lets write the bot!
|
||||
|
||||
-- get the framework first. we need it to find the relevant tokens
|
||||
local fh = assert(io.open("basicbot_framework.lua","r"));
|
||||
local fh = assert(io.open("luabot_framework.lua","r"));
|
||||
local framework = fh:read("*a");
|
||||
fh:close();
|
||||
|
||||
|
|
|
@ -740,10 +740,8 @@ void DebugCycle()
|
|||
uint16 A = 0;
|
||||
int size;
|
||||
|
||||
#ifdef WIN32
|
||||
// since this function is called once for every instruction, we can use it for keeping statistics
|
||||
IncrementInstructionsCounters();
|
||||
#endif
|
||||
|
||||
if (scanline == 240)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue