1860 Commits

Author SHA1 Message Date
ceski
02368558b2 Add missing consts 2023-05-12 20:55:47 -07:00
ceski
477fb17713 Simplify reset 2023-05-12 20:37:41 -07:00
Roman Fomin
590d410b13 fix upscale texture inconsistencies (now it should match Choco/Crispy) 2023-05-13 10:33:55 +07:00
ceski
ee415606ed Remove reverb and chorus config keys 2023-05-12 20:07:51 -07:00
ceski
cdf8987234 Clean up EMIDI device handling 2023-05-12 20:01:50 -07:00
ceski
0b9ca8a989 Fix EMIDI global looping
e.g. ALIENZ.MID
2023-05-12 19:54:49 -07:00
Roman Fomin
23edf7ef4c redo looping for music stream
* Fix looping off case for tracker music.

* Do not always loop if `LOOP_START`/`LOOP_END` tags are present.
2023-05-13 09:09:36 +07:00
Fabian Greffrath
c6735cb110
add -dumptables arg to export generated translation tables to PWAD (#1052)
* add -dumptables arg to export generated translation tables to PWAD

Fixes #1033

* start messages on a new line

* Revert "start messages on a new line"

This reverts commit 3896f9d49fecd6a17862cd19ad7b76c4dcd29c34.

* proper new line in message output
2023-05-12 13:48:44 +02:00
Roman Fomin
4b0cb33234
add initialization checks to music modules (#1051)
Now, for example, if OpenAL fails to initialize, Win Native MIDI can still
work.
2023-05-12 14:15:42 +07:00
Roman Fomin
b06439e4ab
replace sc_man with u_scanner for MUSINFO parsing (#1050) 2023-05-12 13:35:56 +07:00
Roman Fomin
7c72cb58f5 fix build on macOS < 10.5 2023-05-12 13:15:27 +07:00
Roman Fomin
6513419d39
reset musinfo.from_savegame on G_DoWorldDone and G_DeferedInitNew (#1049) 2023-05-12 13:09:33 +07:00
Roman Fomin
56ee1fbaa2 little clean up 2023-05-11 07:57:24 +07:00
Roman Fomin
f5276845cf more accurate emulation of fread in memio 2023-05-11 07:55:43 +07:00
Roman Fomin
26876ee72d don't install redundant packages in macOS configuration 2023-05-11 07:54:17 +07:00
Roman Fomin
b86a45f2a2
initial implementation of macOS native MIDI module (#1048)
* set CMAKE_FIND_FRAMEWORK to NEVER

* use pkg-config

* simplify FindOpenAL.cmake

* try to fix build

* integrate code from Odamex
2023-05-11 07:29:38 +07:00
Roman Fomin
69b4b5a81a eat key if cheat found
Fix bug report from DW.
2023-05-10 11:28:52 +07:00
Fabian Greffrath
2724eb590e
always print player coords if automap inactive (#1047)
Fixes #1036
2023-05-08 17:28:15 +02:00
Roman Fomin
17d0f54fd8
enable widescreen mode without aspect ratio correction, reformatting (#1042) 2023-05-08 16:38:30 +07:00
ceski
6def818410
winmidi: Clean up "reset all controllers" handling (#1046) 2023-05-08 16:38:02 +07:00
Roman Fomin
49e936a054
disable music if sound is not initialized (#1045) 2023-05-08 02:54:05 +07:00
Roman Fomin
cab1795948
i_video.c refactor, resize upscaled texture on window resize (#1040)
* move input code to i_input.c

* factor I_ResetGraphicsMode() from I_InitGraphicsMode()

* resize upscaled texture on window resize

* cosmetic changes

* move global variables to the top, remove extern

* restore original MBF format of "draws little dots..."

* reformat I_SetPalette for consistency
2023-05-07 23:43:43 +07:00
Roman Fomin
ae0281d38b
remove same input element in menu instead of ignoring (#1041)
* edit help string
2023-05-07 21:18:12 +07:00
Roman Fomin
a37167944c memio: fix EOF reset 2023-05-07 14:29:31 +07:00
Roman Fomin
8ddecfedfa cosmetic changes in update_wiki.yml 2023-05-06 22:17:45 +07:00
Roman Fomin
fecc4d8086
switch to UCRT MSYS2 build, cosmetic changes (#1037) 2023-05-06 22:13:20 +07:00
Roman Fomin
03ac60dca7 memio: fgets() fills a string even if its size is not large enough 2023-05-06 20:20:45 +07:00
Fabian Greffrath
0fb24e322f fix uninitialized usage of output in P_LoadNodes_ZDBSP() 2023-05-06 11:03:05 +02:00
Fabian Greffrath
af535939b9 fix filename = NULL in ProcessDehFile() 2023-05-06 10:59:44 +02:00
Joan Bruguera
8eb510840f
more robust fallback logic for music modules (#1035)
The MIDI player fallback logic was to initialize `module 0 device 0`.
However, it is possible that this fallback also fails.

A scenario where this happens is when running on Linux with FluidSynth
but no soundfonts. In this case, FluidSynth will fail to initialize, the
fallback will try to use FluidSynth again, which will fail again, and
since the return code of `module->I_InitMusic` is not checked, the module
will stay uninitialized and will cause a crash a bit later.

To fix this, implement a more robust fallback logic which tries to
initialize each music module. This logic will always succeed since in
the worst case it will fallback to OPL, which currently never fails.

Fixes: 2f27fa739a1a ("fall back to `module 0 device 0` if the music module failed to initialize")
2023-05-06 07:27:18 +07:00
Roman Fomin
06cc022185
cmake: use ALIAS instead of generator expressions, cosmetic changes (#1034) 2023-05-05 08:42:12 +07:00
Roman Fomin
8553ae2beb memio: fix mem_fgets() EOF case 2023-05-04 23:24:37 +07:00
Roman Fomin
e43aa4b836 sndfile: rename MEMFILE stream->fs 2023-05-04 22:26:55 +07:00
Roman Fomin
fedc40b45e sndfile: close file properly 2023-05-04 21:53:50 +07:00
Roman Fomin
790cc0c373 use memio in i_sndfile.c 2023-05-04 21:43:34 +07:00
Roman Fomin
fb320c09da memio: successful call of the mem_fseek() clears eof, init eof on open stream 2023-05-04 21:03:14 +07:00
Roman Fomin
3ebc272413
memio: emulate how stdio works (#1032)
* make mem_eof a property of _MEMFILE
2023-05-04 19:32:21 +07:00
Roman Fomin
32e7dda3cf
use memio in d_deh.c (#1031)
* use memio in d_deh.c

Fixes ASan report.
2023-05-04 17:06:17 +07:00
Fabian Greffrath
80ad33dd1b release Woof! 11.0 woof_11.0.0 2023-05-04 07:36:32 +02:00
Roman Fomin
f2744c99f9
CHANGELOG.md update (#1002)
* initial CHANGELOG.md update

* Update CHANGELOG.md

* update CHANGELOG.md with latest changes

* add latest changes to CHANGELOG.md

---------

Co-authored-by: Fabian Greffrath <fabian@greffrath.com>
2023-05-04 07:35:04 +02:00
Fabian Greffrath
c1d7849266
Update README.md 2023-05-02 15:02:45 +02:00
Roman Fomin
c53e730e36 reduce calculations in previuos commit 2023-05-02 18:52:41 +07:00
Roman Fomin
40916bd5a6 another crosshair lock-on fix 2023-05-02 18:39:50 +07:00
Roman Fomin
b8a58cc6fa crosshair lock on cosmetic change
Here we need `+1` because we have 5x5 and 9x9 crosshair patches. We can simplify
the code if we add offsets to the patches. Although other ports are not have
offsets.
2023-05-02 16:06:06 +07:00
Roman Fomin
488281dea5
take the crosshair patch height and width into consideration (#1030) 2023-05-02 15:29:12 +07:00
Roman Fomin
8c33950982 vcpkg: fix sndfile FluidSynth option
* Ignore `C:/Strawberry/perl` PATH in Windows-2022 image. Turns out it contains a broken pkg-config.

* Remove PkgConfigHelper.

* Restore "*.sf3" soundfonts loading.
2023-05-02 13:17:35 +07:00
Roman Fomin
e334052144 disable ".sf3" loading for now
We can fix it, but I don't think it's worth it. I still don't like how it works
(decompress all samples on load).
2023-05-01 10:31:34 +07:00
Roman Fomin
02c06002a2 vcpkg: try to enable sndfile for fluidsynth 2023-05-01 10:22:25 +07:00
Roman Fomin
59f1b34c27
add weaponinfo checks to weapon centering code (#1028)
* cosmetic changes

* factor out bobbing function
2023-05-01 08:13:43 +07:00
Roman Fomin
ccd6044e0c
fix menu skull drawn over verify box (#1029) 2023-04-30 18:15:50 +07:00