refactor: nuke __int64/__uint64 in Minecraft.World

This commit is contained in:
Tropical
2026-03-21 17:10:36 -05:00
parent 8036565022
commit 357fca24aa
117 changed files with 251 additions and 251 deletions

View File

@@ -63,7 +63,7 @@ void System::arraycopy(arrayWithLength<int> src, unsigned int srcPos,
//
// Returns:
// The current value of the system timer, in nanoseconds.
__int64 System::nanoTime() {
int64_t System::nanoTime() {
#if !defined(__linux__)
return GetTickCount() * 1000000LL;
#else
@@ -83,7 +83,7 @@ __int64 System::nanoTime() {
// Returns:
// the difference, measured in milliseconds, between the current time and
// midnight, January 1, 1970 UTC.
__int64 System::currentTimeMillis() {
int64_t System::currentTimeMillis() {
#ifdef __PS3__
// sys_time_get_current_time() obtains the elapsed time since Epoch
//(1970/01/01 00:00:00 UTC). The value is separated into two parts: sec
@@ -92,7 +92,7 @@ __int64 System::currentTimeMillis() {
sys_time_sec_t sec;
sys_time_nsec_t nsec;
sys_time_get_current_time(&sec, &nsec);
__int64 msec = (sec * 1000) + (nsec / (1000 * 1000));
int64_t msec = (sec * 1000) + (nsec / (1000 * 1000));
return msec;
#elif defined __ORBIS__
@@ -105,7 +105,7 @@ __int64 System::currentTimeMillis() {
return sceKernelGetProcessTimeWide() / 1000;
/* SceDateTime Time;
sceRtcGetCurrentClockLocalTime(&Time);
__int64 systTime = (((((((Time.day * 24) + Time.hour) * 60) +
int64_t systTime = (((((((Time.day * 24) + Time.hour) * 60) +
Time.minute) * 60) + Time.second) * 1000) + (Time.microsecond / 1000); return
systTime;*/
#elif defined(__linux__)
@@ -134,11 +134,11 @@ __int64 System::currentTimeMillis() {
// 4J Stu - Added this so that we can use real-world timestamps in PSVita saves.
// Particularly required for the save transfers to be smooth
__int64 System::currentRealTimeMillis() {
int64_t System::currentRealTimeMillis() {
#ifdef __PSVITA__
SceDateTime Time;
sceRtcGetCurrentClockLocalTime(&Time);
__int64 systTime =
int64_t systTime =
(((((((Time.day * 24) + Time.hour) * 60) + Time.minute) * 60) +
Time.second) *
1000) +
@@ -200,8 +200,8 @@ void System::ReverseINT(int* piVal) {
pchVal1[3] = pchVal2[0];
}
void System::ReverseULONGLONG(__int64* pullVal) {
__int64 ullValue = *pullVal;
void System::ReverseULONGLONG(int64_t* pullVal) {
int64_t ullValue = *pullVal;
unsigned char* pchVal1 = (unsigned char*)pullVal;
unsigned char* pchVal2 = (unsigned char*)&ullValue;