Remove: PSP support

This commit is contained in:
Patric Stout
2018-04-29 14:12:23 +02:00
parent 8d8b9a026a
commit 85adde7485
13 changed files with 18 additions and 174 deletions

View File

@@ -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);