From 18ca4024c13a6b4dc5e4028d50852f401ebc4bde Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Wed, 26 Oct 2011 14:55:26 +0100 Subject: [PATCH] Remove references to python console --- includes/defines.h | 9 -------- includes/luaconsole.h | 2 ++ src/main.c | 54 +------------------------------------------ 3 files changed, 3 insertions(+), 62 deletions(-) diff --git a/includes/defines.h b/includes/defines.h index e33bc0c37..f4b4d0813 100644 --- a/includes/defines.h +++ b/includes/defines.h @@ -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 diff --git a/includes/luaconsole.h b/includes/luaconsole.h index de33a04a3..f98e66244 100644 --- a/includes/luaconsole.h +++ b/includes/luaconsole.h @@ -11,6 +11,8 @@ #endif #include +#define LOCAL_LUA_DIR "Lua" + #define LUACON_MDOWN 1 #define LUACON_MUP 2 #define LUACON_MPRESS 3 diff --git a/src/main.c b/src/main.c index e2c0fc6fc..018759958 100644 --- a/src/main.c +++ b/src/main.c @@ -55,9 +55,6 @@ #include #include #include -#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();