mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Merge pull request #3294 from frangarcj/master
Several VITA fixes for Henkaku
This commit is contained in:
commit
6e05ca92cf
@ -208,9 +208,9 @@ else ifeq ($(platform), vita)
|
|||||||
EXT_TARGET := $(TARGET_NAME)_$(platform).velf
|
EXT_TARGET := $(TARGET_NAME)_$(platform).velf
|
||||||
EXT_INTER_TARGET := $(TARGET_NAME)_$(platform).elf
|
EXT_INTER_TARGET := $(TARGET_NAME)_$(platform).elf
|
||||||
MACHDEP := -DVITA
|
MACHDEP := -DVITA
|
||||||
PLATCFLAGS := -O3 -mfloat-abi=hard -ffast-math -fsingle-precision-constant
|
PLATCFLAGS := -O3 -mfloat-abi=hard -ffast-math -fsingle-precision-constant
|
||||||
LIBS += -lSceKernel_stub -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub\
|
LIBS += -lSceKernel_stub -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub\
|
||||||
-lSceSysmodule_stub -lSceCtrl_stub -lSceAudio_stub -lUVLoader_stub \
|
-lSceSysmodule_stub -lSceCtrl_stub -lSceAudio_stub \
|
||||||
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lfreetype -lz -lm -lc -lpng
|
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lfreetype -lz -lm -lc -lpng
|
||||||
|
|
||||||
PLATOBJS += libretro-common/conversion/s16_to_float_neon.o \
|
PLATOBJS += libretro-common/conversion/s16_to_float_neon.o \
|
||||||
@ -376,7 +376,8 @@ all: $(EXT_TARGET)
|
|||||||
|
|
||||||
%.velf: %.elf
|
%.velf: %.elf
|
||||||
arm-vita-eabi-strip -g $<
|
arm-vita-eabi-strip -g $<
|
||||||
vita-elf-create $< $@ $(VITASDK)/share/db.json $(VITASDK)/share/extra.json
|
vita-elf-create $< $@
|
||||||
|
make_fself $@ eboot.bin
|
||||||
|
|
||||||
%.elf32: %.elf
|
%.elf32: %.elf
|
||||||
ifeq ($(platform), xenon360)
|
ifeq ($(platform), xenon360)
|
||||||
|
@ -93,8 +93,8 @@ static int audioMainLoop(SceSize args, void* argp)
|
|||||||
sceAudioOutReleasePort(port);
|
sceAudioOutReleasePort(port);
|
||||||
#else
|
#else
|
||||||
sceAudioSRCChRelease();
|
sceAudioSRCChRelease();
|
||||||
#endif
|
|
||||||
sceKernelExitThread(0);
|
sceKernelExitThread(0);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -219,7 +219,6 @@ static bool psp_audio_stop(void *data)
|
|||||||
#else
|
#else
|
||||||
sceKernelWaitThreadEnd(psp->thread, &timeout);
|
sceKernelWaitThreadEnd(psp->thread, &timeout);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#ifdef VITA
|
#ifdef VITA
|
||||||
#include <psp2/moduleinfo.h>
|
#include <psp2/moduleinfo.h>
|
||||||
#include <psp2/power.h>
|
#include <psp2/power.h>
|
||||||
|
#include <psp2/sysmodule.h>
|
||||||
int scePowerSetArmClockFrequency(int freq);
|
int scePowerSetArmClockFrequency(int freq);
|
||||||
#else
|
#else
|
||||||
#include <pspkernel.h>
|
#include <pspkernel.h>
|
||||||
@ -78,12 +78,14 @@ static void frontend_psp_get_environment_settings(int *argc, char *argv[],
|
|||||||
#elif defined(HAVE_FILE_LOGGER)
|
#elif defined(HAVE_FILE_LOGGER)
|
||||||
#ifndef VITA
|
#ifndef VITA
|
||||||
retro_main_log_file_init("ms0:/retroarch-log.txt");
|
retro_main_log_file_init("ms0:/retroarch-log.txt");
|
||||||
|
#else
|
||||||
|
retro_main_log_file_init("ux0:/temp/retroarch-log.txt");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef VITA
|
#ifdef VITA
|
||||||
strlcpy(eboot_path, "cache0:/retroarch/", sizeof(eboot_path));
|
strlcpy(eboot_path, "ux0:/data/retroarch/", sizeof(eboot_path));
|
||||||
strlcpy(g_defaults.dir.port, eboot_path, sizeof(g_defaults.dir.port));
|
strlcpy(g_defaults.dir.port, eboot_path, sizeof(g_defaults.dir.port));
|
||||||
#else
|
#else
|
||||||
strlcpy(eboot_path, argv[0], sizeof(eboot_path));
|
strlcpy(eboot_path, argv[0], sizeof(eboot_path));
|
||||||
@ -91,6 +93,8 @@ static void frontend_psp_get_environment_settings(int *argc, char *argv[],
|
|||||||
#endif
|
#endif
|
||||||
RARCH_LOG("port dir: [%s]\n", g_defaults.dir.port);
|
RARCH_LOG("port dir: [%s]\n", g_defaults.dir.port);
|
||||||
|
|
||||||
|
strlcpy(g_defaults.dir.content_history,
|
||||||
|
g_defaults.dir.port, sizeof(g_defaults.dir.content_history));
|
||||||
fill_pathname_join(g_defaults.dir.core_assets, g_defaults.dir.port,
|
fill_pathname_join(g_defaults.dir.core_assets, g_defaults.dir.port,
|
||||||
"downloads", sizeof(g_defaults.dir.core_assets));
|
"downloads", sizeof(g_defaults.dir.core_assets));
|
||||||
fill_pathname_join(g_defaults.dir.assets, g_defaults.dir.port,
|
fill_pathname_join(g_defaults.dir.assets, g_defaults.dir.port,
|
||||||
@ -113,6 +117,10 @@ static void frontend_psp_get_environment_settings(int *argc, char *argv[],
|
|||||||
"cheats", sizeof(g_defaults.dir.cheats));
|
"cheats", sizeof(g_defaults.dir.cheats));
|
||||||
fill_pathname_join(g_defaults.dir.remap, g_defaults.dir.port,
|
fill_pathname_join(g_defaults.dir.remap, g_defaults.dir.port,
|
||||||
"remaps", sizeof(g_defaults.dir.remap));
|
"remaps", sizeof(g_defaults.dir.remap));
|
||||||
|
fill_pathname_join(g_defaults.dir.cursor, g_defaults.dir.core,
|
||||||
|
"database/cursors", sizeof(g_defaults.dir.cursor));
|
||||||
|
fill_pathname_join(g_defaults.dir.database, g_defaults.dir.core,
|
||||||
|
"database/rdb", sizeof(g_defaults.dir.database));
|
||||||
|
|
||||||
#ifdef VITA
|
#ifdef VITA
|
||||||
fill_pathname_join(g_defaults.dir.overlay, g_defaults.dir.core,
|
fill_pathname_join(g_defaults.dir.overlay, g_defaults.dir.core,
|
||||||
@ -227,6 +235,7 @@ static void frontend_psp_init(void *data)
|
|||||||
scePowerSetClockFrequency(333,333,166);
|
scePowerSetClockFrequency(333,333,166);
|
||||||
#else
|
#else
|
||||||
scePowerSetArmClockFrequency(444);
|
scePowerSetArmClockFrequency(444);
|
||||||
|
sceSysmoduleLoadModule(SCE_SYSMODULE_NET);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -371,7 +380,7 @@ static int frontend_psp_parse_drive_list(void *data)
|
|||||||
|
|
||||||
#ifdef VITA
|
#ifdef VITA
|
||||||
menu_entries_append_enum(list,
|
menu_entries_append_enum(list,
|
||||||
"cache0:/", "", MSG_UNKNOWN, FILE_TYPE_DIRECTORY, 0, 0);
|
"ux0:/", "", MSG_UNKNOWN, FILE_TYPE_DIRECTORY, 0, 0);
|
||||||
#else
|
#else
|
||||||
menu_entries_append_enum(list,
|
menu_entries_append_enum(list,
|
||||||
"ms0:/", "", MSG_UNKNOWN, FILE_TYPE_DIRECTORY, 0, 0);
|
"ms0:/", "", MSG_UNKNOWN, FILE_TYPE_DIRECTORY, 0, 0);
|
||||||
|
@ -284,6 +284,11 @@ char *filestream_gets(RFILE *stream, char *s, size_t len)
|
|||||||
return NULL;
|
return NULL;
|
||||||
#if defined(HAVE_BUFFERED_IO)
|
#if defined(HAVE_BUFFERED_IO)
|
||||||
return fgets(s, len, stream->fp);
|
return fgets(s, len, stream->fp);
|
||||||
|
#elif defined(VITA) || defined(PSP)
|
||||||
|
if(filestream_read(stream,s,len)==len)
|
||||||
|
return s;
|
||||||
|
else
|
||||||
|
return NULL;
|
||||||
#else
|
#else
|
||||||
return gets(s);
|
return gets(s);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user