neogeo: support per-folder romsets.xml for children subfolders.

This commit is contained in:
sorgelig
2019-09-09 00:58:55 +08:00
parent 30daad09b4
commit 84699a650c
3 changed files with 15 additions and 7 deletions

View File

@@ -937,8 +937,6 @@ int ScanDirectory(char* path, int mode, const char *extension, int options, cons
if (mode == SCANF_INIT)
{
file_name[0] = 0;
if (options & SCANO_NEOGEO) neogeo_scan_xml();
if ((options & SCANO_NOENTER) || !isPathDirectory(path))
{
char *p = strrchr(path, '/');
@@ -960,6 +958,8 @@ int ScanDirectory(char* path, int mode, const char *extension, int options, cons
file_name[0] = 0;
}
if (options & SCANO_NEOGEO) neogeo_scan_xml(path);
sprintf(full_path, "%s/%s", getRootDir(), path);
int path_len = strlen(full_path);