From aefe5f8c1c45f4cdeafe08113953a9f03df3c644 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Mon, 22 May 2017 07:06:17 +0200 Subject: * Split screen from now on is only calling GsDrawList() once. The reason for this is that now DMA is used instead of GPIO for drawenv/dispenv management. * (PSXSDK internals): incorrect bit shifting was being made on 0xE3 and 0xE4 GPU instructions (drawenv management). * (Bugfix): Timers were not being reset properly because pad1_cheat_timer and pad2_cheat_timer were being accidentally reset to NULL on calling memset() for cheatsArray. * Timers are now updated every 100 ms instead of every second. * Mouse sprite should be now drawn on X_SCREEN_RESOLUTION >> 2 in 2-player mode. TODO: check why this isn't working! --- Source/System.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Source/System.h') diff --git a/Source/System.h b/Source/System.h index b6ed48b..61ce6e2 100644 --- a/Source/System.h +++ b/Source/System.h @@ -89,7 +89,8 @@ bool SystemContains_u16(uint16_t value, uint16_t * buffer, size_t sz); // Creates a timer instance wiht a determined value and associates it to a callback // Once time expires, callback is automatically called right after GfxDrawScene(). -TYPE_TIMER * SystemCreateTimer(uint32_t seconds, bool rf, void (*timer_callback)(void) ); +// Time is expressed so that t = 100 ms e.g.: 2 seconds = 20. +TYPE_TIMER* SystemCreateTimer(uint32_t t, bool rf, void (*timer_callback)(void) ); // Reportedly, sets all timer data to zero. void SystemResetTimers(void); @@ -98,13 +99,13 @@ void SystemResetTimers(void); void SystemUserTimersHandler(void); // Sets timer remaining time to initial value. -void SystemTimerRestart(TYPE_TIMER * timer); +void SystemTimerRestart(TYPE_TIMER* timer); // Flushes a timer pointed to by timer. -void SystemTimerRemove(TYPE_TIMER * timer); +void SystemTimerRemove(TYPE_TIMER* timer); // Compares two arrays of unsigned short type. -bool SystemArrayCompare(unsigned short * arr1, unsigned short * arr2, size_t sz); +bool SystemArrayCompare(unsigned short* arr1, unsigned short* arr2, size_t sz); // Prints stack pointer address using dprintf() void SystemPrintStackPointerAddress(void); -- cgit v1.2.3