2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CBASICS_HPP__
|
|
|
|
#define __URDE_CBASICS_HPP__
|
2015-08-17 05:26:58 +00:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdlib.h>
|
2016-10-09 21:41:23 +00:00
|
|
|
#include <chrono>
|
2015-08-17 05:26:58 +00:00
|
|
|
|
2015-08-19 05:48:57 +00:00
|
|
|
#include "RetroTypes.hpp"
|
2015-08-17 20:33:58 +00:00
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2015-08-17 22:05:00 +00:00
|
|
|
{
|
|
|
|
|
2016-10-09 21:41:23 +00:00
|
|
|
using OSTime = s64;
|
|
|
|
|
2015-08-17 05:26:58 +00:00
|
|
|
class CBasics
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void Init();
|
|
|
|
static const char* Stringize(const char* fmt, ...);
|
2016-10-09 21:41:23 +00:00
|
|
|
|
|
|
|
static const u64 SECONDS_TO_2000;
|
|
|
|
static const u64 TICKS_PER_SECOND;
|
|
|
|
|
|
|
|
static OSTime ToWiiTime(std::chrono::system_clock::time_point time);
|
|
|
|
static std::chrono::system_clock::time_point FromWiiTime(OSTime wiiTime);
|
2015-08-17 05:26:58 +00:00
|
|
|
};
|
|
|
|
|
2015-08-17 22:05:00 +00:00
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CBASICS_HPP__
|