From 32fe184351e7bc44fd8577739c14a0c422456dac Mon Sep 17 00:00:00 2001 From: mniip Date: Fri, 17 May 2013 17:30:44 +0400 Subject: sdl-dir scons parameter diff --git a/SConscript b/SConscript index 1a5576f..d8c13a0 100755 --- a/SConscript +++ b/SConscript @@ -74,21 +74,21 @@ if GetOption("toolprefix"): #Check for headers and libraries if not GetOption("macosx"): conf = Configure(env) - - try: - env.ParseConfig('sdl-config --cflags') - env.ParseConfig('sdl-config --libs') - except: - if not conf.CheckLib("SDL"): - print "libSDL not found or not installed" + if(GetOption("sdl-dir")): + if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'): + print "sdl headers not found or not installed" raise SystemExit(1) - - if(GetOption("sdl-dir")): - if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'): - print "sdl headers not found or not installed" + else: + env.Append(CPPPATH=[GetOption("sdl-dir")]) + else: + try: + env.ParseConfig('sdl-config --cflags') + env.ParseConfig('sdl-config --libs') + except: + if not conf.CheckLib("SDL"): + print "libSDL not found or not installed" raise SystemExit(1) - else: - env.Append(CPPPATH=[GetOption("sdl-dir")]) + #Find correct lua include dir if not GetOption("nolua"): -- cgit v0.9.2-21-gd62e From 3a640fee3f20cbc82e2557271039d65c852a4817 Mon Sep 17 00:00:00 2001 From: mniip Date: Fri, 17 May 2013 18:32:41 +0400 Subject: some more compiling fixes diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index f61a55e..81c3093 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -667,6 +667,7 @@ void BlueScreen(char * detailMessage){ } } +#ifndef WIN void SigHandler(int signal) { switch(signal){ @@ -684,6 +685,7 @@ void SigHandler(int signal) break; } } +#endif int main(int argc, char * argv[]) { @@ -781,12 +783,13 @@ int main(int argc, char * argv[]) engine->SetFastQuit(Client::Ref().GetPrefBool("FastQuit", true)); #ifndef DEBUG +#ifndef WIN //Get ready to catch any dodgy errors signal(SIGSEGV, SigHandler); signal(SIGFPE, SigHandler); signal(SIGILL, SigHandler); signal(SIGABRT, SigHandler); - +#endif #endif GameController * gameController = NULL; diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 12414c7..883435e 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -1212,7 +1212,7 @@ void GameView::BeginStampSelection() { selectMode = SelectStamp; selectPoint1 = ui::Point(-1, -1); - buttonTip = "\x0F\xEF\xEF\x10\Click-and-drag to specify an area to create a stamp (right click = cancel)"; + buttonTip = "\x0F\xEF\xEF\020Click-and-drag to specify an area to create a stamp (right click = cancel)"; buttonTipShow = 120; } @@ -1392,7 +1392,7 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool { selectMode = SelectCopy; selectPoint1 = ui::Point(-1, -1); - buttonTip = "\x0F\xEF\xEF\x10\Click-and-drag to specify an area to copy (right click = cancel)"; + buttonTip = "\x0F\xEF\xEF\020Click-and-drag to specify an area to copy (right click = cancel)"; buttonTipShow = 120; } break; @@ -1401,7 +1401,7 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool { selectMode = SelectCut; selectPoint1 = ui::Point(-1, -1); - buttonTip = "\x0F\xEF\xEF\x10\Click-and-drag to specify an area to copy then cut (right click = cancel)"; + buttonTip = "\x0F\xEF\xEF\020Click-and-drag to specify an area to copy then cut (right click = cancel)"; buttonTipShow = 120; } break; -- cgit v0.9.2-21-gd62e From 3979395e651a5b45fa1b96a19646b72e4a20e2f8 Mon Sep 17 00:00:00 2001 From: mniip Date: Sun, 19 May 2013 10:02:42 +0400 Subject: reenable sighandlers for winderp diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index 81c3093..94559b2 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -16,8 +16,8 @@ #include "graphics/Graphics.h" #if defined(LIN) #include "icon.h" -#include #endif +#include #ifndef WIN #include @@ -667,7 +667,6 @@ void BlueScreen(char * detailMessage){ } } -#ifndef WIN void SigHandler(int signal) { switch(signal){ @@ -685,7 +684,6 @@ void SigHandler(int signal) break; } } -#endif int main(int argc, char * argv[]) { @@ -783,14 +781,12 @@ int main(int argc, char * argv[]) engine->SetFastQuit(Client::Ref().GetPrefBool("FastQuit", true)); #ifndef DEBUG -#ifndef WIN //Get ready to catch any dodgy errors signal(SIGSEGV, SigHandler); signal(SIGFPE, SigHandler); signal(SIGILL, SigHandler); signal(SIGABRT, SigHandler); #endif -#endif GameController * gameController = NULL; #ifndef DEBUG -- cgit v0.9.2-21-gd62e