summaryrefslogtreecommitdiff
path: root/src/saveload/oldloader.cpp
AgeCommit message (Collapse)Author
2021-05-29Codechange: rename str_validate to StrMakeValid(InPlace) (#9304)Patric Stout
This to be more explicit the function changes the value, and not returns yes/no.
2021-02-13Codechange: Don't use cpp_offsetof in the TTO/TTD savegame loader.Michael Lutz
Many of the member variables that are used in the oldloader are inside types that are not standard layout types. Using pointer arithmetics to determine addresses of members inside types that are not standard layout is generally undefined behaviour. If we'd use C++17, it is conditionally supported, which means each compiler may or may not support it. And even then using it for individual array elements is syntactically not supported the the standard offsetof function.
2020-12-27Codechange: Use std::string in file scanners.Michael Lutz
2020-12-27Codechange: Even more std::string usage in file IO.Michael Lutz
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-29Codechange: Remove PauseModeByteCharles Pigott
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2018-10-31Fix: Remove various dead or unnecessary assignmentsCharles Pigott
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-11-23(svn r26064) -Fix: possible uninitialised array when loading a broken TT-ish ↵rubidium
savegame
2013-11-23(svn r26058) -Fix: handle the return value of a number of functions betterrubidium
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2011-08-24(svn r22827) -Codechange: pass the/a more proper sub directory when opening ↵rubidium
(some) files instead of the default one
2011-01-22(svn r21890) -Cleanup: remove some unneeded includesrubidium
2010-07-30(svn r20247) -Fix: when it is known the loading an old savegame is going to ↵rubidium
fail, bail out immediately (using an exception) instead of going on until e.g. the expected number of byte is read
2010-05-13(svn r19812) -Codechange: give some unnamed enums a name or, in case they ↵rubidium
consisted of unrelated values use static const (u)int
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-09-19(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, ↵rubidium
which were sometimes missing and sometimes just typos
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-07-01(svn r16715) -Codechange: add attribute to assert_compile(), so it doesn't ↵smatz
warn when used inside function
2009-06-01(svn r16491) -Codechange: Added parentheses around bitwise operators for ↵alberth
code style.
2009-05-22(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation ↵smatz
time, binary size and run time (with asserts disabled) should be improved
2009-05-06(svn r16242) -Codechange: rework pausingrubidium
-Fix [FS#2864]: autopause and manual pausing conflict with eachother -Fix: new game + pause on new game + autopause make the game not unpause on the first join
2009-03-06(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.rubidium
2009-03-04(svn r15610) -Change: allow loading of heightmaps and savegames (any form) ↵rubidium
that are in .tar files
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-25(svn r15274) -Fix (r8705): oldloader wasn't updated to use 64bit airport_flagssmatz
2009-01-23(svn r15220) -Fix (r15216): signedness warningrubidium
2009-01-23(svn r15216) -Feature: native support for Transport Tycoon (Original) ↵smatz
savegames. Based on SVXConverter's source code and documentation by Roman Vetter
2009-01-22(svn r15211) -Fix (r15190): loading of TTD savegames was brokensmatz
2009-01-21(svn r15189) -Cleanup: remove unused includessmatz
2009-01-20(svn r15174) -Codechange: split oldloader.cppsmatz
2009-01-20(svn r15173) -Codechange: shuffle a few lines of code in oldloader.cppsmatz
2009-01-20(svn r15170) -Fix: vehicle value is 64bit now, oldloader was reading it as 32bitsmatz
2009-01-20(svn r15169) -Revert (r11271): it was broken by r12924, and the issue is ↵smatz
fixed again in r12948 in a cleaner way
2009-01-20(svn r15168) -Codechange: use only really basic map accessors in ↵smatz
oldloader.cpp, shuffle the code a bit
2009-01-19(svn r15148) -Cleanup: Remove the options "competitor start time" and ↵Yexo
"competitor intelligence" from the difficulty options because they already were unused.
2009-01-19(svn r15147) -Fix (r15146): compile before commitglx
2009-01-18(svn r15146) -Fix: show savegame name even when opening it failedsmatz
2009-01-18(svn r15145) -Fix: crash when one tried to load a TTO savegamesmatz
-Fix (r15144): it wasn't safe at all, but the code broken code isn't needed anymore
2009-01-18(svn r15144) -Codechange: make sure we don't run out of bounds while ↵smatz
determining old savegame name Note this can't happen in current code
2009-01-18(svn r15137) -Fix (r11822)(r14340): signs with sign 'Sign' were lost when ↵smatz
converting from TTD savegames
2009-01-16(svn r15116) -Fix (r1): company money weren't correctly converted from ↵smatz
TTD(P) savegames
2009-01-13(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEARsmatz
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
2009-01-12(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to ↵truebrain
see. NoAI is an API (a framework) to build your own AIs in. See: http://wiki.openttd.org/wiki/index.php/AI:Main_Page With many thanks to: - glx and Rubidium for their syncing, feedback and hard work - Yexo for his feedback, patches, and AIs which tested the system very deep - Morloth for his feedback and patches - TJIP for hosting a challenge which kept NoAI on track - All AI authors for testing our AI API, and all other people who helped in one way or another -Remove: all old AIs and their cheats/hacks
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2009-01-04(svn r14828) -Codechange: move most of save/load-specific code to separate filessmatz