mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
partially revived platform support for PSP (unfinished) #2
scaling, release generation, fixes still not planning to make this officially supported.
This commit is contained in:
parent
cdc6aac4c0
commit
6c5784f07f
13 changed files with 129 additions and 93 deletions
|
@ -110,7 +110,9 @@ void plat_early_init(void)
|
|||
/* base directory for configuration and save files */
|
||||
int plat_get_root_dir(char *dst, int len)
|
||||
{
|
||||
if (len > 0) *dst = 0;
|
||||
*dst = 0;
|
||||
if (len > 4)
|
||||
strcpy(dst, "ms0:/");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -264,8 +266,8 @@ int scandir(const char *dir, struct dirent ***namelist_out,
|
|||
{
|
||||
ent = malloc(sizeof(*ent));
|
||||
if (ent == NULL) { lprintf("%s:%i: OOM\n", __FILE__, __LINE__); goto fail; }
|
||||
ent->d_stat = sce_ent.d_stat;
|
||||
ent->d_stat.st_attr &= FIO_SO_IFMT; // serves as d_type
|
||||
ent->d_stat = sce_ent.d_stat;
|
||||
ent->d_stat.st_attr &= FIO_SO_IFMT; // serves as d_type
|
||||
strncpy(ent->d_name, sce_ent.d_name, sizeof(ent->d_name));
|
||||
ent->d_name[sizeof(ent->d_name)-1] = 0;
|
||||
if (filter == NULL || filter(ent))
|
||||
|
@ -308,7 +310,8 @@ end:
|
|||
|
||||
int _flush_cache (char *addr, const int size, const int op)
|
||||
{
|
||||
sceKernelDcacheWritebackRange(addr, size);
|
||||
sceKernelIcacheInvalidateRange(addr, size);
|
||||
sceKernelDcacheWritebackAll();
|
||||
//sceKernelDcacheWritebackRange(addr, size);
|
||||
//sceKernelIcacheInvalidateRange(addr, size);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue