#######################################################################################################################* *--------------------------------------------------------Platform---------------------------------------------------------* *#########################################################################################################################*/
| 1009 | *--------------------------------------------------------Platform---------------------------------------------------------* |
| 1010 | *#########################################################################################################################*/ |
| 1011 | void Platform_EncodeString(cc_winstring* dst, const cc_string* src) { |
| 1012 | cc_unichar* uni; |
| 1013 | char* ansi; |
| 1014 | int i; |
| 1015 | if (src->length > FILENAME_SIZE) Process_Abort("String too long to expand"); |
| 1016 | |
| 1017 | uni = dst->uni; |
| 1018 | for (i = 0; i < src->length; i++) |
| 1019 | { |
| 1020 | *uni++ = Convert_CP437ToUnicode(src->buffer[i]); |
| 1021 | } |
| 1022 | *uni = '\0'; |
| 1023 | |
| 1024 | ansi = dst->ansi; |
| 1025 | for (i = 0; i < src->length; i++) |
| 1026 | { |
| 1027 | *ansi++ = (char)dst->uni[i]; |
| 1028 | } |
| 1029 | *ansi = '\0'; |
| 1030 | } |
| 1031 | |
| 1032 | static void Platform_InitStopwatch(void) { |
| 1033 | LARGE_INTEGER freq; |
no test coverage detected