Remove dfinput plugin from Makefile
authornegativeExponent <negativeExponent@users.noreply.github.com>
Fri, 30 Oct 2020 23:15:03 +0000 (07:15 +0800)
committernegativeExponent <negativeExponent@users.noreply.github.com>
Sat, 31 Oct 2020 09:50:30 +0000 (17:50 +0800)
The dfinput plugin is not used in this codebase, so remove them when
compiling.

Will repurpose dfinput_activate() to do out init later.

Makefile
frontend/libretro.c

index 993b05e..d751fb1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -258,7 +258,9 @@ LDFLAGS += -lm
 endif
 
 # dfinput
+ifneq "$(PLATFORM)" "libretro"
 OBJS += plugins/dfinput/main.o plugins/dfinput/pad.o plugins/dfinput/guncon.o
+endif
 
 # frontend/gui
 OBJS += frontend/cspace.o
index 323932a..6416b67 100644 (file)
@@ -1440,7 +1440,7 @@ bool retro_load_game(const struct retro_game_info *info)
    }
 
    plugin_call_rearmed_cbs();
-   dfinput_activate();
+   /* dfinput_activate(); */
 
    if (CheckCdrom() == -1)
    {
@@ -2198,7 +2198,7 @@ static void update_variables(bool in_flight)
          GPU_open(&gpuDisp, "PCSX", NULL);
       }
 
-      dfinput_activate();
+      /* dfinput_activate(); */
    }
    else
    {