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
c0f6fb0a
Commit
c0f6fb0a
authored
Jan 08, 2018
by
frangarcj
Browse files
[VITA] Add missing chdir and getcwd stubs
parent
006d389a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile.common
View file @
c0f6fb0a
...
...
@@ -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
\
...
...
Missing.c
0 → 100644
View file @
c0f6fb0a
#if defined( VITA ) || defined( __CELLOS_LV2__ )
#include <stddef.h>
char
*
getcwd
(
char
*
buf
,
size_t
size
)
{
if
(
buf
!=
NULL
&&
size
>=
2
)
{
buf
[
0
]
=
'.'
;
buf
[
1
]
=
0
;
return
buf
;
}
return
NULL
;
}
int
chdir
(
const
char
*
path
)
{
return
0
;
}
#endif
Missing.h
0 → 100644
View file @
c0f6fb0a
#if defined( VITA ) || defined( __CELLOS_LV2__ )
#include <stddef.h>
char
*
getcwd
(
char
*
buf
,
size_t
size
);
int
chdir
(
const
char
*
path
);
#endif
libretro.c
View file @
c0f6fb0a
...
...
@@ -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