mirror of
https://github.com/echojc/osu-ds.git
synced 2025-06-19 09:25:41 -04:00

Removed the arm7 section Changed the makefile to only use the arm9 stuff Epicpkmn: Fix source/Graphics/GraphicsManager.cpp Co-Authored-By: Pk11 <epicpkmn11@outlook.com> Co-Authored-By: Kaisaan <34224128+Kaisaan@users.noreply.github.com>
33 lines
479 B
C++
33 lines
479 B
C++
#include <nds.h>
|
|
|
|
#ifndef __GAMECLOCK_H__
|
|
#define __GAMECLOCK_H__
|
|
|
|
class GameClock
|
|
{
|
|
public:
|
|
s32 Time();
|
|
|
|
void Update(); //calls should be synced with vblank
|
|
void SkipTo(s32 time);
|
|
void Reset();
|
|
|
|
static GameClock& Clock() { return sClock; }
|
|
|
|
protected:
|
|
s32 mTime;
|
|
s32 mFraction;
|
|
|
|
static const s32 kTimeInterval = 16;
|
|
static const s32 kFractionInterval = 715112635;
|
|
|
|
static GameClock sClock;
|
|
|
|
private:
|
|
GameClock();
|
|
~GameClock() {}
|
|
};
|
|
|
|
#endif
|
|
|