Commit Graph

40 Commits

Author SHA1 Message Date
rubidium 429521a7d1 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h' 2007-12-25 11:26:07 +00:00
rubidium bf98e25e43 (svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed. 2007-12-25 09:48:53 +00:00
rubidium 01e20c9140 (svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations. 2007-12-21 19:21:21 +00:00
rubidium 5f576e12aa (svn r11569) -Fix [FS#1480]: full paths sometimes did not work correctly. 2007-12-04 18:42:08 +00:00
skidd13 58bb5c7525 (svn r11480) -Codechange: Rename the function ALIGN fitting to the naming style
This fixes also FS#1450
2007-11-19 20:40:14 +00:00
rubidium 92e0bf68e3 (svn r11464) -Fix: some issue that made OpenTTD on MorphOS seriously unplayable. 2007-11-18 18:28:32 +00:00
rubidium b14c94867a (svn r11355) -Fix [FS#1377]: loading too many GRFs was not handled gracefully causing crashes and such. 2007-10-29 23:02:31 +00:00
glx 94a710fa46 (svn r11159) -Fix (r11155): restore the ability to save in a non existing file 2007-09-25 14:15:38 +00:00
glx 54fe17050b (svn r11156) -Fix r11155: fix one compiler makes the other warn ;) 2007-09-24 19:55:50 +00:00
rubidium 2408a68910 (svn r11155) -Fix [FS#1253]: work around a nasty MS CRT 8 SP1 bug making it virtually impossible to debug 32bpp games under MSVC (http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=257606). Patch by boekabart. 2007-09-24 19:15:42 +00:00
truelight 631dc06212 (svn r11119) -Codechange: analyze .tar files upon loading, remembering their files and offsets, which speeds up .tar handling with a big factor
-Fix: several win32 .tar support problems
-Fix: better checking of .tar versions and other minor things
-Codechange: don't call fclose() but FioFClose to close a file
2007-09-16 18:10:52 +00:00
truelight 6a8e5398a2 (svn r11117) -Add: add support for 7z .tar files, which are in the 'old' (deprecated) format 2007-09-15 15:38:09 +00:00
glx 17870089d0 (svn r11116) -Fix (r11106): tar loader was not compiled for WIN32 2007-09-15 15:21:17 +00:00
truelight f438dcdd67 (svn r11109) -Fix r11106: it is silly to use a std::list for something that is cleary a std::vector (less memory ;) WHOHO!) 2007-09-14 23:03:28 +00:00
truelight 5647bd5157 (svn r11106) -Add: added .tar support; you can pack all files in your data/ dir in how ever many .tar files you like, keeping the dir-structure equal to the unpacked version, and OpenTTD can handle them just like the files were unpacked
-Note: useful for GRF-packs and 32bpp PNGs. Don't forget to keep the dir-structure alive for 32bpp PNGs!
  -Note: file-loading-order: search-paths, .tar-files in the order found on disk (can be anything at all, don't depend on it.. use 'openttd -d1' to see which order they are added)
2007-09-14 22:25:00 +00:00
truelight 7648df7fb5 (svn r11100) -Fix r11099: darn typos... 2007-09-13 18:50:42 +00:00
truelight 3d0ac92267 (svn r11099) -Codechange: allow on opening of a file via FioFOpenFile to request the size of the file, so we can keep that in mind 2007-09-13 18:46:29 +00:00
truelight 8cd9ab9b7e (svn r11095) -Codechange: don't abuse 'file_pos' by storing the file_slot in it too, but use a nice seperate variable for it
-Note: on a side-note, this allows files bigger than 16+ MiB, needed for tar-support
2007-09-13 18:22:34 +00:00
truelight 3a45534e4e (svn r10715) -Fix: limited-fs code was broken 2007-07-28 12:45:27 +00:00
glx 337d56d4bb (svn r10272) -Fix (FS#916): remove more invalid characters from savegame names 2007-06-22 19:30:59 +00:00
rubidium f806b46cc9 (svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch. 2007-06-21 14:32:27 +00:00
rubidium 5938dea88d (svn r10194) -Codechange: prefer the current working directory above the user's home directory when openttd.cfg exists in the current working directory, otherwise prefer the home directory. 2007-06-17 21:26:57 +00:00
rubidium b2799961bc (svn r10188) -Codechange: make it a little easier to load a savegame from the console:
-g <absolute path>
 -g <relative path from current working directory>
 -g <relative path from within the savegame directory>
2007-06-17 20:09:05 +00:00
rubidium 347c28b71a (svn r10182) -Codechange: rewrite most part of the file loading/searching to be more flexible.
-Codechange: add support for personal directories on Windows.
-Fix [FS#153, FS#193, FS#502, FS#816, FS#854]: fix issues related to fixed names, fixed places of files/directories and application bundles.
2007-06-17 15:48:57 +00:00
truelight b7443d800b (svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
-Codechange: store the SpriteID in the spritecache too
-Add: add a PNG loader for graphical files
-Documentation: added a document to explain the PNG format
2007-06-13 16:21:11 +00:00
rubidium 73790d9cd6 (svn r10116) -Fix [FS#850]: remove invalid characters (for the file system) from savegame names. Based on a patch by TheJosh. 2007-06-12 15:46:34 +00:00
rubidium 142f2aba15 (svn r10073) -Codechange: make the NewGRF paths in the config file without any full paths (again). 2007-06-08 21:16:17 +00:00
rubidium b17a89c53d (svn r9990) -Fix: MorphOS and AmigaOS do not like "//" in filenames as that means the same as "/../" in means in Unix. 2007-05-30 18:24:54 +00:00
rubidium db91588845 (svn r9560) -Codechange: add support for multiple 'base' directories for newgrf searching.
-Codechange: do not add duplicate files to the newgrf list.
2007-04-04 12:03:10 +00:00
rubidium 5171c3fbe4 (svn r9281) -Fix [FS#687]: compile failure when compiling with 'home directories' enabled (stepancheg). 2007-03-18 18:02:24 +00:00
rubidium 7fb3b4f83e (svn r9271) -Codechange: make the language pack initialisation a little more clear and extendable (more language paths). 2007-03-17 22:21:05 +00:00
rubidium 50b2088674 (svn r9266) -Codechange: unify the retrieval of the base paths a little more. 2007-03-17 11:36:04 +00:00
rubidium 1926b9038d (svn r9130) -Codechange: move the fileio functions that do open a file into a Fio slot together. 2007-03-12 15:40:12 +00:00
rubidium 9299e76a25 (svn r9129) -Codechange: unify parts of DeterminePaths. 2007-03-12 15:25:33 +00:00
rubidium 24c4d5b06d (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; 2007-03-07 12:11:48 +00:00
rubidium 36bb92ae24 (svn r9050) -Codechange: Foo(void) -> Foo() 2007-03-07 11:47:46 +00:00
belugas b71354dc40 (svn r8987) -Cleanup: doxygen changes. Again. Mostly (still) @files missing tags and (more than just) a few comments style. 2007-03-03 04:04:22 +00:00
belugas 978d7da818 (svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style. 2007-03-01 01:24:44 +00:00
truelight 7cd68b5a07 (svn r8647) -Codechange: add a general way to handle platforms who can only have a limited amount of file-descripters open at any given time.
The Fios keeps track how many times a file is opened, and tries to close up files which aren't used often.
  The first platform using this is PSP. Patch based on the work of Turulo.
2007-02-08 23:46:25 +00:00
KUDr e373ea7096 (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp) 2007-01-10 18:12:09 +00:00
Renamed from src/fileio.c (Browse further)