summaryrefslogtreecommitdiff
path: root/src/base_media_func.h
AgeCommit message (Collapse)Author
2021-06-13Codechange: convert printf DEBUG statements to fmt Debug statementsrubidium42
2021-04-27Codechange: [Network] Do not leak os_abstraction.h via base_media_func.hrubidium42
2020-12-27Codechange: Use std::string in file scanners.Michael Lutz
2020-12-27Codechange: Stringify config file paths.Michael Lutz
2020-12-14Codechange: Apple LLVM fails to implement std::optional::value() also on ↵frosch
pretty recent version. Use operator* instead.
2020-05-21Codechange: Store base set related texts in std::strings.Michael Lutz
2020-05-21Codechange: Use std::string in INI file parsing.Michael Lutz
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-05-01Fix: IniLoadFile::LoadFromDisk expects filename but BaseMedia::AddFile ↵Berbe
provided full path (#7348)
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-06-27Codechange: Silence -Wclass-memaccess warnings with GCC8Charles Pigott
2018-06-23Fix: Make switch on MD5File::ChecksumResult complete to avoid compiler warningAlberth
2018-06-15Fix: Don't complain if CAT music files are missing entirelyNiels Martin Hansen
Just complain if an index into a CAT file that exists is invalid.
2018-04-21Fix: Warning about base set template instantiations with clangCharles Pigott
2014-06-09(svn r26637) -Fix [FS#6038]: segmentation fault when encountering a ↵rubidium
.obg/.obs/.obm with empty string/zero length/ MD5 checksums
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2013-11-23(svn r26073) -Cleanup: unneeded check against NULLrubidium
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-29(svn r24870) -Change: make the duplicate base set message slightly more ↵rubidium
verbose, and mention files with wrong md5 checksums or files that are missing explicitly
2012-08-23(svn r24496) -Fix [FS#5276]: Make sure all template functions are ↵frosch
instantiated by at least one compilation unit.
2012-08-20(svn r24487) -Codechange [FS#5236]: make several DoesContentExist return the ↵yexo
path instead of a boolean (LordAro)
2012-02-04(svn r23886) -Codechange: Allow limiting the MD5 file hash to the first x ↵michi_cc
bytes of the file.
2011-11-14(svn r23219) -Change: different directories for basesets and newgrfs. So ↵rubidium
data to baseset or newgrf, and gm to baseset
2011-11-14(svn r23214) -Codechange: for base media sets pass the "search in tars" ↵rubidium
parameter to determine what to do
2011-09-08(svn r22904) -Codechange: add tar filename to file scanningrubidium
2011-08-24(svn r22824) -Codechange: pass sub directory to ini loadingrubidium
2011-05-02(svn r22413) -Document: even more stuffrubidium
2011-01-18(svn r21844) -Codechange: move documentation towards the code to make it ↵rubidium
more likely to be updates [a-c].
2010-08-23(svn r20607) -Fix: retain information about all base sets that are found and ↵rubidium
not only the latest version. This to stop confusing people that use newer versions of the base sets than those available via BaNaNaS.
2010-04-19(svn r19674) -Fix [FS#3774]: crash when the music/graphics metadata files ↵rubidium
were unreadable
2010-02-22(svn r19212) -Fix: base graphics set with an empty filename in the obg file ↵yexo
caused segfaults
2010-02-22(svn r19206) -Add: concept of fallback base sets, i.e. do not automatically ↵rubidium
load the NoMusic/NoSound sets when there is another set
2010-02-14(svn r19132) -Codechange: No need to end a line with ;;.alberth
2010-02-11(svn r19095) -Fix: segfault when a baseset has an empty metadata fieldyexo
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2009-12-22(svn r18608) -Change: add the concept of music setsrubidium
2009-10-17(svn r17790) -Feature: translatable base sound/graphics set descriptionsrubidium
2009-08-26(svn r17291) -Fix [FS#3147]: crash after upgrading base graphics/sound set ↵rubidium
when opening the game options menu and you were using the upgraded set
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-20(svn r17241) -Change: make a distinction between missing and corrupted data ↵rubidium
files. If (at least) one data file is missing do not consider the set to be useable. Do also no autodetect sets with missing files.
2009-08-09(svn r17133) -Codechange: generalise the code that searches for base graphicsrubidium