Commit graph

79 commits

Author SHA1 Message Date
smallmodel
01381ed084
Add HTTP support and update checking
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 16s
2025-02-24 02:20:31 +01:00
ysdragon
833408c663
Don't link against rt for musl and *BSD platforms 2025-02-08 04:03:24 +02:00
smallmodel
f22ea9eb21
Link against rt
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 21s
2025-01-11 23:50:33 +01:00
smallmodel
ec95b6bfbe
Fix localization not working properly 2025-01-08 22:52:47 +01:00
smallmodel
6a31381c8e
Format localization source files 2025-01-08 21:26:41 +01:00
smallmodel
7f8bcf8075
Don't read localization.txt file twice 2025-01-08 21:07:13 +01:00
smallmodel
b84a47ad3f
Localization files should be sorted case-insensitive 2025-01-08 21:04:09 +01:00
ysdragon
2ec2ef8bbf
Update sys CMake configuration to link execinfo for BSD variants 2025-01-08 11:27:09 +02:00
smallmodel
387ccd5cc3
Bump the minimum CMake version to 3.12 2024-11-30 00:36:33 +01:00
smallmodel
83a874e4fd
Add an option for CMake to specify when targeting the local system 2024-11-29 20:59:47 +01:00
ysdragon
8d0b7b77c6 Check for libc and link against execinfo lib for musl libc 2024-11-24 16:04:30 +01:00
smallmodel
2ce8450a7e
Use fprintf to stderr 2024-11-21 01:14:08 +01:00
smallmodel
58d8a73269
Don't abort() on interrupt or on program termination 2024-11-20 12:46:04 +01:00
smallmodel
c788d57c52
Use abort() rather than doing a segfault 2024-11-19 23:15:01 +01:00
smallmodel
01dfbcdbfe
Properly print the backtrace and generate a core dump on both Windows/Unix 2024-11-19 21:45:49 +01:00
smallmodel
b0a683c188
Don't localize if the localization hasn't been initialized 2024-11-12 23:09:32 +01:00
smallmodel
afc431c413
Add a basic launcher 2024-11-04 01:00:53 +01:00
smallmodel
1a3122bef3
Fix pointer to integer warning 2024-10-18 22:14:45 +02:00
smallmodel
b1c5d6c62a
Increase the backtrace size to 64 2024-10-13 11:32:20 +02:00
smallmodel
1fd6c2bd52
Merge pull request #360 from pryon/UINotepad-fixes
UINotepad fixes and improvements
2024-09-22 19:35:52 +02:00
smallmodel
764b95f617
Set a better name for binaries to properly distinguish the name of the architecture 2024-09-22 14:56:02 +02:00
pryon
6b91846b0c Reimplement Sys_ListFiles and Sys_ListFilteredFiles
They had several bugs, like showing the current and parent directory entires twice, not seeing files but only directories, etc.
2024-09-21 19:36:13 +02:00
pryon
92190220aa Implement clipboard functionality 2024-09-21 19:32:23 +02:00
smallmodel
f9d264058b
Use safe version of sprintf and strcpy 2024-09-20 23:08:53 +02:00
smallmodel
a69d9d4483
Fix compilation errors for MacOS, and add support for MacOS 2024-09-20 21:31:27 +02:00
smallmodel
08c5186426
Use stdlib.h as malloc.h is deprecated 2024-09-20 21:27:53 +02:00
smallmodel
205709271b
Add fixes from upstream ioq3 2024-09-19 19:24:31 +02:00
Sébastien Noel
a010e648ee Fix a few typos 2024-09-19 10:52:47 +02:00
smallmodel
75a71d35ec
Avoid calling isspace with a character that has a value below 0 2024-09-18 23:04:01 +02:00
smallmodel
3f139f463b
Remove stub print 2024-09-18 00:19:05 +02:00
Alan Zhao
769d06b0f0
Use nanosleep(2) instead of usleep(3)
usleep(3) was declared obsolete in POSIX.1-2001 and removed in
POSIX.1-2008 and nanosleep(2) was recommended to be used instead.
2024-07-26 23:03:09 +02:00
smallmodel
34ea099d87
Define _FILE_OFFSET_BITS to 64 due to a bug in readdir() affecting 32-bit architectures
readdir() would return NULL, setting errno to EOVERFLOW, unable to load pk3 files
2024-06-06 22:18:23 +02:00
smallmodel
054201bea9
Fixed character assertion fail when the character was a value below 0 2024-04-21 19:07:08 +02:00
smallmodel
3a5dcd6a3c
Increased MAX_BUFFERS 2023-11-07 22:34:04 +01:00
smallmodel
128c8f3c06
Added Sys_DebugPrint 2023-09-17 19:31:37 +02:00
smallmodel
c901bcf321
Call Sys_PrintBackTrace() directly from Sys_SigHandler() 2023-09-01 22:53:08 +02:00
smallmodel
8f3142e532
Display the header/footer before printing the backtrace 2023-09-01 22:52:52 +02:00
smallmodel
241fa5d485
Fixed backtrace always showing 0x0 2023-08-26 21:16:48 +02:00
smallmodel
ba6fe112bb
Using Sys_LoadDll to load modules. Sys_LoadDll uses the binary path instead of the current working directory 2023-08-25 23:00:05 +02:00
smallmodel
9b15b27f28
Removed CRT check debug flag 2023-08-19 13:36:54 +02:00
smallmodel
438ed2c0ea
Added a way to debug CRT heap (currently only on Windows with MSVC) 2023-08-19 02:17:45 +02:00
smallmodel
ce34b78113
Added CL_LV_ConvertString
Only CL messages are localized now (see comment)
2023-08-10 02:42:57 +02:00
Zack Middleton
9c0d66c9f2
Don't list mod directories at Windows drive root
The mod list on Windows would search the root of the drive if
fs_basepath, fs_homepath, fs_steampath, or fs_gogpath are blank ("")
(which is usually the case).

The issue is in the low-level Sys_ListFiles() but it only affects the
mod menu, on Windows. It cannot be abused by console commands to
list system files outside of the virtual filesystem.

---

If a directory at the root of the drive of the working directory
contained a pk3 file, the directory was listed in the mods menu. The
virtual filesystem doesn't add blank directory names to the search path
so it cannot load mods from the drive root. (Unless of course you set a
fs_*path cvar to "C:\".)

Sys_ListFiles() with blank directory caused Windows to use "\*" for the
search path and "\" prefix means root of drive. Unix opendir("") failed
so nothing was listed for blank directory.

Sys_ListFilteredFiles() with blank directory _and_ specifying subdirs
could access any directory (on Windows and Unix-like) but no code uses
this or makes it accessible.

These functions are only used for initializing the virtual filesystem
and listing mods. They are not accessible by anything else such as a
console command. Only the mods menu, on Windows, is affected.
2023-07-06 19:46:01 +02:00
OM
fa69717bed Using "main" for loading DLLs as they are now combined 2023-07-02 19:15:35 +02:00
OM
6134b150c1 ioq3 files backport 2023-06-25 20:26:47 +02:00
OM
d82eb25487 Use q_version.h 2023-06-19 23:34:12 +02:00
OM
ca11cdb54e Fixed CMakeLists (tested with CMake 3.10) 2023-06-18 12:18:10 +02:00
Zack Middleton
570e53d9fb Fix macOS client/server failing to start from terminal
The macOS client and server were completely unusable when run from a
terminal. They blocked forever in `[NSApp run];` which was called by
Sys_InitProtocolHandler(). `applicationDidFinishLaunching` was never
called to exit the NSApp run loop.

Use SDL's SDL_DROPFILE event to receive URLs to handle on macOS instead.
This also handles URLs while the game is running (connect to new server)
instead of nothing happening when clicking a link while the game is
running.
2023-06-17 02:19:29 +02:00
OM
6a6d472658 Moved lib importation (wsock, threads, etc) to syslib 2023-06-17 02:09:50 +02:00
OM
5b97245dd1 Reworked CMakeLists 2023-06-17 01:44:38 +02:00