Commit graph

29 commits

Author SHA1 Message Date
toaster
48261ae4b5 filesearch: Add "Priority folder" string parameter
If non-NULL, filesearch will begin in that subfolder of the desired searchpath, but can go back up to the root of the search later if not found in that location.

Primarily a small optimisation for checking the addons folder first
2025-08-25 20:14:37 +01:00
toaster
4d6fe8f233 W_VerifyNMUSlumps: Clean up
- Bake W_VerifyFile in, since it was a stub never called anywhere else
- Make it operate off file handles, since the following locations quickly filesearch'd more than once in quick succession.
    - W_InitFile
    - Command_Addfile
- Remove spurious call from W_InitMultipleFiles for `-file` startup param
2025-08-25 19:51:48 +01:00
toaster
b119341948 G_SetGameModified exists for this very purpose, use the srb2kart/rr function signature version instead of direct write to modifiedgame 2025-08-25 18:36:01 +01:00
Oni VelocitOni
72b6bc8029 Merge branch 'eid-read-shader-fix' into 'master'
Get output buffer size in W_ReadShader correctly

See merge request kart-krew-dev/ring-racers-internal!2690
2025-07-23 22:47:21 +00:00
AJ Martinez
c06fc9cccf Merge branch 'mod-info' into 'master'
MODINFO lump

See merge request kart-krew-dev/ring-racers-internal!2443
2025-07-22 05:35:21 +00:00
Eidolon
ced6293d37 Get output buffer size in W_ReadShader correctly 2025-07-17 18:44:48 -05:00
Eidolon
9f40034536 Remove W_VerifyFileMD5 2025-04-08 09:34:23 -05:00
Eidolon
5c85a0a578 Add md5expected array to W_InitMultipleFiles 2025-04-08 09:34:23 -05:00
Eidolon
d3c39907f7 Add md5expected to W_InitFile
Optional parameter that specifies the expected md5sum as a hex character
string.
2025-04-08 09:34:23 -05:00
Eidolon
29185a0d2a Don't findfile shader flatfiles 2025-04-06 12:01:07 -05:00
Eidolon
00cf5ff50f Constrain shader search to data/ and srb2path 2025-04-06 11:53:38 -05:00
Eidolon
d646e67f5f Actually load shaders.pk3 again 2025-03-16 23:48:15 -05:00
Eidolon
faa0fbd31f Add W_InitShaderLookup, W_ReadShader
This manages a lump list of shader lumps from a shaders.pk3, separate
from the loaded wadlist, so that shaders do not participate in the
wadlist system at all.
2025-03-16 15:39:32 -05:00
Eidolon
e4fc3cc5c2 Fix conditionals on rendermode to allow for more modes 2025-03-12 21:50:37 -05:00
Eidolon
cb7f437e60 Merge public master 2025-02-13 15:48:11 -06:00
Eidolon
a4d304a1f5 Update copyright years to 2025 2025-02-13 15:32:26 -06:00
Sally Coolatta
bcb4d6b75b Addon metadata in W_VerifyNMUSlumps 2024-10-17 20:26:51 -04:00
Sally Coolatta
ae59ee0ab9 MODINFO lump
Lets you set a bunch of metadata for your add-on, and a minimum required Ring Racers version (to prevent annoying tech support questions for mod authors). This version value can also be leveraged to add in backwards compatibility behaviors for older mods.

Currently the values of the metadata are printed out when a mod is loaded, and aren't used otherwise.

Fix pointers for C interface copied strings

Apparently this was luck that it worked earlier.

I love C++'s strings! And conversely, I hate C's strings.
2024-10-17 20:19:21 -04:00
Antonio Martinez
af4dc813e2 The text spacing vortex consumes all 2024-09-27 03:28:37 -07:00
toaster
9d0c9ece4b Demos: Use long lumpname when handling staff ghost information
Implements new W_CheckLongNameForNum funcs, which are broadly copypasted from W_CheckNameForNum
2024-05-01 19:55:30 +01:00
Sally Coolatta
7dfa597c7d SRB2 -> DRRR copyright in src, acs, android folder
Be consistent with toaster's recent changes to copyright
2024-04-05 02:08:23 -04:00
Eidolon
875d32800f Disallow patches >2048 in size
Our technical hardware support baseline is GLES2, which has a minimum
supported texture size of 2048x2048. This means we cannot allow anything
larger without introducing compatibility issues between GL players and
software players. Even if Software is able to handle larger images,
GL hardware may not, even on the same device. This additionally prevents
an issue with Twodee where the patch atlas can't handle images larger
than 2048x2048 due to the page size.
2024-03-09 14:39:35 -06:00
Sal
84543da38a Implement getModuleName for ACS environment 2023-11-22 14:37:07 +00:00
James R.
42814cea2b Revert "W_InitFile: calculate md5sum on background thread, for startup wads"
This reverts commit 28f2659342.
2023-09-09 16:30:00 -07:00
James R
28f2659342 W_InitFile: calculate md5sum on background thread, for startup wads
Add W_GetFileMD5, blocks calling thread until md5 is
calculated.
2023-09-06 18:32:41 -07:00
Ash Logan
dedd0047bd wad: Refactor ResFindSignature to work in chunks
kinda mucky but it works
2023-09-06 18:32:40 -07:00
Ash Logan
8ca2dc77e7 wad: Cache pk3 central directory
Massive improvments from seeking less, allows file buffering to work better too

Co-authored-by: James R <justsomejames2@gmail.com>
2023-09-06 18:32:40 -07:00
Ash Logan
331a6ea41e wad: Fixes for big-endian platforms 2023-09-06 18:32:40 -07:00
James R
c46231ede9 Convert w_wad.c to w_wad.cpp 2023-09-06 17:36:21 -07:00
Renamed from src/w_wad.c (Browse further)