Commit 9d4708ff authored by frangarcj's avatar frangarcj
Browse files

[VITA][PS3] Got it working

parent ed4a5ecf
......@@ -154,6 +154,7 @@ else ifeq ($(platform), vita)
AR = arm-vita-eabi-ar$(EXE_EXT)
PLATFORM_DEFINES := -DVITA
STATIC_LINKING = 1
CFLAGS += -fno-short-enums -fno-optimize-sibling-calls
# CTR(3DS)
else ifeq ($(platform), ctr)
......
......@@ -14,6 +14,7 @@ endif
# EMULib sound, console, and other utility functions
SOURCES_C := \
$(CORE_DIR)/libretro.c \
$(CORE_DIR)/Missing.c \
$(EMULIB)/EMULib.c \
$(EMULIB)/Sound.c \
$(FMSXDIR)/MSX.c \
......
......@@ -2557,9 +2557,25 @@ byte *LoadROM(const char *Name,int Size,byte *Buf)
/* Can't give address without size! */
if(Buf&&!Size) return(0);
#if defined( VITA ) || defined( __CELLOS_LV2__ )
char path[512];
if(!(F=fopen(Name,"rb"))){
strcpy(path,ProgDir);
strcat(path,"/");
strcat(path,Name);
/* Open file */
if(!(F=fopen(path,"rb")))
return(0);
}
#else
/* Open file */
if(!(F=fopen(Name,"rb"))) return(0);
#endif
/* Determine data size, if wasn't given */
if(!Size)
{
......
......@@ -32,6 +32,7 @@ static uint16_t XPal0;
#define XBuf image_buffer
#define WBuf image_buffer
#include "CommonMux.h"
#include "Missing.h"
uint8_t XKeyState[20];
#define XKBD_SET(K) XKeyState[Keys[K][0]]&=~Keys[K][1]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment