Merge pull request #67 from libretro/master

diff to libretro
This commit is contained in:
AZO 2019-03-27 05:53:09 +09:00 committed by GitHub
commit bdd5a824ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View File

@ -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));

View File

@ -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){}