Commit Graph

164 Commits

Author SHA1 Message Date
frosch
6b11ab49d2 (svn r27954) -Cleanup [FS#6644]: Remove unused function (M3Henry) 2017-12-27 22:07:59 +00:00
frosch
a47fb85cd8 (svn r27893) -Codechange: Use fallthrough attribute. (LordAro) 2017-08-13 18:38:42 +00:00
frosch
2f7ac7c41f (svn r27886) -Fix [FS#6575-ish]: Do not modify argv[0]. 2017-06-22 17:29:53 +00:00
rubidium
9edf5eba4e (svn r26514) -Fix: rewrite link-in-tar handling so it doesn't use strncpy and it doesn't overrun its buffers anymore 2014-04-25 21:29:54 +00:00
rubidium
034735a54c (svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL) 2014-04-25 15:40:32 +00:00
rubidium
699779324e (svn r26499) -Codechange: replace strndup with stredup 2014-04-24 18:37:39 +00:00
rubidium
5c7c2445d8 (svn r26489) -Codechange: properly account for the end of buffers in the file io code instead of assuming MAX_PATH is okay 2014-04-23 21:23:21 +00:00
frosch
24c7134bff (svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy and strecat. 2014-04-23 20:44:42 +00:00
rubidium
2be4215f43 (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 2014-04-23 20:13:33 +00:00
rubidium
bb5984a02b (svn r26114) -Fix-ish: do our best to not get bit by getenv being unsafe as hell 2013-11-25 21:50:54 +00:00
rubidium
d9a3177862 (svn r26089) -Fix: a number of minor memory leaks 2013-11-24 15:21:38 +00:00
rubidium
86621f0ff4 (svn r26087) -Fix: file descriptor leak when finding a corrupt tar 2013-11-24 15:02:05 +00:00
rubidium
e591a65ade (svn r26082) -Fix [FS#5816] (r26077): tar files with more than one file in the root directory would not be read properly (zydeco) 2013-11-24 13:00:06 +00:00
rubidium
954a141ca8 (svn r26077) -Codechange: handle strings like strings when scanning a tar instead of merely blobs of memory 2013-11-23 21:42:45 +00:00
rubidium
428faaf4ad (svn r26076) -Codechange: upgrade some C-style named structs to C++-style named structs 2013-11-23 21:31:00 +00:00
rubidium
e4b208c069 (svn r26061) -Fix: negative result of ftell wasn't handled correctly in some cases 2013-11-23 13:17:45 +00:00
rubidium
a6fae2c608 (svn r26058) -Fix: handle the return value of a number of functions better 2013-11-23 13:15:07 +00:00
rubidium
446613e868 (svn r26008) -Fix (r25975): uninitialised warning 2013-11-16 10:04:10 +00:00
rubidium
a77aa68f16 (svn r25975) -Feature [FS#5385]: XDG base directory support 2013-11-13 19:32:37 +00:00
rubidium
c4ab18c029 (svn r25974) -Codechange: make the _personal_dir global const, since once it's set it shouldn't be changed anyhow 2013-11-13 18:57:25 +00:00
frosch
b172ed3578 (svn r25291) -Add: WindowDesc ability to load and store information in a config file. 2013-05-26 19:27:22 +00:00
planetmaker
f00d9976f9 (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 2013-01-08 22:46:42 +00:00
rubidium
b89df11932 (svn r24877) -Fix: some whitespace "errors" 2013-01-01 10:52:32 +00:00
frosch
50abcf3edc (svn r24804) -Add: Separate subdirectory for screenshots. 2012-12-09 16:52:43 +00:00
rubidium
6bc634efba (svn r23983) -Fix [FS#5083]: tarred heightmaps wouldn't be found 2012-02-25 08:42:39 +00:00
truebrain
ff7797c421 (svn r23612) -Add: allow importing libraries in the same way as AI does, only with GS prefix (and in game/library) 2011-12-19 20:56:59 +00:00
truebrain
14325e2391 (svn r23605) -Add: GAME_DIR and CONTENT_TYPE_GAME, and read gamescript from that directory 2011-12-19 20:54:37 +00:00
rubidium
ffccec6d84 (svn r23234) -Fix [FS#4840]: crash when after downloading content 2011-11-16 16:54:37 +00:00
frosch
1ab0108bb9 (svn r23228) -Fix (r23227): FileScanner::Scan() still did not scan all required directories for basesets. 2011-11-15 12:14:08 +00:00
frosch
88980e11a3 (svn r23227) -Fix (r23219): The FileScanner should also consider the old directories. 2011-11-15 00:26:06 +00:00
frosch
4eb0160cf6 (svn r23226) -Fix (r23219): If you find a file, also use it. 2011-11-15 00:25:17 +00:00
rubidium
44cc20b269 (svn r23225) -Fix: create the newgrf/baseset/ai directories in the personal directory so the user has some clue where to place the different files 2011-11-14 21:58:19 +00:00
rubidium
5135e2a09e (svn r23219) -Change: different directories for basesets and newgrfs. So data to baseset or newgrf, and gm to baseset 2011-11-14 21:34:27 +00:00
rubidium
78628b590d (svn r23218) -Codechange: prepare code for a separate base set directory 2011-11-14 21:32:10 +00:00
rubidium
4d281cce97 (svn r23217) -Codechange: introduce the concept of scanning only in a limited set of sub directories 2011-11-14 21:30:37 +00:00
rubidium
9bf2cb0e86 (svn r23216) -Codechange: introduce the concept of having different tar lists 2011-11-14 21:28:43 +00:00
rubidium
33d71b45fe (svn r23198) -Codechange: introduce a free that takes const pointers so we don't need to cast to void/non-const before being able to free 2011-11-12 13:00:29 +00:00
rubidium
661e5c6655 (svn r22904) -Codechange: add tar filename to file scanning 2011-09-08 09:48:52 +00:00
rubidium
fb5a2f4485 (svn r22835) -Codechange: keep track of the subdirectory we are looking through in the file scanner 2011-08-25 10:31:35 +00:00
rubidium
33896fbffe (svn r22834) -Codechange: unify some code, and extend it to work for other filenames that should end in a particular way 2011-08-25 10:24:49 +00:00
rubidium
26788cf363 (svn r22825) -Codechange: pass subdir to FioOpenFile 2011-08-24 13:42:06 +00:00
rubidium
c8167de1c2 (svn r22822) -Codechange: make a distinction between base sets and newgrfs for their directory 2011-08-24 13:33:49 +00:00
smatz
4436588bab (svn r22719) -Fix: compilation with gcc 4.7 2011-08-04 20:04:58 +00:00
alberth
288fdb3459 (svn r22709) -Doc: Doxyment fileio.cpp. 2011-08-01 19:36:11 +00:00
alberth
ef58554bd2 (svn r22669) -Codechange: For non-windows, only test for file existence again if strtolower actually changed the name. 2011-07-16 18:43:22 +00:00
alberth
7a60662b15 (svn r22668) -Codechange: FioFindFullPath tests already whether the file exists. 2011-07-16 18:34:04 +00:00
glx
3e1bafdc0d (svn r22502) -Fix (r22501): WIN32 compilation 2011-05-28 03:23:34 +00:00
alberth
45f05f2419 (svn r22501) -Codechange: Move FileExists to a better place. 2011-05-27 21:42:51 +00:00
frosch
9027e2c49e (svn r22465) -Fix [FS#4613]: When determining the executable path failed, the working directory was used instead, circumventing the not-home-directory check. 2011-05-15 17:18:46 +00:00
alberth
3ae756f85f (svn r22460) -Doc: Semantic documentation fixes, and doxygen additions (partly by planetmaker). 2011-05-14 18:38:54 +00:00