frosch
b1718478c8
Codechange: Replace old non-standard attributes with C++17/20 standard attributes.
8 months ago
frosch
8a4f0c4b02
Codechange: Simplify error throwing/catching in squirrel compiler.
8 months ago
Rubidium
7916e97c62
Update: opengl; glext header to 20231129, wglext header to 20231018
8 months ago
Rubidium
a23cd4aef7
Update: nlohmann/json to 3.11.3
8 months ago
Rubidium
79b684b8ac
Update: fmt to 10.2.0
8 months ago
Patric Stout
d3b2a576de
Feature: Plugin framework for Social Integration with Steam, Discord, GOG, etc ( #11628 )
8 months ago
Patric Stout
37244bc8c5
Codechange: MacOS already has MIN/MAX macros defined
...
This is caused because we use PreCompile Headers, and one of them
includes a system headers which defines MIN/MAX.
8 months ago
Patric Stout
63a3d56b8a
Add: monocypher 4.0.2
...
Monocypher will take care of all our encryption needs; as most
OSes and vcpkg doesn't have it available, we vendor it.
8 months ago
Rubidium
47c0184a0b
Codechange: replace ROR/ROL with std::rotr/rotl
8 months ago
Loïc Guilloux
c86d918921
Add: [Script] Optional filter parameter to more ScriptXXXList constructors ( #11698 )
9 months ago
Rubidium
3a676a5af0
Codechange: replace static inline with static for non-class functions
9 months ago
Jonathan G Rennison
48b6b1844a
Change: Limit total script ops that can be consumed by a list valuate ( #11670 )
9 months ago
Rubidium
e0c670cbe8
Codechange: replace NULL with nullptr
9 months ago
Rubidium
f16399f4c9
Codechange: replace x.size() > 0 with !x.empty()
11 months ago
Rubidium
c9276c2959
Codechange: replace x.size() == 0 with x.empty()
11 months ago
Peter Nelson
015fbafe34
Codechange: Add missing override specifiers to squirrel.
1 year ago
frosch
b6c8f301be
Codechange: Silence warnings about intentionally unused parameters.
1 year ago
Rubidium
4cf88e068a
Remove: unused include of cstdarg/stdarg.h
1 year ago
Patric Stout
ba67f39db6
Codechange: vendor the nlohmann-json library ( #11290 )
1 year ago
Rubidium
eaae0bb5e7
Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
...
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
1 year ago
Rubidium
4fbc81003f
Codechange: make SQString::Create that supports std::string and use that
1 year ago
Owen Rudge
1a3d1bca59
Remove: OS/2 port
1 year ago
Rubidium
a541b8217d
Codechange: use fmt::format to build Squirrel error message
1 year ago
Rubidium
10e12154f5
Fix: false positive warning in fmt library (backport ef55d4f of upstream fmt)
1 year ago
Loïc Guilloux
c880157518
Fix: Check max member count in squirrel classes ( #10883 )
...
Manual cherry-pick from 23a0620658
1 year ago
PeterN
101e4e54a1
Fix d9a04ba446: Ensure MD5Hash is initialized. ( #10876 )
...
Not all instances need to be initialized as often they are copied or
written to, but doing all ensures no surprises.
Move the ^= operator to MD5Hash while we're at it.
1 year ago
Loïc Guilloux
db3b086a52
Fix #10867 , 8b93e45: Squirrel compile error exception type changed ( #10869 )
1 year ago
Rubidium
eb635b85bb
Fix: work around GCC compiler bug #105120 in fmt
...
The fmt code pushes a pragma option, and later pops is. The intrinsics code
interacts with it via the __OPTIMIZE__ macro. This has been set by the pragma
option push, but not unset/reset to the original with the pop.
Since the pragma is only used for the GCC compiler (not Clang, not MSVC, not
ICC) and in debug mode, just remove the whole pragma handling for it.
1 year ago
Rubidium
187fa3f214
Codechange: update to fmt 10.0.0 and add formatting support for chrono and std types
1 year ago
Loïc Guilloux
8d2a0a7da4
Fix #10846 : [Squirrel] Ensure sqvector size does not overflow ( #10848 )
1 year ago
Rubidium
d9a04ba446
Codechange: make the MD5 hash/digest/checksum variables a std::array
1 year ago
Rubidium
e035705239
Codechange: introduce and use std::string variant of sq_throwerror
1 year ago
Rubidium
6e3d3c0e7c
Codechange: introduce std::string variant of sq_pushstring
1 year ago
Patric Stout
81d4fa6999
Feature: drop ICU-lx in favour of directly interfacing with harfbuzz
...
This means we have RTL support again with ICU 58+. It makes use of:
- ICU for bidi-itemization
- ICU for script-itemization
- OpenTTD for style-itemization
- harfbuzz for shaping
1 year ago
PeterN
57f2d70fef
Change: Use cstdint instead of rolling our own types. ( #10651 )
1 year ago
Rubidium
8f24901843
Codechange: replace printf with PRINTF macros by fmt::format for scripts
1 year ago
Rubidium
484883e6e1
Cleanup: remove (unused) Squirrel code that used a hack to work around printf safety
1 year ago
Rubidium
5733142b0d
Codechange: use string/fmt instead of printf for Squirrel's Raise_Error
1 year ago
Rubidium
8b93e45e22
Codechange: use string/fmt instead of printf for squirrel's PRINTFUNC
1 year ago
Rubidium
88ead3f102
Add: catch2 v2.13.10
1 year ago
rubidium42
6ba55e663e
Codechange: do not hide variables with other variables
2 years ago
rubidium42
1951af07c0
Codechange: do not hide parameters with local variables
2 years ago
Rubidium
71b46db8d0
Cleanup: remove commented out code
2 years ago
Rubidium
5863d78cb4
Codechange: use commented out code, or guard by #ifdef
2 years ago
Rubidium
ae422be979
Cleanup: remove/replace trailing ; with . in comments
2 years ago
Rubidium
20a9e13272
Fix: inconsistent definition of copy constructor and assignment
2 years ago
Rubidium
f7af9a299a
Codechange: prevent suspicious pointer scaling
2 years ago
glx22
012fd2be0d
Codechange: Suppress warnings when asserts are disabled
2 years ago
Loïc Guilloux
ccd586a736
Fix #9588 , 140a96b: [Squirrel] Reaching memory limit during script registration could prevent further script detections ( #9589 )
...
Also the memory allocation triggering the limit was never freed.
And if the exception was thrown in a constructor using placement new, the pre-allocated memory was not freed either.
3 years ago
Rubidium
281a65b3e1
Cleanup: simplify some boolean expressions
3 years ago