Make sure the arcade path is an absolute one. (fixes MiSTer-devel/Main-MiSTer#280) (#317)

Co-authored-by: Zakk <zakk@rsdio.com>
This commit is contained in:
zakk4223
2021-01-01 01:14:59 -05:00
committed by GitHub
parent 61bae31483
commit 380755df96

View File

@@ -1072,7 +1072,8 @@ int arcade_load(const char *xml)
MenuHide();
static char path[kBigTextSize];
strcpy(path, xml);
if(xml[0] == '/') strcpy(path, xml);
else sprintf(path, "%s/%s", getRootDir(), xml);
set_arcade_root(path);
printf("arcade_load [%s]\n", path);