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
7d19e660
Unverified
Commit
7d19e660
authored
Jan 08, 2018
by
frangarcj
Committed by
GitHub
Jan 08, 2018
Browse files
Merge pull request #34 from frangarcj/master
[VITA] Add missing chdir and getcwd stubs
parents
006d389a
c0f6fb0a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile.common
View file @
7d19e660
...
...
@@ -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 @
7d19e660
#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 @
7d19e660
#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 @
7d19e660
...
...
@@ -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