mirror of
https://github.com/libretro/RetroArch
synced 2025-02-08 15:40:14 +00:00
Style nits.
This commit is contained in:
parent
a292b5252c
commit
70e99c30ab
9
Makefile
9
Makefile
@ -58,11 +58,12 @@ ifeq ($(findstring Haiku,$(OS)),)
|
||||
LIBS = -lm
|
||||
endif
|
||||
|
||||
ifndef GLOBAL_CONFIG_DIR
|
||||
GLOBAL_CONFIG_DIR = /etc
|
||||
endif
|
||||
DEFINES = -DHAVE_CONFIG_H -DHAVE_SCREENSHOTS
|
||||
|
||||
DEFINES = -DHAVE_CONFIG_H -DHAVE_SCREENSHOTS -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"'
|
||||
ifneq ($(GLOBAL_CONFIG_DIR), )
|
||||
GLOBAL_CONFIG_DIR = /etc
|
||||
endif
|
||||
DEFINES += -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"'
|
||||
|
||||
ifeq ($(REENTRANT_TEST), 1)
|
||||
DEFINES += -Dmain=retroarch_main
|
||||
|
@ -6,7 +6,6 @@ cat /dev/null > "$MAKEFILE_DEFINES" > "$CONFIG_DEFINES"
|
||||
#cat /dev/null > "${MAKEFILE_DEFINES:=.MAKEFILE_DEFINES}" > "${CONFIG_DEFINES=.CONFIG_DEFINES}"
|
||||
|
||||
[ "$PREFIX" ] || PREFIX="/usr/local"
|
||||
[ "$CONFIG_DIR" ] || CONFIG_DIR="/etc"
|
||||
|
||||
add_define_header()
|
||||
{ echo "$1=$2" >> "$CONFIG_DEFINES";}
|
||||
|
@ -380,10 +380,10 @@ static config_file_t *open_default_config_file(void)
|
||||
// Try this as a last chance ...
|
||||
if (!conf)
|
||||
{
|
||||
#ifndef GLOBAL_CONFIG_DIR
|
||||
#define GLOBAL_CONFIG_DIR "/etc"
|
||||
#endif
|
||||
fill_pathname_join(conf_path, GLOBAL_CONFIG_DIR, "retroarch.cfg", sizeof(conf_path));
|
||||
#ifndef GLOBAL_CONFIG_DIR
|
||||
#define GLOBAL_CONFIG_DIR "/etc"
|
||||
#endif
|
||||
fill_pathname_join(conf_path, GLOBAL_CONFIG_DIR, "retroarch.cfg", sizeof(conf_path));
|
||||
RARCH_LOG("Looking for config in: \"%s\".\n", conf_path);
|
||||
conf = config_file_new(conf_path);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user