Kp
699c9bc283
Fix check_header_includes=1 build
2020-05-17 23:35:25 +00:00
Kp
a431f23817
Use enumerated constant for save slot indexes
2020-04-26 17:26:23 +00:00
Kp
5fa8c06914
Add experimental support for autosaves
...
Set autosave interval to 10 minutes, unless specified in the player's
configuration file. Players can change the autosave to 0 minutes to
disable it.
2020-04-19 20:47:07 +00:00
Kp
d4c48d80b5
Fix some failures in check_header_includes=1 builds
2020-02-26 05:07:34 +00:00
Kp
7d803cf63e
Move some save/restore functions to dcx/dsx as appropriate
2019-08-06 02:59:40 +00:00
Kp
635ae0b595
Use typedef for savegame description
2019-07-28 21:09:07 +00:00
Kp
f43141f738
Use typedef for savegame file path
2019-07-28 21:09:07 +00:00
Kp
e33aaa7537
Make init_player_stats_level static
2019-07-16 04:00:50 +00:00
Kp
46644b4e91
Move Dl_indices into d_level_shared_destructible_light_state
2018-12-30 00:43:58 +00:00
Kp
aa9e6da297
Pass Dl_indices as context
2018-12-30 00:43:57 +00:00
Kp
79a4a19711
Pass player to init_player_stats_level
2017-04-30 16:25:16 +00:00
Chris Taylor
a418f8caec
Remove call to window_close(Game_wind) when multiplayer level syncing fails
...
Replace call to window_close(Game_wind) with returning window_event_result::close to game_handler. Applies to when there is a failure in net_udp_level_sync(). Closing a window within its handler is problematic - it can result in an unstable state.
2017-01-10 13:02:59 +08:00
Kp
c772385f81
Fix check_header_includes=1 Linux build
2016-08-06 19:55:24 +00:00
Kp
bad07b668e
Fix misplaced preprocessor directive
2016-01-26 03:45:06 +00:00
Kp
8e86a3586d
Use #ifdef dsx to guard dsx namespace
2016-01-09 16:38:15 +00:00
Kp
26e948d5f1
Uninline namespace dsx
2015-12-13 18:00:49 +00:00
Kp
8109379fdd
Use inline namespace dsx for similar/misc/
2015-12-13 18:00:48 +00:00
Kp
bb41075adb
Add preprocessor guards around types that vary by game
2015-11-26 02:56:55 +00:00
Kp
32b4b8f0bb
Use enum class for level save/load
2015-04-19 04:18:49 +00:00
Kp
6a4c7ed78e
Inline away D1 secret_restore values
2015-04-02 02:36:53 +00:00
Kp
030a811661
Pass nullptr for Descent 1 state_save_all filename_override
2014-12-30 02:09:23 +00:00
Kp
5f8ede8d8f
Remove state_save_old_game
...
Saving old player structure is broken since d9e2337
switched to saving
the pointer to sg_player instead of the value of sg_player. No one
reported it in 6 years, so remove it.
2014-09-17 02:45:02 +00:00
zico
ad7cb106bc
Changed custom D1X license to GPLv3
2014-06-01 19:55:23 +02:00
zico
e195290fe4
Added quick load ability for savestates
2013-12-10 18:13:32 +01:00
Kp
9de54cfa74
Switch to C++ linkage
...
import fileinput
guard = 0
cxxguard = '#ifdef __cplusplus\n'
for line in fileinput.input(inplace=True):
if line == cxxguard:
guard = 1
continue
if guard:
if line == 'extern "C" {\n':
guard = 2
continue
if line == '}\n':
guard = 0
continue
if guard == 2:
assert(line == '#endif\n')
guard = 0
print cxxguard,
continue
print line,
2013-12-06 03:35:32 +00:00
Kp
fdd2dd65c7
Use underlying type for state_game_id
...
This avoids the need for a header to declare it.
2013-10-26 03:50:27 +00:00
Kp
1d073475e7
Mark various headers for C linkage
2013-10-20 22:49:11 +00:00
Kp
00f0fddabc
Centralize handling of SysUsePlayersDir
2013-10-06 21:04:29 +00:00
Kp
06c83c9393
Move similar/main/gamecntl.c -> similar/main/gamecntl.cpp
2013-10-05 21:35:58 +00:00
Kp
c58c4e4d06
Move declarations to headers
2013-10-03 03:11:52 +00:00
Kp
a1ba420031
Mark various parameters and variables as const
2013-07-20 23:12:24 +00:00
Kp
5d487f4d4d
Move */main/state.h -> common/main/state.h
2013-03-03 01:03:33 +00:00