Rubidium
acec34a0fe
Cleanup: remove MD5SumToString in lieu of FormatArrayAsHex
1 year ago
Rubidium
d9a04ba446
Codechange: make the MD5 hash/digest/checksum variables a std::array
1 year ago
Peter Nelson
c38df2d589
Codechange: Use std::map instead of custom SmallMap.
1 year ago
Peter Nelson
83f2ad500e
Codechange: stdarg.h include not needed as cstdarg is included.
1 year ago
Rubidium
52a7c69974
Codechange: rework Gamelog changes from union to classes
1 year ago
Rubidium
a312a6c1b2
Codechange: make md5sumToString std::string compatible
1 year ago
Rubidium
51c6b8c1e4
Codechange: use fmt::format_to for gamelog message creation over seprintf
1 year ago
Tyler Trahan
6501f84b4a
Codechange: Move calendar date functions inside TimerGameCalendar ( #10753 )
1 year ago
Peter Nelson
39eff18754
Codechange: Use std::vector for gamelog GRFConfig comparisons.
1 year ago
Peter Nelson
00bf42353a
Codechange: Place gamelog into its own class, along with internal data.
...
Data is now stored in vectors to avoid manual memory management and
passing lengths around.
1 year ago
Patric Stout
31ad990831
Codechange: move tick-counter into TimerGameTick ( #10712 )
1 year ago
Tyler Trahan
066ae6f3fb
Codechange: Simplify some CodeQL-flagged trivial switches
2 years ago
Rubidium
a409e4b026
Add: documention to large functions that have too little documentation according to CodeQL
2 years ago
Rubidium
d51d08ddcb
Codechange: put stack variables in global variables for gamelog/crashlog
2 years ago
rubidium42
55a11710a6
Codechange: convert printf DEBUG statements to fmt Debug statements
3 years ago
rubidium42
bf500c39c9
Codechange: make the name of SettingDesc a std::string
3 years ago
Charles Pigott
9b800a96ed
Codechange: Remove min/max functions in favour of STL variants ( #8502 )
4 years ago
Charles Pigott
860c270c73
Codechange: Replace assert_compile macro with static_assert
4 years ago
glx
0ed00ae111
Fix: Stop any gamelog action when recovering from SlError()
4 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
6 years ago
Henry Wilson
4b349c0f90
Codechange: [core] Implement SmallVector using std::vector
...
The public and protected interface to SmallVector are unchanged
SmallVector now requires that items be default constructible
This isn't an issue since some contained items were previously created
uninitialized.
Temporary default constructors are added to the following structs
- SmallPair
- SmallStackItem
- GRFPresence
Where vector<bool> is required, transition immediately to std::vector
to avoid returning proxy object references.
6 years ago
Niels Martin Hansen
cd757ecbf4
Change: Use git revision hash (with "modified" prefix) for gamelog
6 years ago
Peter Nelson
0f37a683a2
Codechange: Additional type safety for saveload version variables.
6 years ago
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
6 years ago
rubidium
9ed12b0f07
(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
11 years ago
rubidium
4227f495c5
(svn r26508) -Codechange: use seprintf instead of a custom vstrcatprintf hybrid
11 years ago
rubidium
5b82822c12
(svn r26486) -Codechange: replace a number of snprintfs with seprintf
11 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
smatz
eb015cbfb6
(svn r23901) -Fix: memory leak everytime one clicked a savegame in the load GUI
13 years ago
yexo
433f74edd9
(svn r23065) -Add: -q option to read a savegame, write some general info and exit
13 years ago
rubidium
fb5ecb9499
(svn r22411) -Document: another bunch of bits
14 years ago
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
14 years ago
frosch
3972c790c2
(svn r20957) -Codechange: Add another parameter to FindGRFConfig() to define search restrictions.
14 years ago
frosch
6063bbf321
(svn r20955) -Fix (r20952): Suppress bogus inconsistencies for games saved while Grfs were missing.
14 years ago
frosch
375be9a073
(svn r20954) -Codechange (r20952, r20953): Don't make stuff more complicated than needed.
14 years ago
frosch
aa688689b1
(svn r20953) -Add: Resolve Grf filenames from the gamelog also using the md5sum.
14 years ago
frosch
c64d7346f8
(svn r20952) -Add: When printing the gamelog keep track of added/removed Grfs and check them for consistency.
14 years ago
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
14 years ago
rubidium
644deff9d2
(svn r20191) -Codechange: unVARDEF _tick_counter and move it to a more logical location
14 years ago
frosch
56fbbdeafd
(svn r19972) -Change: Use the md5sum from the previous save of the game for BaNaNaS instead of the initial (when the grf was added) md5sum from the gamelog. Neither method is 'better', but this way it is independent from the gamelog.
15 years ago
rubidium
062dd0e24c
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
15 years ago
rubidium
0903463824
(svn r19391) -Fix (r19255): shuffling around GRFIdentifier in GRFConfig caused gamelog to log the wrong data which could cause crashes later on when that data is queried
15 years ago
yexo
a9c8dbc0a0
(svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
smatz
114d48e492
(svn r17596) -Codechange: constify some tables
15 years ago
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
smatz
d6f4cda74e
(svn r17537) -Fix: don't crash while printing gamelog in crash handler if we crashed before while gamelog action was active
15 years ago