Commit graph

98 commits

Author SHA1 Message Date
UnknownShadow200
8397efbb9e Update copyright year 2025-01-02 08:39:57 +11:00
UnknownShadow200
eb0f36ce58 Expose more functionality for plugins 2024-07-31 20:11:51 +10:00
UnknownShadow200
1c3d8fb72e Simplify writing plugins in C++ slightly 2024-07-28 23:33:22 +10:00
UnknownShadow200
c1f4104ddd SoftGPU: Add faster path for 2D triangles 2024-06-07 17:47:38 +10:00
UnknownShadow200
2f58a44e31 PS2: Clearing screen to a colour each frame sorta works 2023-11-22 19:22:26 +11:00
UnknownShadow200
08e93f7562 Show better error message when plugin fails to load with error 126 on Windows, which most often happens because the exe isn't named ClassiCube.exe
Also
1) Add section to plugin development document on how you should load functions/variables dynamically on Windows
2) Add function pointer declarations for a number of exported functions from ClassiCube
2023-09-11 20:13:48 +10:00
UnknownShadow200
2f989fca4f Update copyright year to 2023 2023-07-17 22:56:16 +10:00
UnknownShadow200
e52b670b6e Move UTF8 encoding out of Platform and into String module 2022-12-04 16:27:46 +11:00
UnknownShadow200
f1e1a87d3d Use better method of disabling freetype engine than just checking if __EMSCRIPTEN__ is defined 2022-07-14 22:03:53 +10:00
UnknownShadow200
ec2d69a6d9 Update some headers to 2022 and improve their comments 2022-06-14 21:13:23 +10:00
UnknownShadow200
7477751096 Webclient: Add list of common sytem fonts 2021-12-03 22:48:14 +11:00
UnknownShadow200
75fb77f702 Separate out music files retrieving 2021-08-08 11:07:53 +10:00
UnknownShadow200
a485f4c6af Webclient: Start using placeholder text for mobile on-screen keyboard in a few places
Also bump copyright to 2021
2021-01-08 23:39:33 +11:00
UnknownShadow200
15122e8f92 Always use unicode functions on Windows instead of relying on _UNICODE macro
Also make opening/creating files work on Windows 98
2021-01-06 14:29:07 +11:00
UnknownShadow200
b2f23fc28c Linux: Implement session caching and switch to using /var/lib/dbus/machine-id for a device specific encryption key
Unfortunately, this means previously stored passwords and resume mpasses aren't valid anymore and so will be lost. Sorry about that.
2021-01-01 09:55:44 +11:00
UnknownShadow200
3c3664b9cf Windows: Remember session cookie, bypasses MFA when logged in from same device 2020-12-30 20:04:56 +11:00
UnknownShadow200
8f888c0589 Make StringsBuffer no longer hardcoded to max 512 character entries 2020-12-30 18:56:44 +11:00
UnknownShadow200
3f0a2686a9 Use String_AppendUtf8 instead of Platform_DecodeString for non windows platforms 2020-12-19 13:13:37 +11:00
UnknownShadow200
abfad91560 minor code tidy up 2020-12-13 14:51:11 +11:00
Goodlyay
ac8ad72e63 Fix for webclient 2020-12-09 03:44:46 -08:00
UnknownShadow200
9f88700074 Android version should always be fullscreen
Also improve documentation for String_Format (Thanks Tree)
2020-11-21 14:06:14 +11:00
UnknownShadow200
88d1d9513a Avoid including String.h in almost all .h files 2020-10-18 12:23:06 +11:00
UnknownShadow200
9501564a72 String --> cc_string 2020-10-18 11:53:28 +11:00
UnknownShadow200
293b2ea113 use Codepoint instead of unichar in more places 2020-10-17 17:18:23 +11:00
UnknownShadow200
4e982f3b4b Rename Codepoint typedef to cc_unichar to more accurately reflect what it is
Bah, strings. A unicode codepoint definitely does not fit in 16 bits
2020-10-17 16:47:54 +11:00
UnknownShadow200
7c22112aa3 considering that it is always half way through 2020, probably should update copyright year to 2020 2020-06-25 20:44:38 +10:00
UnknownShadow200
41cc4b2149 Less use of String_FromReadonly 2020-06-17 12:12:42 +10:00
UnknownShadow200
96676fb374 Minor style fixes 2020-05-09 14:42:01 +10:00
UnknownShadow200
3c6d837088 remove String_StripCols from public API 2020-04-29 11:44:33 +10:00
UnknownShadow200
209a4046fb Change String_IndexOfString to just String_IndexOfConst, because that's all we ever use it for anyways 2020-04-04 14:50:14 +11:00
UnknownShadow200
a6773e8f79 Use int instead of cc_bool for return types in places.
While this makes almost no difference in desktop builds, for the web client, the produced code ends up looking like X = func(); Y = (x<<24>>24), with Y being used. Now just X is used.
2019-10-13 10:13:13 +11:00
UnknownShadow200
540bd993b2 bool -> cc_bool, for better compatibility with system headers that define bool type 2019-10-10 13:20:30 +11:00
UnknownShadow200
39cd47b2d3 use cc_uint8 instead of uint8_t so we can avoid stdint.h for gcc and clang
This fixes not compiling with mingw32 out of the box on windows (not mingw-w64, it works fine) due to WINVER being defined somewhere in the headers included by stdint.h. Even after that it would produce executables that wouldn't work properly unless DUNICODE was also added.
2019-08-25 19:36:45 +10:00
UnknownShadow200
482df54808 Drop UniString
The only thing I intended to use it for was exe path with setcurrentdirectory, but that doesn't matter anymore
2019-08-25 11:57:39 +10:00
UnknownShadow200
b52aea902d Increase maximum frame delay for animations from 32767 to 65535 2019-08-06 21:31:34 +10:00
UnknownShadow200
15079ee79f Actually implement String_UNSAFE_SubstringAt as a function instead of a macro on top of String_UNSAFE_Substring
This saves around 1ms when loading 431 fonts on my PC
2019-08-02 19:37:03 +10:00
UnknownShadow200
795b2b4f5a Rename from BufferSize to Capacity for StringsBuffer to be consistent with rest of codebase 2019-07-13 15:52:36 +10:00
UnknownShadow200
9851372277 Use faster alternative to String_InitAndClear, also parse http version instead of relying on http lib 2019-07-13 09:00:28 +10:00
UnknownShadow200
ee3f89b078 fix not compiling on arm64 linux 2019-07-11 19:10:44 +10:00
UnknownShadow200
c2a1cdcd1f Remove some unused stuff 2019-06-19 19:55:54 +10:00
UnknownShadow200
93384fa327 Update copyright year in all .h files 2019-06-03 22:09:34 +10:00
UnknownShadow200
0805af6368 make more struct member names start with lowercase 2019-06-01 17:15:48 +10:00
UnknownShadow200
5d8ec21d4e Change misleading Convert_DecodeAscii to String_DecodeCP1252 2019-05-21 22:08:43 +10:00
UnknownShadow200
065a32a570 Bump default sensitivity to 50 on windows to compensate for raw mouse changes 2019-05-17 14:05:54 +10:00
UnknownShadow200
5495faa800 Show a warning instead of crashing with 'String too big into StringsBuffer' when loading options.txt/fontscache.txt
Also fix makefile again
2019-04-07 22:28:03 +10:00
UnknownShadow200
6379670429 remove more unused bits 2019-03-14 18:39:20 +11:00
UnknownShadow200
c4f3af197f cleanup Random a bit 2019-03-14 13:41:25 +11:00
UnknownShadow200
87f1677e62 Log error message on separate line. Also start work on describing internal classicube errors. 2019-03-08 22:34:56 +11:00
UnknownShadow200
ae9eb607a9 use const in a few more places, reduce some compiler warnings 2019-03-06 23:27:48 +11:00
UnknownShadow200
03a264bd91 Fix passwords with some non alphanumeric characters not working 2019-02-23 14:58:36 +11:00