mirror of
https://github.com/libretro/NP2kai.git
synced 2024-10-07 06:43:29 +00:00
commit
bdd5a824ba
@ -190,7 +190,7 @@ short file_rename(const char *existpath, const char *newpath) {
|
||||
short file_dircreate(const char *path) {
|
||||
|
||||
#if !(defined(__LIBRETRO__) && defined(VITA))
|
||||
#if defined(_WIN32)
|
||||
#if (defined(__LIBRETRO__) && defined(_WIN32)) || (defined(WIN32) && (!defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)))
|
||||
return((short)mkdir(path));
|
||||
#else
|
||||
return((short)mkdir(path, 0777));
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
#include "compiler.h"//required to prevent missing type errors
|
||||
#include "beep.h"
|
||||
#include "cpucore.h"
|
||||
#include "pccore.h"
|
||||
#include "iocore.h"
|
||||
#include "keystat.h"
|
||||
@ -779,9 +780,20 @@ void updateInput(){
|
||||
lastx=mposx;lasty=mposy;
|
||||
}
|
||||
|
||||
void *retro_get_memory_data(unsigned type)
|
||||
{
|
||||
if ( type == RETRO_MEMORY_SYSTEM_RAM )
|
||||
return CPU_EXTMEM;
|
||||
return NULL;
|
||||
}
|
||||
size_t retro_get_memory_size(unsigned type)
|
||||
{
|
||||
if ( type == RETRO_MEMORY_SYSTEM_RAM )
|
||||
return CPU_EXTMEMSIZE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
//dummy functions
|
||||
void *retro_get_memory_data(unsigned type){return NULL;}
|
||||
size_t retro_get_memory_size(unsigned type){return 0;}
|
||||
void retro_set_audio_sample(retro_audio_sample_t cb){}
|
||||
bool retro_load_game_special(unsigned game_type, const struct retro_game_info *info, size_t num_info){return false;}
|
||||
void retro_unload_game (void){}
|
||||
|
Loading…
Reference in New Issue
Block a user