Commit Graph

361 Commits (a26eabc180675210cee9f30e1c69cbda5dbed7a4)

Author SHA1 Message Date
rubidium 9e7174e540 (svn r23218) -Codechange: prepare code for a separate base set directory 13 years ago
rubidium 4d281cce97 (svn r23217) -Codechange: introduce the concept of scanning only in a limited set of sub directories 13 years ago
rubidium 6d991b3b10 (svn r23217) -Codechange: introduce the concept of scanning only in a limited set of sub directories 13 years ago
rubidium 9bf2cb0e86 (svn r23216) -Codechange: introduce the concept of having different tar lists 13 years ago
rubidium 160294ff22 (svn r23216) -Codechange: introduce the concept of having different tar lists 13 years ago
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 13 years ago
rubidium 7fd1e1df81 (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 13 years ago
rubidium 661e5c6655 (svn r22904) -Codechange: add tar filename to file scanning 13 years ago
rubidium 414c397000 (svn r22904) -Codechange: add tar filename to file scanning 13 years ago
rubidium fb5a2f4485 (svn r22835) -Codechange: keep track of the subdirectory we are looking through in the file scanner 13 years ago
rubidium 672df52e0c (svn r22835) -Codechange: keep track of the subdirectory we are looking through in the file scanner 13 years ago
rubidium 33896fbffe (svn r22834) -Codechange: unify some code, and extend it to work for other filenames that should end in a particular way 13 years ago
rubidium 41169291e3 (svn r22834) -Codechange: unify some code, and extend it to work for other filenames that should end in a particular way 13 years ago
rubidium 26788cf363 (svn r22825) -Codechange: pass subdir to FioOpenFile 13 years ago
rubidium 2a12c9df2f (svn r22825) -Codechange: pass subdir to FioOpenFile 13 years ago
rubidium c8167de1c2 (svn r22822) -Codechange: make a distinction between base sets and newgrfs for their directory 13 years ago
rubidium 0061b5f184 (svn r22822) -Codechange: make a distinction between base sets and newgrfs for their directory 13 years ago
smatz 4436588bab (svn r22719) -Fix: compilation with gcc 4.7 13 years ago
smatz 564dc66131 (svn r22719) -Fix: compilation with gcc 4.7 13 years ago
alberth 288fdb3459 (svn r22709) -Doc: Doxyment fileio.cpp. 13 years ago
alberth 89c7193b8f (svn r22709) -Doc: Doxyment fileio.cpp. 13 years ago
alberth ef58554bd2 (svn r22669) -Codechange: For non-windows, only test for file existence again if strtolower actually changed the name. 13 years ago
alberth d55b380b69 (svn r22669) -Codechange: For non-windows, only test for file existence again if strtolower actually changed the name. 13 years ago
alberth 7a60662b15 (svn r22668) -Codechange: FioFindFullPath tests already whether the file exists. 13 years ago
alberth 20c2b5fdde (svn r22668) -Codechange: FioFindFullPath tests already whether the file exists. 13 years ago
glx 3e1bafdc0d (svn r22502) -Fix (r22501): WIN32 compilation 13 years ago
glx 986d5e950d (svn r22502) -Fix (r22501): WIN32 compilation 13 years ago
alberth 45f05f2419 (svn r22501) -Codechange: Move FileExists to a better place. 13 years ago
alberth 6e3ef9fa1a (svn r22501) -Codechange: Move FileExists to a better place. 13 years ago
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. 13 years ago
frosch b319fb31d5 (svn r22465) -Fix [FS#4613]: When determining the executable path failed, the working directory was used instead, circumventing the not-home-directory check. 13 years ago
alberth 3ae756f85f (svn r22460) -Doc: Semantic documentation fixes, and doxygen additions (partly by planetmaker). 13 years ago
alberth 990ec6f0a9 (svn r22460) -Doc: Semantic documentation fixes, and doxygen additions (partly by planetmaker). 13 years ago
rubidium 9ba8361f77 (svn r21247) -Fix: make the tar scanner forget about old (possibly removed) tars 14 years ago
rubidium f7b2a87292 (svn r21247) -Fix: make the tar scanner forget about old (possibly removed) tars 14 years ago
alberth 063931d435 (svn r21060) -Doc: Improved wording of comments (mostly by __ln__) 14 years ago
alberth 7e48d85104 (svn r21060) -Doc: Improved wording of comments (mostly by __ln__) 14 years ago
alberth 2b4da1d345 (svn r20689) -Codechange: Make some global functions used in 1 .cpp file static in that file. 14 years ago
alberth 9f5a96ead2 (svn r20689) -Codechange: Make some global functions used in 1 .cpp file static in that file. 14 years ago
alberth 137e2b64c9 (svn r20211) -Codechange: Indented code should have curly braces around it. 14 years ago
alberth be6c058424 (svn r20211) -Codechange: Indented code should have curly braces around it. 14 years ago
rubidium 1062330ba1 (svn r20194) -Fix: compilation with network disabled failed 14 years ago
rubidium 5b1fc7304a (svn r20194) -Fix: compilation with network disabled failed 14 years ago
rubidium 9fd2afb147 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 14 years ago
rubidium b8487afe54 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 14 years ago
rubidium 54ec48f7ce (svn r20188) -Codechange: unVARDEF the _[config|log|highscore]_file variables and move them to a more logical location 14 years ago
rubidium eb30ebe1a4 (svn r20188) -Codechange: unVARDEF the _[config|log|highscore]_file variables and move them to a more logical location 14 years ago
rubidium 0ca6c03b1e (svn r20166) -Fix [FS#3949]: do not scan /data and ~/data (if they happen to be your working directory). If it's the directory where your binary is located it will still scan them. 14 years ago
rubidium 6863b7539c (svn r20166) -Fix [FS#3949]: do not scan /data and ~/data (if they happen to be your working directory). If it's the directory where your binary is located it will still scan them. 14 years ago
yexo a0a657585e (svn r20055) -Feature: save/load hotkeys to/from hotkeys.cfg 14 years ago
yexo 258ca28819 (svn r20055) -Feature: save/load hotkeys to/from hotkeys.cfg 14 years ago
rubidium c03844c22a (svn r19779) -Change: add a return type to AppendPathSeparator and use that to determine whether we could append the path separator. If not, do not recurse into that directory as the path would exceed the maximum path length 14 years ago
rubidium 08919d2747 (svn r19779) -Change: add a return type to AppendPathSeparator and use that to determine whether we could append the path separator. If not, do not recurse into that directory as the path would exceed the maximum path length 14 years ago
rubidium 2099d3ffb8 (svn r19777) -Change: use the file scanner to find the .tars 14 years ago
rubidium 948beec597 (svn r19777) -Change: use the file scanner to find the .tars 14 years ago
smatz 258b128a56 (svn r19614) -Codechange: "it's" => "its" where appropriate 14 years ago
smatz 0ef33548c2 (svn r19614) -Codechange: "it's" => "its" where appropriate 14 years ago
rubidium f671a51666 (svn r19427) -Codechange: gracefully handle the case where we can't open a .tar file. 15 years ago
rubidium 4ba69b572d (svn r19427) -Codechange: gracefully handle the case where we can't open a .tar file. 15 years ago
rubidium 04fbf762fb (svn r19262) -Feature: finalise BaNaNaS support for music sets 15 years ago
rubidium 0f6d82df7e (svn r19262) -Feature: finalise BaNaNaS support for music sets 15 years ago
rubidium b893abb356 (svn r19248) -Fix: DOS 'port' did not compile anymore 15 years ago
rubidium 77214378ca (svn r19248) -Fix: DOS 'port' did not compile anymore 15 years ago
rubidium dd714d1e96 (svn r19151) -Codechange [FS#3625]: Move home directory to a better place in Haiku (jrepan) 15 years ago
rubidium ef90fa7d02 (svn r19151) -Codechange [FS#3625]: Move home directory to a better place in Haiku (jrepan) 15 years ago
smatz c27b069ca5 (svn r19000) -Cleanup: remove redundant check 15 years ago
smatz 2b8f7f2078 (svn r19000) -Cleanup: remove redundant check 15 years ago
rubidium 8676af5618 (svn r18834) -Fix [FS#3538]: compilation failed on OpenBSD (matze) 15 years ago
rubidium 15adbad2f4 (svn r18834) -Fix [FS#3538]: compilation failed on OpenBSD (matze) 15 years ago
rubidium 8fc7d7ca49 (svn r18611) -Fix (r18608): uppercase-to-lowercase conversion when opening a file wasn't applied when finding the full path of a file 15 years ago
rubidium 91747d72dc (svn r18611) -Fix (r18608): uppercase-to-lowercase conversion when opening a file wasn't applied when finding the full path of a file 15 years ago
smatz 0fb50708bd (svn r18032) -Codechange: add one const 15 years ago
smatz a84921f8f5 (svn r18032) -Codechange: add one const 15 years ago
glx 2e499a43a9 (svn r18029) -Fix (r18028): AppendPathSeparator() should stay global 15 years ago
glx 85a910f02e (svn r18029) -Fix (r18028): AppendPathSeparator() should stay global 15 years ago
rubidium 224f4e0197 (svn r18028) -Codechange: unglobalise some functions 15 years ago
rubidium 860b9b1cea (svn r18028) -Codechange: unglobalise some functions 15 years ago
rubidium f1f3009782 (svn r18026) -Codechange: make a lookup table static that doesn't need to be 'exported' 15 years ago
rubidium 3702746756 (svn r18026) -Codechange: make a lookup table static that doesn't need to be 'exported' 15 years ago
rubidium 7c675ce9a0 (svn r17686) -Fix [FS#3247]: make the -c <config file> location relative to the current directory instead of the directory of the binary 15 years ago
rubidium f76ef2f6ce (svn r17686) -Fix [FS#3247]: make the -c <config file> location relative to the current directory instead of the directory of the binary 15 years ago
rubidium ed8788d581 (svn r17682) -Codechange: remove erroneous space before some commas 15 years ago
rubidium e9624fe0cc (svn r17682) -Codechange: remove erroneous space before some commas 15 years ago
rubidium 310465da07 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
rubidium e8ddf001c8 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 62ee93c702 (svn r16590) -Fix [FS#2967]: don't crash when tars/newgrfs are removed, just tell the file could be opened/found. 15 years ago
rubidium 98b4f1fce2 (svn r16590) -Fix [FS#2967]: don't crash when tars/newgrfs are removed, just tell the file could be opened/found. 15 years ago
rubidium 2832d69272 (svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts. 15 years ago
rubidium 168ae6f7e2 (svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts. 15 years ago
rubidium c496a3e014 (svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it. 15 years ago
rubidium 0d99b6c71c (svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it. 15 years ago
smatz ce7dff4acc (svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
15 years ago
smatz f5316c5cbd (svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
15 years ago
rubidium 11e2ca71e6 (svn r16024) -Codechange: harden string copying on places where it's possible 15 years ago
rubidium bee930f9b3 (svn r16024) -Codechange: harden string copying on places where it's possible 15 years ago
orudge de67610a7a (svn r15745) -Fix: Resolve compile error in fileio.cpp on OS/2 - base paths on OS/2 behave much like DOS 16 years ago
orudge bcc870e3f8 (svn r15745) -Fix: Resolve compile error in fileio.cpp on OS/2 - base paths on OS/2 behave much like DOS 16 years ago
rubidium c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium c718984618 (svn r15641) -Fix: some gcc compilers seem to be chosing the C++ standard for strrchr, others the C standard... 16 years ago
rubidium f5c1365471 (svn r15641) -Fix: some gcc compilers seem to be chosing the C++ standard for strrchr, others the C standard... 16 years ago
rubidium 8a6f72d26a (svn r15615) -Feature: show scenarios/heightmaps from both your home directory and installation directory.
-Change [FS#2692]: make it more likely that scenarios are saved to the directory where openttd.cfg is and not the installation directory (gives problems with e.g. Vista). The working directory still overrides the openttd.cfg directory though, but only if it has a scenario directory.
16 years ago
rubidium 15e9fdd47a (svn r15615) -Feature: show scenarios/heightmaps from both your home directory and installation directory.
-Change [FS#2692]: make it more likely that scenarios are saved to the directory where openttd.cfg is and not the installation directory (gives problems with e.g. Vista). The working directory still overrides the openttd.cfg directory though, but only if it has a scenario directory.
16 years ago
rubidium 013e354c47 (svn r15612) -Codechange: unduplicate directory creation 16 years ago
rubidium a52d50c62f (svn r15612) -Codechange: unduplicate directory creation 16 years ago
rubidium a6ca7b8237 (svn r15610) -Change: allow loading of heightmaps and savegames (any form) that are in .tar files 16 years ago
rubidium 0d8da02ec1 (svn r15610) -Change: allow loading of heightmaps and savegames (any form) that are in .tar files 16 years ago
rubidium d82e5d205f (svn r15607) -Codechange: support searching files without filtering on extension. 16 years ago
rubidium 4f3da358ee (svn r15607) -Codechange: support searching files without filtering on extension. 16 years ago
rubidium fb978c04b1 (svn r15606) -Codechange: make it possible to not recursively search with the file scanner (i.e. only search a single directory). 16 years ago
rubidium d1d0778a54 (svn r15606) -Codechange: make it possible to not recursively search with the file scanner (i.e. only search a single directory). 16 years ago
smatz 34bfb35105 (svn r15568) -Cleanup: *allocT/AllocaM doesn't return NULL when allocating fails 16 years ago
smatz d73c1fa7bf (svn r15568) -Cleanup: *allocT/AllocaM doesn't return NULL when allocating fails 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 16 years ago
rubidium 72b0341ed0 (svn r15126) -Feature: downloading content from a central server (content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates. 16 years ago
rubidium 3a13b75e37 (svn r15126) -Feature: downloading content from a central server (content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates. 16 years ago
rubidium 3fb43b6bcb (svn r15113) -Codechange: unify calling ScanForTarFiles when determining the paths. 16 years ago
rubidium 102cc11ee9 (svn r15113) -Codechange: unify calling ScanForTarFiles when determining the paths. 16 years ago
rubidium 7c51d9f429 (svn r15112) -Fix (r15108): transform should include algorithm as that's where it's from. Furthermore not including it gives compile errors for some 16 years ago
rubidium c333790dd8 (svn r15112) -Fix (r15108): transform should include algorithm as that's where it's from. Furthermore not including it gives compile errors for some 16 years ago
rubidium 435a69da1e (svn r15111) -Fix: when scanning a path and saying it should ignore tars, it didn't do so 16 years ago
rubidium 2adcaa576f (svn r15111) -Fix: when scanning a path and saying it should ignore tars, it didn't do so 16 years ago
truebrain 47406dbc69 (svn r15108) -Fix: TarAddLink didn't lowercase strings, breaking tar-loading when using uppercase files 16 years ago
truebrain a43cd3456b (svn r15108) -Fix: TarAddLink didn't lowercase strings, breaking tar-loading when using uppercase files 16 years ago
truebrain e436f0218f (svn r15095) -Add [NoAI]: allow AI Libraries to be in .tar files (subdir required, as with AIs
-Add [NoAI]: allow multiple versions of the same AI co-exist
-Change [NoAI]: updated the whole method of AI (Library) finding and loading; it is now much more clear and transparent
-Change [NoAI]: the name of the AI is now the name used by CreateInstance()
-Change [NoAI]: make the AI finder a bit more clever, mostly related to version finding
16 years ago
truebrain ef62688522 (svn r15095) -Add [NoAI]: allow AI Libraries to be in .tar files (subdir required, as with AIs
-Add [NoAI]: allow multiple versions of the same AI co-exist
-Change [NoAI]: updated the whole method of AI (Library) finding and loading; it is now much more clear and transparent
-Change [NoAI]: the name of the AI is now the name used by CreateInstance()
-Change [NoAI]: make the AI finder a bit more clever, mostly related to version finding
16 years ago
rubidium eb19b0abf9 (svn r15082) -Codechange: make the AI library path also a searchdir instead of manually manufacturing it into a searchdir. 16 years ago
rubidium ea5457d831 (svn r15082) -Codechange: make the AI library path also a searchdir instead of manually manufacturing it into a searchdir. 16 years ago
truebrain c2406cd42d (svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to 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
16 years ago
truebrain a3dd7506d3 (svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to 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
16 years ago
rubidium 9bd1435fcf (svn r14656) -Change: replace instances of x & S_IFREG with S_ISREG(x) as S_IFREG can be 0 on some platforms. 16 years ago
rubidium bcb9a11754 (svn r14656) -Change: replace instances of x & S_IFREG with S_ISREG(x) as S_IFREG can be 0 on some platforms. 16 years ago
rubidium 5dd4735da1 (svn r14636) -Add: DOS port of OpenTTD, without network support though. 16 years ago
rubidium a614dd7174 (svn r14636) -Add: DOS port of OpenTTD, without network support though. 16 years ago
rubidium b0a9ce2d9a (svn r14635) -Change: use S_ISDIR/S_ISREG as x & S_IFREG always results false on platforms when S_IFREG is 0x0000. 16 years ago
rubidium bb25748a9d (svn r14635) -Change: use S_ISDIR/S_ISREG as x & S_IFREG always results false on platforms when S_IFREG is 0x0000. 16 years ago
skidd13 9b282b3e51 (svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible 16 years ago
skidd13 706dd0f86c (svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible 16 years ago
rubidium e7bb5c63a4 (svn r14466) -Doc: remove some obsolete parameters, fix a few parameter names in comments and add a little more doxygen documentation. 16 years ago
rubidium a999bb3227 (svn r14466) -Doc: remove some obsolete parameters, fix a few parameter names in comments and add a little more doxygen documentation. 16 years ago
rubidium 5ab74534da (svn r14414) -Fix: replace instances of strncpy with strecpy as strncpy doesn't guarantee the resulting string is '\0'-terminated. 16 years ago
rubidium e7829c1a57 (svn r14414) -Fix: replace instances of strncpy with strecpy as strncpy doesn't guarantee the resulting string is '\0'-terminated. 16 years ago
rubidium a20b833516 (svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too. 16 years ago
rubidium ea1f180a55 (svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too. 16 years ago
rubidium d452683aa6 (svn r14196) -Codechange: make the searching for files with a specific extension extendable. 16 years ago
rubidium 1afa473d0f (svn r14196) -Codechange: make the searching for files with a specific extension extendable. 16 years ago
rubidium a7d3d86f55 (svn r14069) -Fix: silence MSVC 64-bits compile warnings. 16 years ago