(GX) Buildfix

This commit is contained in:
twinaphex 2016-09-17 15:05:28 +02:00
parent b775ee303c
commit 2f6459fa9c

View File

@ -65,6 +65,7 @@ static enum frontend_fork gx_fork_mode = FRONTEND_FORK_NONE;
#endif
#ifndef IS_SALAMANDER
#include "../../paths.h"
enum
{
@ -414,7 +415,7 @@ static void frontend_gx_process_args(int *argc, char *argv[])
/* A big hack: sometimes Salamander doesn't save the new core
* it loads on first boot, so we make sure
* active core path is set here. */
if (config_active_core_path_is_empty() && *argc >= 1 && strrchr(argv[0], '/'))
if (path_is_core_empty() && *argc >= 1 && strrchr(argv[0], '/'))
{
char path[PATH_MAX_LENGTH] = {0};
strlcpy(path, strrchr(argv[0], '/') + 1, sizeof(path));