From a2b2b4fd5f404d812c28b95bdaf5909d7bb97170 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Sat, 15 Aug 2015 05:56:17 +0200 Subject: [PATCH] linux-dist: Fixed variable reference in Pandora's clean_exit --- core/linux-dist/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/linux-dist/main.cpp b/core/linux-dist/main.cpp index 6018735cf..2680884eb 100755 --- a/core/linux-dist/main.cpp +++ b/core/linux-dist/main.cpp @@ -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); } }