mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
partially revived platform support for PSP (unfinished), part 3
changes to libpicofe, fixed path handling
This commit is contained in:
parent
df6d9f93fe
commit
80bc22540a
6 changed files with 21 additions and 9 deletions
|
@ -110,17 +110,28 @@ void plat_early_init(void)
|
|||
/* base directory for configuration and save files */
|
||||
int plat_get_root_dir(char *dst, int len)
|
||||
{
|
||||
*dst = 0;
|
||||
if (len > 4)
|
||||
strcpy(dst, "ms0:/");
|
||||
if (len > 0) *dst = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* base directory for emulator resources */
|
||||
int plat_get_skin_dir(char *dst, int len)
|
||||
{
|
||||
if (len > 0) *dst = 0;
|
||||
return 0;
|
||||
if (len > 4)
|
||||
strcpy(dst, "skin/");
|
||||
else if (len > 0)
|
||||
*dst = 0;
|
||||
return strlen(dst);
|
||||
}
|
||||
|
||||
/* top directory for rom images */
|
||||
int plat_get_data_dir(char *dst, int len)
|
||||
{
|
||||
if (len > 4)
|
||||
strcpy(dst, "ms0:/");
|
||||
else if (len > 0)
|
||||
*dst = 0;
|
||||
return strlen(dst);
|
||||
}
|
||||
|
||||
/* check if path is a directory */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue