summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2018-04-29 14:12:23 +0200
committerPatric Stout <truebrain@openttd.org>2018-04-29 15:32:16 +0200
commit85adde74858161240860ed9e4bf67f9be838de45 (patch)
treec49c092551d1b9070afe61447c412b9f0f107a11 /src/video
parent8d8b9a026a5915c2bf4591b74d79dfa1dcf791d8 (diff)
downloadopenttd-85adde74858161240860ed9e4bf67f9be838de45.tar.xz
Remove: PSP support
Diffstat (limited to 'src/video')
-rw-r--r--src/video/allegro_v.cpp2
-rw-r--r--src/video/dedicated_v.cpp12
2 files changed, 5 insertions, 9 deletions
diff --git a/src/video/allegro_v.cpp b/src/video/allegro_v.cpp
index 01628f99c..50fe0c499 100644
--- a/src/video/allegro_v.cpp
+++ b/src/video/allegro_v.cpp
@@ -458,7 +458,7 @@ void VideoDriver_Allegro::Stop()
if (--_allegro_instance_count == 0) allegro_exit();
}
-#if defined(UNIX) || defined(__OS2__) || defined(PSP) || defined(DOS)
+#if defined(UNIX) || defined(__OS2__) || defined(DOS)
# include <sys/time.h> /* gettimeofday */
static uint32 GetTime()
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp
index 5e2be481c..52e0b6faa 100644
--- a/src/video/dedicated_v.cpp
+++ b/src/video/dedicated_v.cpp
@@ -57,16 +57,12 @@ static void OS2_SwitchToConsoleMode()
}
#endif
-#if defined(UNIX) || defined(PSP)
+#if defined(UNIX)
# include <sys/time.h> /* gettimeofday */
# include <sys/types.h>
# include <unistd.h>
# include <signal.h>
# define STDIN 0 /* file descriptor for standard input */
-# if defined(PSP)
-# include <sys/fd_set.h>
-# include <sys/select.h>
-# endif /* PSP */
/* Signal handlers */
static void DedicatedSignalHandler(int sig)
@@ -196,7 +192,7 @@ void VideoDriver_Dedicated::MakeDirty(int left, int top, int width, int height)
bool VideoDriver_Dedicated::ChangeResolution(int w, int h) { return false; }
bool VideoDriver_Dedicated::ToggleFullscreen(bool fs) { return false; }
-#if defined(UNIX) || defined(__OS2__) || defined(PSP)
+#if defined(UNIX) || defined(__OS2__)
static bool InputWaiting()
{
struct timeval tv;
@@ -242,7 +238,7 @@ static void DedicatedHandleKeyInput()
if (_exit_game) return;
-#if defined(UNIX) || defined(__OS2__) || defined(PSP)
+#if defined(UNIX) || defined(__OS2__)
if (fgets(input_line, lengthof(input_line), stdin) == NULL) return;
#else
/* Handle console input, and signal console thread, it can accept input again */
@@ -269,7 +265,7 @@ void VideoDriver_Dedicated::MainLoop()
uint32 next_tick = cur_ticks + MILLISECONDS_PER_TICK;
/* Signal handlers */
-#if defined(UNIX) || defined(PSP)
+#if defined(UNIX)
signal(SIGTERM, DedicatedSignalHandler);
signal(SIGINT, DedicatedSignalHandler);
signal(SIGQUIT, DedicatedSignalHandler);