linux-dist: Fixed variable reference in Pandora's clean_exit

This commit is contained in:
Jan Holthuis 2015-08-15 05:56:17 +02:00
parent 1843fc3fe4
commit a2b2b4fd5f
1 changed files with 2 additions and 4 deletions

View File

@ -152,8 +152,6 @@ void SetupInput()
#endif
}
extern bool KillTex;
void UpdateInputState(u32 port)
{
#if defined(TARGET_EMSCRIPTEN)
@ -248,9 +246,9 @@ void dc_run();
if (joystick_fd >= 0) { close(joystick_fd); }
for (int port = 0; port < 4 ; port++)
{
if (evdev_fd[port] >= 0)
if (controllers[port]->fd >= 0)
{
close(evdev_fd[port]);
close(controllers[port]->fd);
}
}