Skip to content

Commit

Permalink
Merge pull request #85 from dankcushions/samples
Browse files Browse the repository at this point in the history
Changed /samples dir to be in the system directory (parity with other MAME cores)
  • Loading branch information
inactive123 authored May 29, 2021
2 parents bb37cc6 + 2537f83 commit 49671d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libretro/libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ bool retro_load_game(const struct retro_game_info *info)


int i;
memcpy(IMAMEBASEPATH, info->path, strlen(info->path) + 1);
memcpy(IMAMEBASEPATH, info->path, strlen(core_sys_directory) + 1);
if (strrchr(IMAMEBASEPATH, slash)) *(strrchr(IMAMEBASEPATH, slash)) = 0;
else { IMAMEBASEPATH[0] = '.'; IMAMEBASEPATH[1] = 0; }
char baseName[1024];
Expand All @@ -702,7 +702,7 @@ bool retro_load_game(const struct retro_game_info *info)
memcpy(baseName, romName, strlen(romName) + 1);
if (strrchr(baseName, '.')) *(strrchr(baseName, '.')) = 0;

strcpy(IMAMESAMPLEPATH, IMAMEBASEPATH);
strcpy(IMAMESAMPLEPATH, core_sys_directory);
strcat(IMAMESAMPLEPATH, "/samples");

/* do we have a driver for this? */
Expand Down

0 comments on commit 49671d5

Please sign in to comment.