Commit Graph

609 Commits

Author SHA1 Message Date
Vladimir Serbinenko
aecfb4141c Add joystick axis to the control descriptors
This allows to easily remap them in frontend
2020-02-21 01:33:25 +01:00
twinaphex
1e5faec9ba C89 buildfixes 2020-02-18 00:18:02 +01:00
Twinaphex
4e141d4e0f
Merge pull request #128 from Ferk/state
Interpolation on state serialization
2020-02-18 00:14:25 +01:00
Fernando Carmona Varo
9eb4a04874 Increase size of savestate to fit MAP19
Also fix attempt to realloc savebuffer
2020-02-17 22:30:42 +01:00
Fernando Carmona Varo
e07ea35440 Fix savestate load from non-level state to level 2020-02-17 19:45:23 +01:00
Fernando Carmona Varo
2bda71a1bb Avoid glitchy mobj interpolation when rewinding
Non-player objects position won't be as smooth when rewinding, but we
can save size of the savestate with not much of an impact.
2020-02-17 18:45:20 +01:00
Fernando Carmona Varo
fcd7e5e506 Fix warnings on mingw64 2020-02-17 16:50:51 +01:00
Fernando Carmona Varo
ab7f6b5a64 Do not alter gameaction on G_DoSaveGameToBuffer
This save action is independent of game logic actions or menu options,
It's triggered from libretro at arbitrary time, changing gameaction could
cause conflicts if unlucky.
2020-02-17 16:33:12 +01:00
Fernando Carmona Varo
1d9867f6d4 Determine if "gameless" savestate from "gamestate"
It should be GS_LEVEL whenever a level is loaded.
No need to have it saved in a separate extra variable
2020-02-17 16:31:57 +01:00
Fernando Carmona Varo
1bb5f0ff3e Interpolation support for serialized states 2020-02-17 15:06:34 +01:00
Fernando Carmona Varo
0e11406f9c Only tick menu when active 2020-02-17 12:01:09 +01:00
Fernando Carmona Varo
f6d6ac2be4 Use gametic instead of skullAnimCounter 2020-02-17 11:56:10 +01:00
Fernando Carmona Varo
d9d59f7909 Fix menu skull blinking 2020-02-17 11:49:58 +01:00
Fernando Carmona Varo
d8a6b1101a Do not reallocate or memcpy save state buffer
The save buffer does not need to be reallocated, we can operate
directly with the buffer provided by libretro without needing to copy
it over.
2020-02-16 21:37:14 +01:00
twinaphex
d70600e7b7 C89 buildfixes 2020-02-16 16:41:19 +01:00
Twinaphex
268281d00b
Merge pull request #126 from phcoder/state
Implement retro_serialize and retro_unserialize.
2020-02-16 13:25:32 +01:00
Vladimir Serbinenko
e4113e85c7 Implement retro_serialize and retro_unserialize.
This allows among other things rewinding.
2020-02-16 05:19:32 +01:00
Twinaphex
c20322a23f
Merge pull request #127 from phcoder/doublefree
Fix double-free on failed load
2020-02-12 07:53:18 +01:00
Vladimir Serbinenko
2487001e31 Fix double-free on failed load 2020-02-12 00:55:11 +01:00
twinaphex
0d729b7a5c Add 300fps/360fps modes 2020-01-07 18:29:34 +01:00
twinaphex
32911c265a Fix MSVC solutions 2020-01-07 15:27:48 +01:00
twinaphex
0128c1e0b8 (MSVC 2017) Buildfix - not yet complete 2020-01-07 00:15:15 +01:00
Twinaphex
2bee75833e
Merge pull request #125 from ToadKing/fix-emscripten
fix emscripten
2020-01-04 19:52:20 +01:00
Toad King
a6a157106c fix emscripten 2020-01-04 12:11:53 -06:00
twinaphex
74c8fb7d33 Revert auto framerate option until issues are resolved 2019-10-21 04:28:58 +02:00
Twinaphex
aca275c1c3
Merge pull request #122 from Ferk/master
Fixes for eternall.wad and musinfo
2019-10-20 03:12:36 +02:00
Fernando Carmona Varo
0d955dd93a Fix scanner not reading token if last in input
If a token is the last in the input (there's no ending newline) the
token was never being read.
2019-10-19 23:33:06 +02:00
Fernando Carmona Varo
d80b4c6ccc Some tweaks to log levels and output format 2019-10-19 16:12:47 +02:00
Fernando Carmona Varo
f09c368af0 Route Doom logging functions through libretro log 2019-10-19 15:55:42 +02:00
Fernando Carmona Varo
0d92eaafdc Add missing header guards 2019-10-19 14:54:06 +02:00
Fernando Carmona Varo
498a0c2b30 Fix some LGTM warnings 2019-10-19 14:47:52 +02:00
Fernando Carmona Varo
633374e78b Do not leave drawseg scalestep uninitialized 2019-10-19 13:27:40 +02:00
Fernando Carmona Varo
244ba7d274 Load musinfo from the corresponding map correctly 2019-10-19 13:27:32 +02:00
Twinaphex
ae955431b7
Merge pull request #121 from fjtrujy/pspSupport
PSP1 Fix compilation issue
2019-10-16 01:07:06 +02:00
Francisco Javier Trujillo Mata
38dae75c2a Include missing header in the PSP1 compilation 2019-10-16 00:50:37 +02:00
Twinaphex
739bc22324
Merge pull request #120 from Ferk/prboom+
Add MUSINFO support and support for several PrBoom+ actors/spriteframes
2019-10-12 14:44:56 +02:00
Fernando Carmona Varo
6e0baebaa8 Add MUSINFO documentation
Based on https://doomwiki.org/wiki/MUSINFO
With corrections about the use of 14100, which
is actually not supported at the moment in
ZDoom, Eternity or the original PrBoom-plus.
2019-10-12 13:42:59 +02:00
Fernando Carmona Varo
19249bf828 Be a bit more helpful when describing syntax error 2019-10-12 12:51:49 +02:00
Fernando Carmona Varo
e21b182e6c Skip invalid first level entries in umapinfo 2019-10-12 12:51:32 +02:00
Fernando Carmona Varo
2131bbf102 Updated docs with actorname and doomednum info 2019-10-12 12:29:25 +02:00
Fernando Carmona Varo
25f0f7b278 Show name on scanner errors for context 2019-10-12 03:03:13 +02:00
Fernando Carmona Varo
80ac8aa94d Add missing DONTFALL flag to Lost Souls 2019-10-12 03:03:13 +02:00
Fernando Carmona Varo
6a4c262ac7 cleanup/refactor deh Bits/Bits2 logic 2019-10-12 03:03:13 +02:00
Fernando Carmona Varo
2612e1784e log deh parsing on debug builds 2019-10-12 03:03:13 +02:00
Fernando Carmona Varo
3e068dacae Accept droppeditem as 1-based thing id
For consistency, since all dehacked thing ids start with 1 and not zero
2019-10-12 03:03:13 +02:00
Fernando Carmona Varo
b71ee82b30 Mark dogs as monsters, they already count in kill% 2019-10-12 03:03:13 +02:00
Fernando Carmona Varo
f59b102e37 Cleanup some flags
d_deh.c has some compatibility conversion so we don't need to keep
unused flags from prboom+ or preserve any specific order.

However, for clarity, try to keep same order than dehacked to avoid
confusions. Flags that are not used in dehacked were placed last in
the bit mask.
2019-10-12 03:03:13 +02:00
Fernando Carmona Varo
a2e2897684 Support Bits2 field and fix docs
To maximize forwards compatiblity in case the flags in Bits/Bits2
got shifted around in different ports, both Bits and Bits2 will
accept any of the flags when using mnemonics, and they will set
their values in the corresponding bits.

However, "Bits" will only unset (set to zero) the bits in the lower
32 bits, and "Bits2" will only unset (set zero) the second 32 bits
set. This is to prevent dehacked files that only manipulate the
first 32 bits from affecting the default values from "Bits2", which
would have otherwise held hardcoded behavior expected from Doom.
2019-10-12 03:03:13 +02:00
Fernando Carmona Varo
87b7373c54 Include additional documentation 2019-10-12 03:03:13 +02:00
Fernando Carmona Varo
199918f13c Add extra sprites, states and actors from PrBoom+
For compatibility with modern PWADs that target PrBoom+
2019-10-12 03:03:13 +02:00