minetest/src/client
Oblomov 0d91ef78dd
Refactor local time getter functions (#12221)
This commit introduces mt_localtime() in src/gettime.h, a wrapper
around the OS-specific thread-safe versions of localtime()
(resp. localtime_s on Windows and localtime_r in other systems).

Per the Open Group recommendation,
«portable applications should call tzset() explicitly before using
ctime_r() or localtime_r() because setting timezone information is
optional for those functions», so we also do a one-shot
call of tzset() (_tzset() on Windows to avoid warning C4996).

The function is used to replace the localtime() calls in
getTimestamp() and makeScreenshot().

(The only reminaing call to localtime() in the tree now is the one in
the local copy of the Lua source code.)
2022-04-28 18:53:33 +02:00
..
meshgen Move client-specific files to 'src/client' (#7902) 2018-11-28 20:01:49 +01:00
render Implement shadow offsets for the new SM distortion function (#12191) 2022-04-14 22:49:30 +02:00
shadows Implement shadow offsets for the new SM distortion function (#12191) 2022-04-14 22:49:30 +02:00
CMakeLists.txt Spacing fixes 2022-04-08 14:55:21 +01:00
activeobjectmgr.cpp ContentCAO: Fix segfault on quit (attached) 2019-10-09 20:03:31 +02:00
activeobjectmgr.h Add an activeobject manager to hold active objects (#7939) 2018-12-13 20:18:54 +01:00
camera.cpp Rework drawtime and related timekeeping code to use microseconds 2022-01-27 22:30:02 +01:00
camera.h Rework drawtime and related timekeeping code to use microseconds 2022-01-27 22:30:02 +01:00
client.cpp Refactor local time getter functions (#12221) 2022-04-28 18:53:33 +02:00
client.h Add API to control shadow intensity from the game/mod (#11944) 2022-03-26 16:58:26 +01:00
clientenvironment.cpp Split liquid_viscosity to liquid_viscosity and move_resistance (#10810) 2021-10-01 16:21:24 +02:00
clientenvironment.h Attachments: Fix attachments to temporary removed objects (#8989) 2019-10-02 19:11:27 +02:00
clientevent.h Add bold, italic and monospace font styling for HUD text elements (#11478) 2021-07-27 19:11:46 +02:00
clientlauncher.cpp Fix compiler warnings 2022-04-08 14:55:21 +01:00
clientlauncher.h Drop --videomodes, fullscreen_bpp and high_precision_fpu settings 2021-06-16 17:41:34 +02:00
clientmap.cpp Spacing fixes 2022-04-08 14:55:21 +01:00
clientmap.h Adjust shadowmap distortion to use entire SM texture (#12166) 2022-04-07 22:13:50 +02:00
clientmedia.cpp Dynamic_Add_Media v2 (#11550) 2021-09-09 16:51:35 +02:00
clientmedia.h Print announce error response (#11878) 2022-01-01 22:44:56 +01:00
clientobject.cpp Move client-specific files to 'src/client' (#7902) 2018-11-28 20:01:49 +01:00
clientobject.h fix: some code tidy about includes & irr namespaces 2021-05-03 19:49:19 +02:00
clientsimpleobject.h Move clientsimpleobject.h to client folder (#9630) 2020-04-10 20:10:51 +02:00
clouds.cpp Fix cloud fog being broken for high clouds 2021-05-29 11:44:31 +02:00
clouds.h Allow resetting celestial vault elements by leaving its arguments empty (#11922) 2022-01-22 12:42:49 +01:00
content_cao.cpp upright_sprite: Fix walk animation in first person (#12194) 2022-04-15 18:55:08 +02:00
content_cao.h Improve lighting of entities. 2022-03-07 23:45:26 +01:00
content_cso.cpp Merge pull request #8776 from osjc/FixGetNode 2019-08-10 19:45:44 +02:00
content_cso.h Move client-specific files to 'src/client' (#7902) 2018-11-28 20:01:49 +01:00
content_mapblock.cpp Fix worldaligned textures 2022-04-24 21:11:24 +02:00
content_mapblock.h Add wallmounted support for plantlike and plantlike_rooted nodes (#11379) 2021-07-15 21:19:59 +02:00
event_manager.h Darwin platform build fix (#10376) 2020-09-09 19:12:03 +02:00
filecache.cpp Server pushing media at runtime (#9961) 2020-06-13 19:03:26 +02:00
filecache.h Server pushing media at runtime (#9961) 2020-06-13 19:03:26 +02:00
fontengine.cpp Fully remove bitmap font support (#11863) 2022-01-08 14:53:25 +01:00
fontengine.h Fully remove bitmap font support (#11863) 2022-01-08 14:53:25 +01:00
game.cpp Remove HW_buffer_counter after IrrlichtMt fix to remove HWBufferMap (#12232) 2022-04-28 18:52:19 +02:00
game.h Rework drawtime and related timekeeping code to use microseconds 2022-01-27 22:30:02 +01:00
gameui.cpp Show unknown node in debug screen (#12230) 2022-04-28 18:51:46 +02:00
gameui.h Rework drawtime and related timekeeping code to use microseconds 2022-01-27 22:30:02 +01:00
guiscalingfilter.cpp Use Irrlicht functions to query npot texture support 2021-05-05 22:49:44 +02:00
guiscalingfilter.h Make bgcolor tint button background images (#9818) 2020-08-29 16:41:19 +01:00
hud.cpp Allow to set the displayed item count and its alignment via meta (#8448) 2022-02-10 06:17:52 -05:00
hud.h Show status message when changing block bounds (#11556) 2021-08-21 13:53:49 +02:00
imagefilters.cpp Spacing fixes 2022-04-08 14:55:21 +01:00
imagefilters.h Enable cleanTransparent filter for mipmapping and improve its' algorithm (#11145) 2021-04-20 19:50:19 +02:00
inputhandler.cpp Fix movement in random_input mode (#11592) 2021-09-05 19:58:50 +02:00
inputhandler.h Restore pass-through of direction keys (#11924) 2022-01-09 18:46:36 +01:00
joystick_controller.cpp Add joystick layout for DragonRise GameCube controller (#11467) 2021-10-31 19:17:47 +01:00
joystick_controller.h Joystick sensitivity for player movement (#11262) 2021-08-27 20:24:24 +02:00
keycode.cpp Irrlicht support code maintenance 2021-03-31 13:15:47 +02:00
keycode.h Revert "Replace MyEventReceiver KeyList with std::unordered_set" (#10622) 2020-11-12 19:16:02 +01:00
keys.h Add a key to toggle map block bounds (#11172) 2021-04-20 19:23:31 +02:00
localplayer.cpp Fix footsteps for players whose collision box min y != 0 (#12110) 2022-03-14 21:01:18 +01:00
localplayer.h Add API to control shadow intensity from the game/mod (#11944) 2022-03-26 16:58:26 +01:00
mapblock_mesh.cpp Remove HW_buffer_counter after IrrlichtMt fix to remove HWBufferMap (#12232) 2022-04-28 18:52:19 +02:00
mapblock_mesh.h Add depth sorting for node faces (#11696) 2022-04-02 10:42:27 +02:00
mesh.cpp Avoid possible buffer overflow when checking face normals 2022-03-07 23:45:26 +01:00
mesh.h Remove a few unused functions reported by callcatcher (#11658) 2021-10-12 20:12:20 +02:00
mesh_generator_thread.cpp Add more neighbors on mesh update (#6765) 2021-12-29 22:59:53 +01:00
mesh_generator_thread.h Add more neighbors on mesh update (#6765) 2021-12-29 22:59:53 +01:00
minimap.cpp refacto: RenderingEngine is now better hidden 2021-05-03 19:49:19 +02:00
minimap.h Remove dead code (#10845) 2021-01-22 15:09:26 +00:00
particles.cpp refacto: RenderingEngine::get_scene_manager() is now not callable from singleton 2021-05-03 19:49:19 +02:00
particles.h Implement spawning particles with node texture appearance 2020-05-23 22:52:21 +02:00
renderingengine.cpp Touch UI support for desktop builds (#10729) 2021-09-26 18:04:09 +02:00
renderingengine.h Revert "Disable dynamic shadows for the 5.5.0 release" (#12032) 2022-01-31 21:48:14 +00:00
shader.cpp Fix compiler warnings 2022-04-08 14:55:21 +01:00
shader.h Fix deprecated calls with Irrlicht 1.9 2021-03-16 23:27:15 +01:00
sky.cpp Revert "Disable dynamic shadows for the 5.5.0 release" (#12032) 2022-01-31 21:48:14 +00:00
sky.h Add API to control shadow intensity from the game/mod (#11944) 2022-03-26 16:58:26 +01:00
sound.cpp Cleanup sound manager class (#7158) 2018-03-24 15:45:25 +01:00
sound.h Cleanup sound manager class (#7158) 2018-03-24 15:45:25 +01:00
sound_openal.cpp OpenAL: Free buffers on quit 2021-08-03 20:29:55 +02:00
sound_openal.h Cleanup sound manager class (#7158) 2018-03-24 15:45:25 +01:00
tile.cpp Fix '[combine' when EVDF_TEXTURE_NPOT is disabled. (#12187) 2022-04-16 18:50:59 +02:00
tile.h Add depth sorting for node faces (#11696) 2022-04-02 10:42:27 +02:00
wieldmesh.cpp Improve lighting of entities. 2022-03-07 23:45:26 +01:00
wieldmesh.h Shadow mapping render pass (#11244) 2021-06-06 18:51:21 +02:00