Commit graph

45 commits

Author SHA1 Message Date
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
OM
c287638f99 Reworked file inclusion (using relative path) 2023-06-17 01:24:20 +02:00
OM
c79fd4b35b Set DEFAULT_BASEDIR to NULL to use cwd instead 2023-05-31 19:40:19 +02:00
OM
6b1da4af57 Removed "quotes" in command-line... 2023-05-29 01:32:40 +02:00
OM
24cf12dd36 Fixed Linux compilation errors 2023-05-28 22:54:19 +02:00
OM
c1213e6027 Various fixes and additions 2023-05-28 20:19:35 +02:00
OM
f1f9ed744d Updates 2023-05-27 16:19:31 +02:00
OM
f3be59f64d update 2023-05-26 23:32:27 +02:00
OM
dc45c33c79 ioq3 updates 2023-05-26 20:53:00 +02:00
OM
f013e82b98 updates 2023-05-25 19:34:01 +02:00
OM
c32c377946 ioq3 sys 2023-05-25 19:09:32 +02:00
OM
ca3340b158 ioquake3 porting 2023-05-24 19:29:36 +02:00
L
c7f877c8b4 Added Quake III arena unix/win32 folders 2023-05-08 22:58:54 +02:00
L
5a87b21efc Fixed all compilation errors 2023-05-08 00:02:31 +02:00
L
b9bab148ee Added "-dbg" suffix for debug builds 2023-02-05 14:15:24 +01:00
L
cba4af3d65 Using latest ioq3 win_resource.rc with win_manifest.xml usage 2023-02-05 14:02:38 +01:00
L
35b767402b Indent 2023-02-05 13:27:12 +01:00
L
85e481d3cd Added win_manifest.xml from ioquake3 2023-02-05 11:00:09 +01:00
L
ca203c1cd9 Initialize localization 2023-02-03 00:15:16 +01:00
L
88d8d9095e Don't call Sys_SetFloatEnv in debug mode 2023-02-02 00:21:30 +01:00
L
08f151c665 Fixed ARM compilation 2023-02-01 22:45:04 +01:00
L
d4faf0c0e0 Fixed compilation errors on Unix 2023-02-01 00:28:40 +01:00
L
7d660a7ddb Added win_bounds.cpp from FAKK 2023-01-31 01:23:49 +01:00
L
eb4b91a22d Fixed strlen size warning 2023-01-31 01:22:58 +01:00
L
dc6229dfec Moved localization file to sys/ folder (platform-specific) 2023-01-31 01:22:43 +01:00
L
dc36511b5a Updated platform files to ioq3 codebase 2023-01-31 00:54:21 +01:00
L
3700daa2d7 Game version improvement 2023-01-29 22:58:23 +01:00
Ley0k
563565bbf2 replaced size_t with intptr_t for negative lengths 2017-02-19 22:00:27 +01:00
Ley0k
85b7ac3ed5 Using size_t for lengths (also remove most warnings when compiling for x64) 2017-02-19 21:14:27 +01:00
Ley0k
09bed43f97 Hard reset 2016-03-27 11:49:47 +02:00