summaryrefslogtreecommitdiff
path: root/src/script/script_scanner.cpp
AgeCommit message (Collapse)Author
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-05-15Codechange: catch script exceptions by referenceglx
2019-05-15Fix #7590: handle script exceptions during scanningglx
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
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.
2018-12-27Fix: [Win32] WIN32 may not be defined, always prefer the compiler predefined ↵glx
macro _WIN32
2014-05-25(svn r26617) -Fix [FS#5973]: [Script] Loading/parsing of info .nuts was done ↵rubidium
in the same VM, causing e.g. constants to break the loading of info of other scripts
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2014-04-24(svn r26501) -Fix: Windows compilation errorrubidium
2014-04-23(svn r26487) -Codechange: use lastof instead of lengthof/sizeof for script namesrubidium
2014-04-23(svn r26486) -Codechange: replace a number of snprintfs with seprintfrubidium
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-06-30(svn r25546) -Fix: two small memory leaksrubidium
2012-08-20(svn r24487) -Codechange [FS#5236]: make several DoesContentExist return the ↵yexo
path instead of a boolean (LordAro)
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-19(svn r23613) -Add: allow IsDeveloperOnly in info.nut, to indicate if you can ↵truebrain
select this GS via the GUI (optional, defaults to false)
2011-12-01(svn r23386) -Fix: debug script related events to 'script' (removes 'ai')truebrain
2011-11-29(svn r23362) -Codechange: refactor AIScanner, splitting it in AIScannerInfo ↵truebrain
and AIScannerLibrary
2011-11-29(svn r23352) -Add: support dynamically adding an API prefix when returning a ↵truebrain
C++ class to Squirrel
2011-09-08(svn r22906) -Fix (r22905): variable not properly cleared before userubidium
2011-09-08(svn r22905) -Fix [FS#4753] (r22836): the name of the tar was removed from ↵rubidium
the AI filenames, so record it differently. Also removes some of the hackery to get the tar's filename
2011-09-08(svn r22904) -Codechange: add tar filename to file scanningrubidium
2011-08-25(svn r22836) -Codechange: simplify the scanning of (AI) scriptsrubidium
2010-08-26(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to ↵rubidium
some headers
2010-05-10(svn r19776) -Change: don't scan for tars in the script scanner; it has ↵rubidium
already happened.
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-03-15(svn r15736) -Codechange: Split AIScanner/AIFileInfo to the more generic ↵yexo
classes ScriptScanner/ScriptFileInfo.