Commit Graph

23 Commits

Author SHA1 Message Date
Jonathan G Rennison
5294f1d7f7 Debug: Change output format of scope_dumper::VehicleInfo 2024-01-06 16:04:02 +00:00
Jonathan G Rennison
f034714559 Use StringBuilder for GetString/GetStringWithArgs, as per upstream
Update dependent code as required
2024-01-05 21:12:54 +00:00
Jonathan G Rennison
61e7b8c52a Debug: Include vehicle type and unit number in scope_dumper::VehicleInfo 2021-02-01 17:30:41 +00:00
Jonathan G Rennison
002e99ac34 Debug: Show tile info on separate lines in vehicle debug window 2020-07-09 17:40:00 +01:00
Jonathan G Rennison
60dabc68a0 Add a scope info logger for DoSetViewportPosition calls 2020-04-27 17:21:11 +01:00
Jonathan G Rennison
cbdd9f84d8 Merge branch 'master' into jgrpp
# Conflicts:
#	src/console_gui.cpp
#	src/lang/korean.txt
#	src/video/sdl2_v.cpp
#	src/video/sdl2_v.h
#	src/window.cpp
#	src/window_gui.h
2019-11-12 18:43:10 +00:00
Jonathan G Rennison
674732cd68 Merge: Codechange: Use null pointer literal instead of the NULL macro 2019-04-11 18:14:13 +01:00
Jonathan G Rennison
884fa9a9d4 Support effect and disaster vehicles in scope_dumper::VehicleInfo 2019-02-15 21:05:30 +00:00
Jonathan G Rennison
8128d027c0 Fix wrong return value in scope_dumper::TileInfo 2018-12-20 12:53:59 +00:00
Jonathan G Rennison
5661763d6a Merge branch 'crashlog_improvements' into jgrpp 2018-07-26 19:04:34 +01:00
Jonathan G Rennison
8805ab8387 Add tile info dump method to scope_dumper 2018-07-26 18:52:47 +01:00
Jonathan G Rennison
943af5bf0d Merge branch 'crashlog_improvements' into jgrpp
Fixes compilation on MSVC
2018-07-25 08:15:09 +01:00
Jonathan G Rennison
e2a4e51725 Enable use of scope_dumper without scope info logging enabled 2018-07-25 08:13:15 +01:00
Jonathan G Rennison
943f4fdabb Debug: Add train and RV flags to scope info dump
Move flag dumping to separate function
2018-06-05 18:54:59 +01:00
Jonathan G Rennison
4aa211e454 Merge branch 'crashlog_improvements' into jgrpp 2018-05-31 23:04:47 +01:00
Jonathan G Rennison
bb8c18b017 Add scope info logging to LoadUnloadStation 2018-05-31 23:04:24 +01:00
Jonathan G Rennison
faf4cdc0f4 Scope info: Add station/waypoint info dumper 2018-05-31 18:36:12 +01:00
Jonathan G Rennison
1615137481 Adjust format of vehicle scope dumping 2018-01-29 00:14:55 +00:00
Jonathan G Rennison
27ac2f5894 Scope info: Adjust formatting of vehicle dump info 2017-06-21 21:10:22 +01:00
Jonathan G Rennison
f80bebae7c Scope info: Log whether vehicle pointer is a virtual vehicle. 2016-12-18 00:47:11 +00:00
Jonathan G Rennison
cbc35e8aae Try to make scope info logging more robust.
Add checks for validity of Vehicle ptrs in scope_dumper::VehicleInfo.
In Unix mode, try to handle SIGSEGVs when dumping scope info.
2016-02-25 19:21:06 +00:00
Jonathan G Rennison
0062881a46 Avoid using malloc in scope guard logger.
Use a temporary object with its own buffer, which lives on the stack.

Reformat SCOPE_INFO_FMT to not be all on one line.
Other minor reformatting.
2016-02-25 00:20:31 +00:00
Jonathan G Rennison
5cf2b04f6a Initial implementation of scope guard logging for including in crash logs.
This adds a mechanism to create scope guards with an associated std::function
which is called to output diagnostic info in the event of a crash.
Add a macro to make it easy to efficiently capture variables on the stack
and output a formatted message.
Requires C++11, #ifdefed out for legacy compilers.
2016-02-17 22:41:07 +00:00