/** ** Run the guichan main menus loop. ** ** @return 0 for success, else exit. */ static int MenuLoop() { int status; initGuichan(); InterfaceState = IfaceStateMenu; // Clear screen Video.ClearScreen(); Invalidate(); ButtonUnderCursor = -1; CursorState = CursorStatePoint; GameCursor = UI.Point.Cursor; // FIXME delete this when switching to full guichan GUI const std::string filename = LibraryFileName("scripts/guichan.lua"); status = LuaLoadFile(filename); // We clean up later in Exit return status; }
/** ** Run the guichan main menus loop. ** ** @return 0 for success, else exit. */ static int MenuLoop() { char buf[1024]; int status; initGuichan(); InterfaceState = IfaceStateMenu; // Clear screen Video.ClearScreen(); Invalidate(); ButtonUnderCursor = -1; CursorState = CursorStatePoint; GameCursor = UI.Point.Cursor; // FIXME delete this when switching to full guichan GUI LibraryFileName("scripts/guichan.lua", buf, sizeof(buf)); status = LuaLoadFile(buf); // We clean up later in Exit return status; }