1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 08:59:09 +00:00

(svn r2010) - Fix: [ 1162209 ] Fix OS/2 build (orudge)

This commit is contained in:
darkvater
2005-03-15 12:21:15 +00:00
parent 6cbf73a666
commit 2c762a67ab
3 changed files with 273 additions and 165 deletions

12
os2.c
View File

@@ -112,8 +112,8 @@ FiosItem *FiosGetSavegameList(int *num, int mode)
while ((dirent = readdir(dir)) != NULL) {
append_path(filename, _fios_path, dirent->d_name);
if (!stat(filename, &sb) && S_ISDIR(sb.st_mode) &&
strcmp(fd.cFileName, ".") != 0 &&
strcmp(fd.cFileName, "..") != 0) {
strcmp(filename, ".") != 0 &&
strcmp(filename, "..") != 0) {
fios = FiosAlloc();
fios->type = FIOS_TYPE_DIR;
fios->mtime = 0;
@@ -239,10 +239,9 @@ FiosItem *FiosGetScenarioList(int *num, int mode)
if (dir != NULL) {
while ((dirent = readdir(dir)) != NULL) {
append_path(filename, _fios_path, dirent->d_name);
if (!stat(filename, &sb) && (S_ISDIR(sb.st_mode)
strcmp(dirent->d_name, ".") != 0 &&
strcmp(dirent->d_name, "..") != 0 &&
) {
if (!stat(filename, &sb) && S_ISDIR(sb.st_mode) &&
strcmp(filename, ".") != 0 &&
strcmp(filename, "..") != 0) {
fios = FiosAlloc();
fios->type = FIOS_TYPE_DIR;
fios->mtime = 0;
@@ -679,5 +678,6 @@ const HalMusicDriver _os2_music_driver = {
bool InsertTextBufferClipboard(Textbuf *tb)
{
// TODO
return false;
}