Commit Graph

49 Commits (d155f182acc63d3eaea1f31ec13faae6955bfc47)

Author SHA1 Message Date
Darkvater e3685faad0 (svn r4105) - Feature: Add proper ISO-8859-15 <> LOCALCODE conversion. As the mess that is makefile can't properly support it at the moment, it is only available for MACOSX. Windows doesn't need FS conversion and I have no idea about OS/2 so it's disabled for them.
- CodeChange: Change the function GetCurrentLocale(). It returns the locale from some default environment-variables, plus a custom one defined as parameter. If all fail, it tries $LANG.
19 years ago
Darkvater 413dd85cd7 (svn r4001) - Add length parameter to FiosMakeSavegameName() and use this function for creating the full path instead of home-brewn snprintf. 19 years ago
peter1138 0ad6dc9cc2 (svn r3496) - Validate filename titles before they get displayed. This avoids crashes with UTF-8 encoded or bad filenames by replacing undisplayable characters with a '?' 19 years ago
Darkvater 4cc9761cb5 (svn r3097) - Fix (regression): unix has a trailing slash after the paths, windows does not, no idea why os2 has. Way to go consistency :s. So anyways, just strip trailing slash 19 years ago
Darkvater 71fb375f8c (svn r3096) - Feature: 'HOME' icon to saveload dialogs that jumps to the default save/load directory based on the dialog (added icon to openttd.grf, introduced FIOS_TYPE_DIRECT that allows arbitrary directory jumping).
- Fix: on Win32 capitalize the drive-letter in the saveload dialog windows when it is first opened.
19 years ago
tron 0b936c3222 (svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
19 years ago
tron c042fd3de3 (svn r3055) Give the savegame/scenarion sort order flags symbolic names 19 years ago
tron ec0ebea3d7 (svn r2864) Code simplification and diff reduction 19 years ago
tron 207700ac36 (svn r2860) Fix some issues in the savegame/scenario list code:
-Fix: Sort the directories when making a scenario list
-Fix: Sort the directories when making a savegame list on Windows
-Fix: On OS/2 show the trailing \ if the current directory is a root directory
-Regression: On OS/2 the savegame list showed the scenario directory or crashed (probably introduced in r2609)
The rest is diff reduction between the 3 variants
19 years ago
tron f315c95fa1 (svn r2809) Implement more generic threading functions, which allow more than one thread 19 years ago
tron 484fae74a2 (svn r2807) Fix two major bugs in the threaded save code:
- Do not dereference a local variable which no longer exists; this lead to random crashes when saving
- (Win32) Do not close a handle before it is used last
There are still many major problems (race conditions and resulting memory corruption/crashes) left
19 years ago
tron 062472161a (svn r2806) Remove unnecessary #includes 19 years ago
tron 984a4c68d6 (svn r2775) Deleting a file can fail, display an error message when it happens 19 years ago
tron 5fd69294ee (svn r2728) -Fix/Feature: Change the driver probing algorithm
Instead of trying to start a single driver and bailing out if that fails, try to initialise one by one and use the first one which succeeds.
This should fix problems on machines with no sound card, where -s null had to be specified manually.
19 years ago
tron 030b4c2704 (svn r2710) Simplify dedicated server code a bit and don't compile it at all, if network support ist disabled 19 years ago
tron 647cbd6bdd (svn r2701) Insert Id tags into all source files 19 years ago
tron 8100d06caa (svn r2694) Various smaller changes: eol-style, static, code simplification 19 years ago
tron 393f4b2149 (svn r2691) Separate dedicated video driver and fix bemidi declarations 19 years ago
orudge 3ebab651af (svn r2690) - Minor cleanups to os2.c and hal.h 19 years ago
orudge b7d4beb440 (svn r2689) - Split OS/2 music driver into os2_m.c, update project file 19 years ago
orudge 2838934486 (svn r2681) - Fix OS/2 port, please do not modify openttd.wpj/tgt by hand unless you know what you're doing! 19 years ago
Darkvater cda6efd919 (svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders. 19 years ago
orudge 922b9dd7f3 (svn r2399) - Fix: Update OS/2 project file with filename changes
- Fix: Make clipboard code a bit nicer (thanks Tron)
19 years ago
Darkvater a8601e9f40 (svn r2398) - CodeChange: forgot to update unix and os2 specific files as well. 19 years ago
orudge b9a6b80813 (svn r2396) - Fix: Put strcasecmp back into os2.c, sorry Tron! 19 years ago
orudge d89ab10ba2 (svn r2394) - Completed clipboard functions for OS/2 port 19 years ago
orudge fb1b0896dc (svn r2393) - Implemented threaded saving for OS/2
- Fixed discrepancy with SlArray declaration
19 years ago
matthijs abdf4ead87 (svn r2321) - Fix: [ 1202286 ] On OS/2 you get a double backslash in your filename after browsing to the root dir of a drive and "." and ".." are incorrectly displayed. (orudge) 19 years ago
Darkvater a4e17642a8 (svn r2103) - Fix: Remove unnused variable from OS2 file 20 years ago
darkvater d643ca6271 (svn r2100) - Fix: [1024703]: Infinite access for A:\ (win32). Patch [1171208]. Only requery drive(s) if the user changes a directory, also surpress the OS error box that pops up on some windows machines. Tron + glx (and me) 20 years ago
tron 79530aa7fe (svn r2084) Set the name for drive items 20 years ago
tron 5acfb5ec6f (svn r2076) Set the name for the parent directory to ".." 20 years ago
celestar 2c1d712268 (svn r2028) Added detection of SVN version (rev.c generation) for OS/2, updated readme, initial clipboard support (orudge) 20 years ago
tron 0cb2ba49eb (svn r2012) When making a savegame name, don't append the extension, if it is already there 20 years ago
darkvater bf895a03d2 (svn r2010) - Fix: [ 1162209 ] Fix OS/2 build (orudge) 20 years ago
tron fa9506b191 (svn r1999) r1990 broke savegame deletion, fix that [1161729] 20 years ago
tron 87535e52db (svn r1990) Reduce the diff between the OS specific files with respect to file handling and fix some inconsitencies (I hope I didn't break the OS/2 part, couldn't test it, feedback is welcome) 20 years ago
Darkvater bb7b7c0e14 (svn r1986) - Fix: free _config_file when shutting down openttd. Strange that Valgrind didn't catch this, kudos to TrueLight
- Feature (small): new command-line option -c <config_file>. You can have OpenTTD load alternative config files with this setup, handy for servers, or for saves from other players if you don't want to rename your own config. This will have to do until all game-related settings are saved ingame. Couldn't find the SF patch, so credits to the guy that wrote it.
20 years ago
Darkvater fb78ca8a62 (svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
- Codechange: Introduction of Textbuf struct which not only holds physical data as length but also pixel-constrains (width) and information about the caret
- Codechange: Move Clipboard function to OS specific file. Currently only Windows has clipboard actions
- Feature: Editboxes, console and exit screen also accept the numeric-enter as a yes
- Feature: Navigation through text with cursor keys is possible, as well as arbitrary insertion (also paste) and deletion; both backspace and del keys. Functions DeleteTextBufferChar, InsertTextBufferChar and InsertTextBufferClipboard handle input and deletion. Navigation is done through MoveTextBufferPos.
- Fix: OTTD crash when opening 'add server' editbox
- CodeChange: fix up some stringwidth calculations in gfx.c. You can get the width in pixels of a character by calling GetCharacterWidth().
20 years ago
tron 3608b72a36 (svn r1850) Change the last consumers of str_buffr so they use local static buffers now and remove the global array str_buffr. 20 years ago
tron 701a32d048 (svn r1840) Repel str_buffr and use local buffers where possible 20 years ago
tron 59fa465dce (svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics 20 years ago
tron 7cac482a73 (svn r1805) Teach the driver layer a few things about const correctness 20 years ago
tron 2eb7aedf69 (svn r1402) Trim trailing whitespace 20 years ago
truelight c476b34b23 (svn r1289) -Fix: Minor fix for OS/2 message boxes (orudge) 20 years ago
truelight fe16ef6637 (svn r1281) -Fix: the OS/2 is now finished. Fixes:
- Networking
  - File selector issue
  - Keyboard input
  - Dedicated server console issue (use dedicated.cmd to open a server)
  - Plus many other minor issues
20 years ago
darkvater 9cd50c54fa (svn r1271) -Fix: set eol-style to native on missing files
-Added known_bugs file with open bugs on SF..should be included with installer
-Updated installer for 0.3.5
20 years ago
truelight 4395293d9f (svn r1249) -Fix: new files in the last commit had double content 20 years ago
truelight dfc5fdbb92 (svn r1248) -Add: initial OS/2 support (read docs/ReadMe_OS2.txt) (orudge)
Works fine, beside some minor stuff:
  - Network is not working yet
  - Keyboard is not working
  - No MIDI support
  - 'A few file selector bugs involving drives'
20 years ago