Darkvater
f87c8834e2
(svn r7449) -Codechange: Rename _path to _paths as it is technically more correct, but mainly because
...
it interferes with OS/2 symbol in libc (psmedley)
18 years ago
Darkvater
4e71091137
(svn r7274) -Codechange [utf8]: Add input/output unicode support. This actually only changes win32
...
since it uses UTF16 for file access. To keep os-specific code to a minimum, OpenTTD
uses UTF8 internally everywhere, converting to OS-type when needed (save/load/screenshot/etc.)
18 years ago
rubidium
d14ac4478d
(svn r6086) -Fix: InteractiveRandom was not seeded properly resulting in the dedicated server always generating the same map. Thanks to the #openttdcoop team for detecting.
18 years ago
truelight
10b842bddc
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
...
- New optional landscape generator (TerraGenesis Perlin)
- Load heightmaps (either BMP or PNG)
- Progress dialog while generating worlds (no longer a 'hanging' screen)
- New dialogs for NewGame, Create Scenario and Play Heightmap
- Easier to configure your landscape
- More things to configure (tree-placer, ..)
- Speedup of world generation
- New console command 'restart': restart the map EXACTLY as it was when you
first started it (needs a game made after or with this commit)
- New console command 'getseed': get the seed of your map and share it with
others (of course only works with generated maps)
- Many new, world generation related, things
- Many internal cleanups and rewrites
Many tnx to those people who helped making this:
Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic)
Many tnx to those who helped testing:
Arnau, Bjarni, and tokai (alfabetic)
And to all other people who helped testing and sending comments / bugs
Stats: 673 lines changed, 3534 new lines, 79 new strings
18 years ago
Darkvater
a9251d2d02
(svn r5767) - Cleanup: Improve upon the header file mess regarding fios. Move all relevant types from hal.h into fios.h, eliminate the unneccessary passing of a global variable, and extern variables in header files (declare in fios.c and misc_gui.c
18 years ago
Darkvater
198f6caf20
(svn r5766) - Cleanup: Unify FiosBrowseTo and FiosGetDescText
18 years ago
Darkvater
525a0ad4c0
(svn r5765) - Codechange: Fully unify the OS-specific FiosGet...List functions into fios.c, as well as FiosGetSavegameList and FiosGetScenarioList functions with the help of some callbacks.
18 years ago
Darkvater
ee7b3de2f5
(svn r5764) - Cleanup: - Cleanup: Move the now unified FiosAlloc, compare_FiosItems, FiosFreeSavegameList, FiosMakeSavegameName, FiosDelete and FileExists to newly created file fios.c where it belongs.
...
- Fix: forgot to remove GetLanguageList from functions.h in previous commit
18 years ago
Darkvater
b5e3718ac4
(svn r5763) - Cleanup: Move the now unified GetLanguageList and comparator function to strings.c where it belongs.
18 years ago
Darkvater
bca8e9ad4e
(svn r5761) - Cleanup: Really minor whitespace changes, and remove an extern from a function decleration in header file.
18 years ago
Darkvater
9e69df03a7
(svn r5760) - Codechange: Use a define for case-string comparison in OS/2 instead of function.
18 years ago
tron
2b27073156
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
18 years ago
peter1138
6aa73acb30
(svn r4808) - Fix GetCharacterWidth() change in os2.c missed in r4802.
19 years ago
Darkvater
9b5d8a9921
(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
7656bf8075
(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
9fd6b1009e
(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
9bbf8ea9d0
(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
f561993112
(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
2cc2154ad2
(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
23ecc82ad3
(svn r3055) Give the savegame/scenarion sort order flags symbolic names
19 years ago
tron
bdd5d4ebb1
(svn r2864) Code simplification and diff reduction
19 years ago
tron
bdff0fa2d2
(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
4696ef802a
(svn r2809) Implement more generic threading functions, which allow more than one thread
19 years ago
tron
a86e9689df
(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
647fe2e866
(svn r2806) Remove unnecessary #includes
19 years ago
tron
fc5e2d4861
(svn r2775) Deleting a file can fail, display an error message when it happens
19 years ago
tron
5821529859
(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
84f78ea44a
(svn r2710) Simplify dedicated server code a bit and don't compile it at all, if network support ist disabled
19 years ago
tron
a227065ab7
(svn r2701) Insert Id tags into all source files
19 years ago
tron
86a76d735e
(svn r2694) Various smaller changes: eol-style, static, code simplification
19 years ago
tron
4a14350711
(svn r2691) Separate dedicated video driver and fix bemidi declarations
19 years ago
orudge
60d2232c60
(svn r2690) - Minor cleanups to os2.c and hal.h
19 years ago
orudge
1e70ba752e
(svn r2689) - Split OS/2 music driver into os2_m.c, update project file
19 years ago
orudge
c50223526c
(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
80aa8c868b
(svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders.
19 years ago
orudge
e8c6b8feca
(svn r2399) - Fix: Update OS/2 project file with filename changes
...
- Fix: Make clipboard code a bit nicer (thanks Tron)
20 years ago
Darkvater
81ac4ac152
(svn r2398) - CodeChange: forgot to update unix and os2 specific files as well.
20 years ago
orudge
62c96b52a0
(svn r2396) - Fix: Put strcasecmp back into os2.c, sorry Tron!
20 years ago
orudge
4719bb0c6e
(svn r2394) - Completed clipboard functions for OS/2 port
20 years ago
orudge
5f652e632b
(svn r2393) - Implemented threaded saving for OS/2
...
- Fixed discrepancy with SlArray declaration
20 years ago
matthijs
89587c1d51
(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)
20 years ago
Darkvater
eb96f89960
(svn r2103) - Fix: Remove unnused variable from OS2 file
20 years ago
darkvater
6bca4c041a
(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
aba225c88d
(svn r2084) Set the name for drive items
20 years ago
tron
742513d708
(svn r2076) Set the name for the parent directory to ".."
20 years ago
celestar
fe8313159a
(svn r2028) Added detection of SVN version (rev.c generation) for OS/2, updated readme, initial clipboard support (orudge)
20 years ago
tron
3763ec7652
(svn r2012) When making a savegame name, don't append the extension, if it is already there
20 years ago
darkvater
2c762a67ab
(svn r2010) - Fix: [ 1162209 ] Fix OS/2 build (orudge)
20 years ago
tron
70be35f319
(svn r1999) r1990 broke savegame deletion, fix that [1161729]
20 years ago
tron
d755b7908e
(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