Remove references to python console

This commit is contained in:
Simon Robertshaw 2011-10-26 14:55:26 +01:00
parent e46ef289e1
commit 18ca4024c1
3 changed files with 3 additions and 62 deletions

View File

@ -23,8 +23,6 @@
#define LOCAL_SAVE_DIR "Saves"
#define LOCAL_LUA_DIR "Lua"
#define APPDATA_SUBDIR "\\HardWIRED"
#define THUMB_CACHE_SIZE 256
@ -99,13 +97,6 @@ extern unsigned char ZSIZE;
#define TRI_BRUSH 2
#define BRUSH_NUM 3
//#define GRAVFFT
//#define LUACONSOLE
//#define PYCONSOLE
//#define PYEXT
//no longer needed
#ifdef PIX16
typedef unsigned short pixel;
#else

View File

@ -11,6 +11,8 @@
#endif
#include <defines.h>
#define LOCAL_LUA_DIR "Lua"
#define LUACON_MDOWN 1
#define LUACON_MUP 2
#define LUACON_MPRESS 3

View File

@ -55,9 +55,6 @@
#include <air.h>
#include <icon.h>
#include <console.h>
#ifdef PYCONSOLE
#include "pythonconsole.h"
#endif
#ifdef LUACONSOLE
#include "luaconsole.h"
#endif
@ -1625,10 +1622,6 @@ int main(int argc, char *argv[])
#ifdef LUACONSOLE
luacon_open();
#endif
#ifdef PYCONSOLE
pycon_open();
#endif
#ifdef MT
numCores = core_count();
#endif
@ -2100,11 +2093,6 @@ int main(int argc, char *argv[])
if(!luacon_keyevent(sdl_rkey, sdl_mod, LUACON_KUP))
sdl_rkey = 0;
}
#endif
#ifdef PYCONSOLE
if(sdl_key){
pycon_keypress(sdl_key, sdl_mod);
}
#endif
if (sys_shortcuts==1)//all shortcuts can be disabled by python scripts
{
@ -3563,41 +3551,7 @@ int main(int argc, char *argv[])
if (console_mode)
{
#ifdef PYCONSOLE
if (pyready==1 && pygood==1)
{
char *console;
//char error[255] = "error!";
sys_pause = 1;
console = console_ui(vid_buf,console_error,console_more);
console = mystrdup(console);
strcpy(console_error,"");
if (process_command_py(vid_buf, console, console_error)==-1)
{
free(console);
break;
}
free(console);
if (!console_mode)
hud_enable = 1;
}
else
{
char *console;
sys_pause = 1;
console = console_ui(vid_buf,console_error,console_more);
console = mystrdup(console);
strcpy(console_error,"");
if (process_command_old(vid_buf, console, console_error)==-1)
{
free(console);
break;
}
free(console);
if (!console_mode)
hud_enable = 1;
}
#elif defined LUACONSOLE
#ifdef LUACONSOLE
char *console;
sys_pause = 1;
console = console_ui(vid_buf, console_error, console_more);
@ -3629,9 +3583,6 @@ int main(int argc, char *argv[])
}
//execute python step hook
#ifdef PYCONSOLE
pycon_step();
#endif
sdl_blit(0, 0, XRES+BARSIZE, YRES+MENUSIZE, vid_buf, XRES+BARSIZE);
//Setting an element for the stick man
@ -3658,9 +3609,6 @@ int main(int argc, char *argv[])
#ifdef LUACONSOLE
luacon_close();
#endif
#ifdef PYCONSOLE
pycon_close();
#endif
#ifdef PTW32_STATIC_LIB
pthread_win32_thread_detach_np();
pthread_win32_process_detach_np();