mirror of
https://github.com/libretro/blueMSX-libretro.git
synced 2024-11-23 08:49:44 +00:00
Potential buildfixes for PS3
This commit is contained in:
parent
f79722be67
commit
4be0a245fb
@ -38,6 +38,25 @@
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
#if defined(__CELLOS_LV2__)
|
||||
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
|
||||
|
||||
#ifdef __MINGW32__
|
||||
|
||||
int archCreateDirectory(const char* pathname)
|
||||
@ -136,27 +155,8 @@ int archFileDelete(const char* fileName)
|
||||
{
|
||||
return remove(fileName) == 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(__CELLOS_LV2__)
|
||||
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
|
||||
|
||||
/* File dialogs: */
|
||||
char* archFilenameGetOpenRom(Properties* properties, int cartSlot, RomType* romType) { return NULL; }
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <stdint.h>
|
||||
#include "ArchTimer.h"
|
||||
|
||||
#if defined(_WIN32) && defined(_XBOX)
|
||||
@ -25,7 +26,7 @@ UInt32 archGetSystemUpTime(UInt32 frequency)
|
||||
|
||||
UInt32 archGetSystemUpTime(UInt32 frequency)
|
||||
{
|
||||
u64 rtc_tick = _mftb();
|
||||
uint64_t rtc_tick = _mftb();
|
||||
return (rtc_tick / frequency);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user