diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-08 01:16:38 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-08 01:16:38 +0000 |
| commit | 4d39defcb59600513ff65a688c54f3d6b13ca63a (patch) | |
| tree | c1b89b128f8c7f53a277a8cac28979d02357d083 /libpcsxcore/psxcommon.c | |
| parent | aaaf3199b1afd1e5f88f23ce40305a5df5455599 (diff) | |
more cleanups.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@47580 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/psxcommon.c')
| -rw-r--r-- | libpcsxcore/psxcommon.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/libpcsxcore/psxcommon.c b/libpcsxcore/psxcommon.c index a97f3dc2..28953a19 100644 --- a/libpcsxcore/psxcommon.c +++ b/libpcsxcore/psxcommon.c @@ -18,5 +18,51 @@ ***************************************************************************/ #include "psxcommon.h" +#include "r3000a.h" + +#include "cheat.h" PcsxConfig Config; + +int Log = 0; +FILE *emuLog = NULL; + +int EmuInit() { + return psxInit(); +} + +void EmuReset() { + FreeCheatSearchResults(); + FreeCheatSearchMem(); + + psxReset(); +} + +void EmuShutdown() { + ClearAllCheats(); + FreeCheatSearchResults(); + FreeCheatSearchMem(); + + psxShutdown(); +} + +void EmuUpdate() { + SysUpdate(); + ApplyCheats(); +} + +void __Log(char *fmt, ...) { + va_list list; +#ifdef LOG_STDOUT + char tmp[1024]; +#endif + + va_start(list, fmt); +#ifndef LOG_STDOUT + vfprintf(emuLog, fmt, list); +#else + vsprintf(tmp, fmt, list); + SysPrintf(tmp); +#endif + va_end(list); +} |
