Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Fmsx
Commits
3937c551
Unverified
Commit
3937c551
authored
Dec 27, 2017
by
Libretro-Admin
Committed by
GitHub
Dec 27, 2017
Browse files
Merge pull request #33 from frangarcj/master
[VITA][PS3] Got it working
parents
ed4a5ecf
9d4708ff
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
3937c551
...
...
@@ -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)
...
...
Makefile.common
View file @
3937c551
...
...
@@ -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
\
...
...
fMSX/MSX.c
View file @
3937c551
...
...
@@ -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
)
{
...
...
libretro.c
View file @
3937c551
...
...
@@ -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]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment