mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 19:15:14 -04:00
fix #526
This commit is contained in:
parent
47a2ee0e62
commit
76e5bb61d8
@ -69,7 +69,8 @@ int main(void) {
|
|||||||
|
|
||||||
String title = String_FromConst(PROGRAM_APP_NAME);
|
String title = String_FromConst(PROGRAM_APP_NAME);
|
||||||
String rawArgs = Platform_GetCommandLineArgs();
|
String rawArgs = Platform_GetCommandLineArgs();
|
||||||
rawArgs = String_FromReadonly("UnknownShadow200 fff 127.0.0.1 25566");
|
/* NOTE: Make sure to always comment this back out before pushing a commit */
|
||||||
|
//rawArgs = String_FromReadonly("UnknownShadow200 fff 127.0.0.1 25566");
|
||||||
|
|
||||||
String args[5]; UInt32 argsCount = Array_Elems(args);
|
String args[5]; UInt32 argsCount = Array_Elems(args);
|
||||||
String_UNSAFE_Split(&rawArgs, ' ', args, &argsCount);
|
String_UNSAFE_Split(&rawArgs, ' ', args, &argsCount);
|
||||||
|
@ -196,12 +196,7 @@ Int32 String_MakeUInt64(UInt64 num, UInt8* numBuffer) {
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool String_AppendInt64(STRING_TRANSIENT String* str, Int64 num) {
|
bool String_AppendUInt64(STRING_TRANSIENT String* str, UInt64 num) {
|
||||||
if (num < 0) {
|
|
||||||
num = -num;
|
|
||||||
if (!String_Append(str, '-')) return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
UInt8 numBuffer[STRING_INT_CHARS];
|
UInt8 numBuffer[STRING_INT_CHARS];
|
||||||
Int32 i, numLen = String_MakeUInt64(num, numBuffer);
|
Int32 i, numLen = String_MakeUInt64(num, numBuffer);
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ bool String_Append(STRING_TRANSIENT String* str, UInt8 c);
|
|||||||
bool String_AppendBool(STRING_TRANSIENT String* str, bool value);
|
bool String_AppendBool(STRING_TRANSIENT String* str, bool value);
|
||||||
bool String_AppendInt32(STRING_TRANSIENT String* str, Int32 num);
|
bool String_AppendInt32(STRING_TRANSIENT String* str, Int32 num);
|
||||||
bool String_AppendUInt32(STRING_TRANSIENT String* str, UInt32 num);
|
bool String_AppendUInt32(STRING_TRANSIENT String* str, UInt32 num);
|
||||||
bool String_AppendInt64(STRING_TRANSIENT String* str, Int64 num);
|
bool String_AppendUInt64(STRING_TRANSIENT String* str, UInt64 num);
|
||||||
bool String_AppendReal32(STRING_TRANSIENT String* str, Real32 num, Int32 fracDigits); /* TODO: Need to account for , or . for decimal */
|
bool String_AppendReal32(STRING_TRANSIENT String* str, Real32 num, Int32 fracDigits); /* TODO: Need to account for , or . for decimal */
|
||||||
bool String_Hex32(STRING_TRANSIENT String* str, UInt32 value);
|
bool String_Hex32(STRING_TRANSIENT String* str, UInt32 value);
|
||||||
bool String_Hex64(STRING_TRANSIENT String* str, UInt64 value);
|
bool String_Hex64(STRING_TRANSIENT String* str, UInt64 value);
|
||||||
|
@ -417,7 +417,7 @@ void TextureCache_AddLastModified(STRING_PURE String* url, DateTime* lastModifie
|
|||||||
|
|
||||||
UInt8 dataBuffer[String_BufferSize(STRING_SIZE)];
|
UInt8 dataBuffer[String_BufferSize(STRING_SIZE)];
|
||||||
String data = String_InitAndClearArray(dataBuffer);
|
String data = String_InitAndClearArray(dataBuffer);
|
||||||
String_AppendInt64(&data, ticks);
|
String_AppendUInt64(&data, ticks);
|
||||||
TextureCache_AddToTags(url, &data, &cache_lastModified);
|
TextureCache_AddToTags(url, &data, &cache_lastModified);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user