summaryrefslogtreecommitdiff
path: root/win32.c
AgeCommit message (Collapse)Author
2006-06-28(svn r5393) CodeChange : Little typo correction. Nothing spectacular. Only ↵belugas
broke in MSVC
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-05-09(svn r4807) - Fix: win32 compilation was broken by r4802glx
2006-04-23(svn r4560) - Fix: (r3008) Remove VS2005 undefined vsnprintf() as it doesn't ↵Darkvater
exist in the windows libraries (only _vsnprintf). This caused the bad function to be called that could result in non-properly terminated strings. Thanks for noticing Tron.
2006-04-06(svn r4301) - Fix: the maxlength parameter of Textbuf is supposed to be the ↵Darkvater
size of the buffer (so length of string + '\0'), but in the code it was a mix of both. It didn't cause any problems though, only an occasionaly one-less character than allowed. (thanks Tron for noticing)
2006-03-31(svn r4203) - Fix compilation on mingw32 (stdint.h not included)orudge
2006-03-26(svn r4125) - Feature: Add a general TIC() TOC() mechanism using rdtsc or ↵Darkvater
something similar on non-i386 architectures to performance-tune (critical) code. Some systems are probably missing, but those can be added later.
2006-03-26(svn r4124) - CodeChange: remove windows-specific code from initializing the ↵Darkvater
random generator. There was no need for it.
2006-03-25(svn r4105) - Feature: Add proper ISO-8859-15 <> LOCALCODE conversion. As ↵Darkvater
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.
2006-03-21(svn r4001) - Add length parameter to FiosMakeSavegameName() and use this ↵Darkvater
function for creating the full path instead of home-brewn snprintf.
2006-03-14(svn r3872) - [win32] Show the revision in crash.txt and enable the button ↵Darkvater
to show the crash text in the crash-window
2006-02-01(svn r3511) More whitespace ([FS#46] by Rubidium)tron
2006-01-31(svn r3496) - Validate filename titles before they get displayed. This ↵peter1138
avoids crashes with UTF-8 encoded or bad filenames by replacing undisplayable characters with a '?'
2006-01-26(svn r3442) - Fix: Only windows has stricmp. So define strcasecmp to stricmp ↵Darkvater
when using MSVC
2005-12-16(svn r3309) Cygwin doesn't define _MSC_VER; check it exists before basing ↵peter1138
decisions on its value.
2005-11-14(svn r3181) -Bracingtron
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if
2005-11-10(svn r3163) Include header for toupper()tron
2005-10-28(svn r3097) - Fix (regression): unix has a trailing slash after the paths, ↵Darkvater
windows does not, no idea why os2 has. Way to go consistency :s. So anyways, just strip trailing slash
2005-10-28(svn r3096) - Feature: 'HOME' icon to saveload dialogs that jumps to the ↵Darkvater
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.
2005-10-18(svn r3061) - CodeChange: revert r3056, r3057 and add a simpler fix to ↵Darkvater
satisfy the needs of the absolute strict (eg. root directory is C:\ not C:)
2005-10-17(svn r3057) - (Post)Fix: fix backslash occurence in all cases, also when ↵Darkvater
going to root directory through 'parent directory', and of course don't show parent dir in root.
2005-10-17(svn r3056) - Fix: Problem on Win98 and lower when if you go to the root ↵Darkvater
directory of a drive (eg. C:\) you were stuck there indefinitely and couldn't change any directories or see any files
2005-10-17(svn r3055) Give the savegame/scenarion sort order flags symbolic namestron
2005-10-02(svn r3008) [ 1247535 ] Native Support for Win64 (compile&run only) (michi_cc)Darkvater
Fix warning in graph_gui.c with const problem
2005-09-25(svn r2984) Use adequate types, this should aid portability a bittron
2005-09-15(svn r2954) - Force assertion message to be output to a messagebox instead ↵Darkvater
to the console which MinGW32 had the habit of doing. Using undocumented (in mingw) __set_error_mode() function.
2005-08-13(svn r2864) Code simplification and diff reductiontron
2005-08-12(svn r2860) Fix some issues in the savegame/scenario list code:tron
-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
2005-08-05(svn r2809) Implement more generic threading functions, which allow more ↵tron
than one thread
2005-08-05(svn r2807) Fix two major bugs in the threaded save code:tron
- 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
2005-08-01(svn r2775) Deleting a file can fail, display an error message when it happenstron
2005-07-27(svn r2729) Fix #includetron
2005-07-27(svn r2728) -Fix/Feature: Change the driver probing algorithmtron
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.
2005-07-27(svn r2727) Fix last commit, don't asktron
2005-07-27(svn r2726) Fix last committron
2005-07-27(svn r2725) Move MyShowCursor() back into win32.c, it fits better theretron
2005-07-25(svn r2710) Simplify dedicated server code a bit and don't compile it at ↵tron
all, if network support ist disabled
2005-07-25(svn r2704) Remove . from include path again, too much trouble. Also add ↵tron
some #ifdefs and #includes for the Windows build
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-24(svn r2699) Hopefully fix the compilation on Windows when SDL is not presenttron
2005-07-24(svn r2697) Make compiling with SDL on Windows work again (missing ↵tron
#includes) and fix some warnings
2005-07-23(svn r2691) Separate dedicated video driver and fix bemidi declarationstron
2005-07-23(svn r2688) MSVC and Watcom can't handle identical file names in different ↵tron
directories, oh my...
2005-07-23(svn r2686) Revert accidently commited changetron
2005-07-23(svn r2685) -Codechange: Split the music/sound/video drivers into separate ↵tron
files and move them into subfolders. This results in shorter and hopefully easier to maintain files. Note: I had to change paths in #include statements of some unrelated files, because I added the ottd base directory to the include path (-I.)
2005-07-22(svn r2673) Include functions.h directly, not globally via openttd.htron
2005-07-22(svn r2672) Move saving/loading related declarations to saveload.htron
2005-07-21(svn r2670) Fix r2669tron
2005-07-20(svn r2650) Convert many explicit shifts+ands to extract bits to invocations ↵tron
of GB - should be a bit nicer to read
2005-07-20(svn r2649) Get rid of 2 warnings.ludde