Potential buildfixes for PS3

This commit is contained in:
twinaphex 2018-10-09 16:01:53 +02:00
parent f79722be67
commit 4be0a245fb
2 changed files with 21 additions and 20 deletions

View File

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

View File

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