Cacodemon345
89e42fcece
And also an oversight
2025-08-11 01:12:39 +06:00
Cacodemon345
c511b80cd4
Fix warnings on Clang
2025-08-11 01:10:36 +06:00
OBattler
7b3b92e3b3
Log: Fix warnings and attempt to fix the segmentation fault again.
2025-08-09 17:31:10 +02:00
OBattler
880163c048
Log: Use fmt2 to initialize format, not fmt.
2025-08-09 16:13:13 +02:00
OBattler
a541923cba
Also do the resizes in log.c/h.
2025-08-09 15:03:12 +02:00
OBattler
9a25de86b3
CD-ROM: Re-enable CRC checking and disable the usage of the ARM CRC32 instruction.
2025-08-06 16:07:38 +02:00
OBattler
2e8239a880
CRC32: #define off64_t just like in plat.h.
2025-07-24 19:15:12 +02:00
OBattler
161e726819
CRC32: #define __USE_LARGEFILE64, because it's apparently needed for the off64_t type.
2025-07-24 18:10:56 +02:00
Miran Grča
3f82c150dc
CRC32: Include sys/types.h.
2025-07-24 17:41:58 +02:00
Miran Grča
4212f3601f
CRC32: Correct some types.
2025-07-24 17:21:19 +02:00
OBattler
28e3d4fe08
Put those functions into the right place.
2025-07-24 16:52:17 +02:00
OBattler
91d2af521d
CRC32: Replace local with static.
2025-07-24 16:15:36 +02:00
OBattler
eb0d73f6a1
CRC32: Two functions needed on ARM.
2025-07-24 15:30:02 +02:00
OBattler
8944c920ae
CD-ROM: Parity and CRC checking support, System Shock 2 now works with a directly mounted .CUE image as well.
2025-07-24 14:12:20 +02:00
Jasmine Iwanek
026f765495
Some codeql fixes
2025-06-29 00:12:06 -04:00
Cacodemon345
dd0e626133
Set LC_NUMERIC to "C" in program startup
...
For whatever fucking reason, glibc's functions dealing with decimal numbers apparently can only accept either commas or dots in strings, but not both. Meanwhile, both Windows and macOS have no apparent issues accepting both.
I will never understand why they decided to even consider such behaviour acceptable, especially since those ARE used for parsing decimal numbers in many programs, but I guess it's their own version of Not Invented Here syndrome that they (or anyone else) can't be bothered to deal with. This is not how good C standard libraries are written, at all.
2025-03-29 01:18:37 +06:00
OBattler
63f106a0fd
Added plat_break() for raising breakpoints and warning() and log_warning() to raise visible non-fatal warnings to the user.
2025-03-22 00:49:20 +01:00
OBattler
5aac2b4f8f
Merge remote-tracking branch 'origin/master' into cdrom_changes
2025-03-10 17:35:11 +01:00
OBattler
a386bd015f
Merge remote-tracking branch 'origin/master' into cdrom_changes
2025-03-10 16:57:56 +01:00
OBattler
c6dfd688f4
Split off the CRC code to its own module.
2025-02-15 07:09:14 +01:00
OBattler
48f42af745
Moved some files to the utils folder, that's where the CRC code is soon going to reside as well.
2025-02-13 10:31:12 +01:00