libretro: don't call dfinput_activate too early
authornotaz <notasas@gmail.com>
Sun, 26 May 2013 21:23:19 +0000 (00:23 +0300)
committernotaz <notasas@gmail.com>
Sun, 26 May 2013 21:23:19 +0000 (00:23 +0300)
frontend/libretro.c

index 1e9929d..644db92 100644 (file)
@@ -652,6 +652,7 @@ bool retro_load_game(const struct retro_game_info *info)
        }
 
        plugin_call_rearmed_cbs();
+       dfinput_activate();
 
        Config.PsxAuto = 1;
        if (CheckCdrom() == -1) {
@@ -791,9 +792,9 @@ static void update_variables(bool in_flight)
                        GPU_close();
                        GPU_open(&gpuDisp, "PCSX", NULL);
                }
-       }
 
-       dfinput_activate();
+               dfinput_activate();
+       }
 }
 
 void retro_run(void)