mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-13 13:28:49 +00:00
Use positive HAVE_SCREENSHOTS rather than a negative ifdef.
This commit is contained in:
parent
d73ec9b645
commit
c79e536b17
2
Makefile
2
Makefile
@ -7,7 +7,7 @@ JOYCONFIG_OBJ = tools/ssnes-joyconfig.o conf/config_file.o compat/compat.o
|
||||
HEADERS = $(wildcard */*.h) $(wildcard *.h)
|
||||
|
||||
LIBS = -lm
|
||||
DEFINES = -DHAVE_CONFIG_H
|
||||
DEFINES = -DHAVE_CONFIG_H -DHAVE_SCREENSHOTS -DHAVE_BSV_MOVIE
|
||||
|
||||
ifeq ($(REENTRANT_TEST), 1)
|
||||
DEFINES += -Dmain=ssnes_main
|
||||
|
@ -30,7 +30,7 @@ endif
|
||||
libsnes ?= -lsnes
|
||||
|
||||
LIBS = -lm
|
||||
DEFINES = -I. -DHAVE_CONFIGFILE -DPACKAGE_VERSION=\"0.9.5\"
|
||||
DEFINES = -I. -DHAVE_CONFIGFILE -DHAVE_SCREENSHOTS -DHAVE_BSV_MOVIE -DPACKAGE_VERSION=\"0.9.5\"
|
||||
LDFLAGS = -L. -static-libgcc
|
||||
LDCXXFLAGS = -s
|
||||
|
||||
|
6
ssnes.c
6
ssnes.c
@ -97,7 +97,7 @@ static inline unsigned lines_to_pitch(unsigned height)
|
||||
return g_extern.system.pitch;
|
||||
}
|
||||
|
||||
#ifndef HAVE_SCREENSHOTS_BUILTIN
|
||||
#ifdef HAVE_SCREENSHOTS
|
||||
static void take_screenshot(void)
|
||||
{
|
||||
if (!(*g_settings.screenshot_directory))
|
||||
@ -2045,7 +2045,7 @@ static void check_cheats(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SCREENSHOTS_BUILTIN
|
||||
#ifdef HAVE_SCREENSHOTS
|
||||
static void check_screenshot(void)
|
||||
{
|
||||
static bool old_pressed = false;
|
||||
@ -2107,7 +2107,7 @@ static void check_netplay_flip(void)
|
||||
|
||||
static void do_state_checks(void)
|
||||
{
|
||||
#ifndef HAVE_SCREENSHOTS_BUILTIN
|
||||
#ifdef HAVE_SCREENSHOTS
|
||||
check_screenshot();
|
||||
#endif
|
||||
check_mute();
|
||||
|
Loading…
Reference in New Issue
Block a user