summaryrefslogtreecommitdiff
path: root/src/newgrf_config.cpp
AgeCommit message (Collapse)Author
2019-03-20Remove: ENABLE_NETWORK switchPatric Stout
This switch has been a pain for years. Often disabling broke compilation, as no developer compiles OpenTTD without, neither do any of our official binaries. Additionaly, it has grown so hugely in our codebase, that it clearly shows that the current solution was a poor one. 350+ instances of "#ifdef ENABLE_NETWORK" were in the code, of which only ~30 in the networking code itself. The rest were all around the code to do the right thing, from GUI to NewGRF. A more proper solution would be to stub all the functions, and make sure the rest of the code can simply assume network is available. This was also partially done, and most variables were correct if networking was disabled. Despite that, often the #ifdefs were still used. With the recent removal of DOS, there is also no platform anymore which we support where networking isn't working out-of-the-box. All in all, it is time to remove the ENABLE_NETWORK switch. No replacement is planned, but if you feel we really need this option, we welcome any Pull Request which implements this in a way that doesn't crawl through the code like this diff shows we used to.
2017-01-14(svn r27732) -Change: Turn the message about 'missing baseset sprites' from ↵frosch
a popup into a static message that only shows in non-release versions, just like the 'missing translations' message.
2017-01-07(svn r27725) -Codechange: Remove IsOpenTTDBaseGRF and test for GCF_CONFIG ↵frosch
instead, which does the same in all use-cases.
2017-01-07(svn r27723) -Codechange: Simplify tests by using GCF_SYSTEM.frosch
2017-01-07(svn r27721) -Fix: Testing GRFs for static-safety (when reloading the ↵frosch
config) invalidated file slot 62, which may be in use by an active GRF.
2016-10-30(svn r27670) -Add: [FS#6471] Assign descriptive names to (GNU pthread) ↵frosch
threads. (JGR)
2014-11-18(svn r27063) -Fix [FS#6172]: Some lists did not use natural string sorting.frosch
2014-10-12(svn r27003) -Cleanup: fix the use of spaces and asterices "around" some ↵rubidium
comments
2014-05-24(svn r26612) -Add: Method to copy newgrf parameters.alberth
2014-04-28(svn r26538) -Codechange: remove double accounting of the driversrubidium
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
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 r26070) -Fix: prevent extremely huge size for data (1+GiB)rubidium
2013-11-23(svn r26061) -Fix: negative result of ftell wasn't handled correctly in some ↵rubidium
cases
2013-11-23(svn r26058) -Fix: handle the return value of a number of functions betterrubidium
2013-11-23(svn r26057) -Fix: a number of possibly uninitialised variablesrubidium
2012-06-01(svn r24318) -Feature: Add dropdowns to NewGRF configurations, if all values ↵frosch
have labels.
2012-02-12(svn r23935) -Codechange: generalise GetTextfilerubidium
2012-02-04(svn r23887) -Feature: [NewGRF] Support for container version 2.michi_cc
2012-01-15(svn r23807) -Codechange: GRFError::num_params is not needed, remove it.frosch
2011-12-19(svn r23601) -Fix: fix the conflict in window numbertruebrain
2011-12-11(svn r23494) -Feature: [NewGRF] action14 node INFO->URL_ to add an urlyexo
2011-11-18(svn r23249) -Feature: Also allow viewing of the other two textfiles ↵frosch
supplied by BaNaNaS tars, i.e. changelog and license.
2011-11-18(svn r23248) -Codechange: Rename everything related to the NewGRF 'readme' ↵frosch
to 'textfile', so it is more generic.
2011-11-14(svn r23222) -Codechange: reduce tar scanning calls to the bare minimumrubidium
2011-11-14(svn r23217) -Codechange: introduce the concept of scanning only in a ↵rubidium
limited set of sub directories
2011-11-10(svn r23182) -Feature: allow translatable readme filesyexo
2011-11-10(svn r23178) -Feature [FS#4780]: in-game readme.txt readmer (LordAro)rubidium
2011-09-08(svn r22904) -Codechange: add tar filename to file scanningrubidium
2011-08-24(svn r22826) -Codechange: pass sub directory to NewGRF loading functionsrubidium
2011-08-24(svn r22822) -Codechange: make a distinction between base sets and newgrfs ↵rubidium
for their directory
2011-08-24(svn r22820) -Codechange: perform a full (re)draw cycle in the first draw ↵rubidium
during progress instead of waiting 200ms
2011-08-24(svn r22819) -Fix: include the header where it should be includedrubidium
2011-08-24(svn r22818) -Fix [FS#4742] (r22796, rlongago): don't spawn threads for ↵rubidium
world generation and NewGRF scanning when using the dedicated or null video driver regardless of the used blitter
2011-08-21(svn r22800) -Fix (r22796): don't run the scanning threaded when there is no ↵rubidium
reason to do so (no UI to update)
2011-08-21(svn r22797) -Add: progress bar for scanning NewGRFsrubidium
2011-08-21(svn r22796) -Codechange: run the NewGRF scanning in a separate threadrubidium
2011-08-21(svn r22790) -Codechange: add callback for when NewGRF scanning is completerubidium
2011-08-20(svn r22771) -Codechange: unify some NewGRFScan calling coderubidium
2011-05-03(svn r22417) -Add: an advanced setting to specify the default palette to use ↵frosch
for NewGRFs without action 14 palette information; this makes the default choice independent from the used base graphics and '-i' option.
2011-05-02(svn r22410) -Document: some more bits ;)rubidium
2011-03-03(svn r22162) -Fix [FS#4533]: No update of NewGRF window when unknown GRF ↵yexo
name becomes available
2011-01-15(svn r21814) -Fix/Add: Check GRF version from action 8, and disallow usage ↵frosch
of GRFs with versions above 7.
2010-11-09(svn r21125) -Fix (r20248): static NewGRFs shouldn't be added non-statically ↵rubidium
to a game
2010-10-17(svn r20960) -Add: Allow setting 'minimal compatible version' via Action14. ↵frosch
(planetmaker) Note: Setting 'VRSN' also sets 'MINV' resulting in the Grf being only compatible to the same version. Set 'MINV' after 'VRSN' if your Grf is compatible to older versions.
2010-10-17(svn r20958) -Add: the concept of min-loadable-version to NewGRFs when ↵frosch
choosing compatbile NewGRFs. (planetmaker)
2010-10-17(svn r20957) -Codechange: Add another parameter to FindGRFConfig() to define ↵frosch
search restrictions.
2010-09-08(svn r20766) -Fix [FS#4112]: action14 data was not used for NewGRFs loaded ↵yexo
from a savegame
2010-08-26(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to ↵rubidium
some headers
2010-08-23(svn r20604) -Feature: add a reset button to the newgrf parameters windowyexo