MGL/MRA: add same_dir attribute for setname.

This commit is contained in:
Sorgelig
2024-03-26 01:11:12 +08:00
parent e61b111858
commit 77b41d0c6a
9 changed files with 47 additions and 32 deletions

View File

@@ -413,7 +413,7 @@ void SelectFile(const char* path, const char* pFileExt, int Options, unsigned ch
if (Options & SCANO_SAVES)
{
snprintf(tmp, sizeof(tmp), "%s/%s", SAVE_DIR, CoreName);
snprintf(tmp, sizeof(tmp), "%s/%s", SAVE_DIR, CoreName2);
home = tmp;
}
@@ -5839,7 +5839,7 @@ void HandleUI(void)
OsdWrite(m++, "", 0, 0);
strcpy(s, " ROM : ");
{
char *path = user_io_get_core_path();
char *path = HomeDir();
int len = strlen(path);
char *name = minimig_config.kickstart;
if (!strncasecmp(name, path, len)) name += len + 1;
@@ -6039,7 +6039,7 @@ void HandleUI(void)
if (minimig_config.hardfile[i].filename[0])
{
strcpy(s, " ");
char *path = user_io_get_core_path();
char *path = HomeDir();
int len = strlen(path);
char *name = minimig_config.hardfile[i].filename;
if (!strncasecmp(name, path, len)) name += len + 1;