Add Discord RPC back with new features, add beta splitscreen support, PR's from MCLCE used in this https://github.com/MCLCE/MinecraftConsoles/pull/1044 https://github.com/MCLCE/MinecraftConsoles/pull/1136 https://github.com/MCLCE/MinecraftConsoles/pull/1245
19 lines
295 B
C++
19 lines
295 B
C++
#include "stdafx.h"
|
|
#include "Calendar.h"
|
|
#include <time.h>
|
|
|
|
unsigned int Calendar::GetDayOfMonth()
|
|
{
|
|
time_t t = time(0);
|
|
struct tm *now = localtime(&t);
|
|
|
|
return now->tm_mday;
|
|
}
|
|
|
|
unsigned int Calendar::GetMonth()
|
|
{
|
|
time_t t = time(0);
|
|
struct tm *now = localtime(&t);
|
|
|
|
return now->tm_mon;
|
|
} |