Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
54484e6
Import vendored zip library for mod loading
Vagabond Sep 13, 2025
9677023
WIP
Vagabond Sep 14, 2025
d4928ea
Enumerate zip files in mod directories and their contents
Vagabond Sep 19, 2025
21127f2
Get background overrides working and make progress on sprites
Vagabond Sep 21, 2025
fb7cb59
Support loading sprites from mods
Vagabond Sep 21, 2025
afa945b
Support music mods
Vagabond Sep 22, 2025
ae15300
Support multiple music remixes co-existing
Vagabond Sep 22, 2025
6356348
Allow selection of the music source (originals/remixes/both)
Vagabond Sep 22, 2025
215695b
Support parsing bk/af animdata.ini and fighter header.ini from mods
Vagabond Sep 22, 2025
ecc61b3
Fix minizip build on Windows
Nopey Sep 23, 2025
775498b
Fix clang-tidy issue and a leak
Vagabond Sep 23, 2025
0dc42c6
Try to fix another clang-tidy issue in miniz
Vagabond Sep 23, 2025
77b8ebd
Handle "common" sprite loads and fix some naming to match wiki
Vagabond Sep 23, 2025
2c80b9a
Add fallback "common" loads for AF/BK animdata
Vagabond Sep 23, 2025
b8dbd2d
Switch to filename, not id lookups, fix sprite load bug
Vagabond Sep 23, 2025
173d42b
Remove unused var
Vagabond Sep 23, 2025
d91ef7f
Cleanup some leaks
Vagabond Sep 24, 2025
0846c04
Try to fix #1317
katajakasa Oct 9, 2025
dd43f7e
Improvements to mod loading
Vagabond Oct 6, 2025
a04d4cf
Sort mods by load order and dedup by version
Vagabond Oct 6, 2025
ddc5fc3
WIP on tournament support
Vagabond Oct 9, 2025
255de71
Fixes and clang-tidy issues
Vagabond Oct 10, 2025
f6e07d7
More tidy
Vagabond Oct 10, 2025
4360f52
Fix another leak
Vagabond Oct 10, 2025
3c31c48
Switch to omf_strncasecmp
Vagabond Oct 10, 2025
bea820e
Switch to omf_strcasecmp
Vagabond Oct 11, 2025
3420969
Constrain pilot photo select to PLAYERS.PIC
Vagabond Oct 11, 2025
cbffbf8
Support replacing PLAYER.pic portraits via mods
Vagabond Oct 12, 2025
64636ec
Allow larger sd_sprites by making len field u32
Vagabond Oct 14, 2025
a98e5c3
Support portrait width/height in ini files, load HAR palettes
Vagabond Oct 15, 2025
239b567
Allow for integer multiple sizes of assets (2x 4x etc) and pick best
Vagabond Jan 2, 2026
2ab7473
Better resolution rounding
Vagabond Feb 12, 2026
398968e
Fix the leaks
Vagabond Feb 13, 2026
5544ae6
fmt
Vagabond Feb 13, 2026
abd999f
Death to strcmp, all hail str_equal_c
Vagabond Feb 13, 2026
892b460
Tidy
Vagabond Feb 13, 2026
89b6e6e
Reorg headers, tidy and fmt
Vagabond Feb 13, 2026
5439c51
Prevent most mod assets loading during netplay
Vagabond Feb 13, 2026
45cb6a9
Some review comments
Vagabond Feb 13, 2026
5c31ddb
More review comments
Vagabond Feb 13, 2026
d0c9efb
More memory leak fixes from review
Vagabond Mar 28, 2026
c13290c
Parse hit coordinates and sprite origin from hitcoord.png
Vagabond Mar 30, 2026
60997d4
free -> omf_free
Vagabond Mar 30, 2026
fa9576e
add rb_free
Vagabond Mar 30, 2026
7c2df61
Fix signature of fallback function def
Vagabond Mar 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix clang-tidy issue and a leak
  • Loading branch information
Vagabond committed Feb 12, 2026
commit 775498b7a3089d97f85b7dce9b578fb55223d70c
4 changes: 2 additions & 2 deletions src/audio/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ static void load_opus_music(unsigned char *buf, size_t len) {

static path get_music_path(music_file_type *type, unsigned int resource_id) {
assert(is_music(resource_id));
path original_music, new_music;
original_music = new_music = get_resource_filename(get_resource_file(resource_id));
path original_music;
original_music = get_resource_filename(get_resource_file(resource_id));
*type = MUSIC_FILE_TYPE_PSM;
return original_music;
}
Expand Down
8 changes: 6 additions & 2 deletions src/resources/modmanager.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,15 @@ unsigned int modmanager_count_music(str *name) {
list *l;
unsigned int len = 0;

int result = 0;

if(!hashmap_get_str(&mod_resources, str_c(&filename), (void **)&l, &len)) {
return list_size(l);
result = list_size(l);
}

return 0;
str_free(&filename);

return result;
}

bool modmanager_get_music(str *name, unsigned int index, unsigned char **buf, size_t *buflen) {
Expand Down