diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-05-22 07:06:17 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-05-22 07:06:17 +0200 |
| commit | aefe5f8c1c45f4cdeafe08113953a9f03df3c644 (patch) | |
| tree | c7f609ec694a2180237b77c182705a79f81f4725 /Source/System.h | |
| parent | 3a8f91466126c97427d7cf0c86c36581662981be (diff) | |
* 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!
Diffstat (limited to 'Source/System.h')
| -rw-r--r-- | Source/System.h | 9 |
1 files changed, 5 insertions, 4 deletions
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); |
