From 2c762a67ab731213934f0f61d348d5dbad119dfa Mon Sep 17 00:00:00 2001 From: darkvater Date: Tue, 15 Mar 2005 12:21:15 +0000 Subject: (svn r2010) - Fix: [ 1162209 ] Fix OS/2 build (orudge) --- openttd.tgt | 416 +++++++++++++++++++++++++++++++++-------------------- os/os2/openttd.wpj | 10 +- os2.c | 12 +- 3 files changed, 273 insertions(+), 165 deletions(-) diff --git a/openttd.tgt b/openttd.tgt index 4ac1db384..07d4b689a 100644 --- a/openttd.tgt +++ b/openttd.tgt @@ -194,7 +194,7 @@ WVList 0 51 WPickList -97 +103 52 MItem 3 @@ -699,8 +699,8 @@ WVList 0 169 MItem -11 -dedicated.c +7 +debug.c 170 WString 4 @@ -717,8 +717,8 @@ WVList 0 173 MItem -14 -disaster_cmd.c +11 +dedicated.c 174 WString 4 @@ -735,8 +735,8 @@ WVList 0 177 MItem -10 -dock_gui.c +7 +depot.c 178 WString 4 @@ -753,8 +753,8 @@ WVList 0 181 MItem -12 -dummy_land.c +14 +disaster_cmd.c 182 WString 4 @@ -771,8 +771,8 @@ WVList 0 185 MItem -9 -economy.c +10 +dock_gui.c 186 WString 4 @@ -789,8 +789,8 @@ WVList 0 189 MItem -8 -engine.c +12 +dummy_land.c 190 WString 4 @@ -807,8 +807,8 @@ WVList 0 193 MItem -12 -engine_gui.c +9 +economy.c 194 WString 4 @@ -826,7 +826,7 @@ WVList 197 MItem 8 -fileio.c +engine.c 198 WString 4 @@ -843,8 +843,8 @@ WVList 0 201 MItem -5 -gfx.c +12 +engine_gui.c 202 WString 4 @@ -861,8 +861,8 @@ WVList 0 205 MItem -11 -graph_gui.c +8 +fileio.c 206 WString 4 @@ -879,8 +879,8 @@ WVList 0 209 MItem -14 -industry_cmd.c +5 +gfx.c 210 WString 4 @@ -897,8 +897,8 @@ WVList 0 213 MItem -14 -industry_gui.c +11 +graph_gui.c 214 WString 4 @@ -915,8 +915,8 @@ WVList 0 217 MItem -11 -intro_gui.c +14 +industry_cmd.c 218 WString 4 @@ -933,8 +933,8 @@ WVList 0 221 MItem -11 -landscape.c +14 +industry_gui.c 222 WString 4 @@ -951,8 +951,8 @@ WVList 0 225 MItem -10 -main_gui.c +11 +intro_gui.c 226 WString 4 @@ -969,8 +969,8 @@ WVList 0 229 MItem -5 -map.c +11 +landscape.c 230 WString 4 @@ -987,8 +987,8 @@ WVList 0 233 MItem -5 -md5.c +10 +main_gui.c 234 WString 4 @@ -1005,8 +1005,8 @@ WVList 0 237 MItem -9 -minilzo.c +5 +map.c 238 WString 4 @@ -1023,8 +1023,8 @@ WVList 0 241 MItem -6 -misc.c +5 +md5.c 242 WString 4 @@ -1041,8 +1041,8 @@ WVList 0 245 MItem -10 -misc_cmd.c +9 +minilzo.c 246 WString 4 @@ -1059,8 +1059,8 @@ WVList 0 249 MItem -10 -misc_gui.c +6 +misc.c 250 WString 4 @@ -1077,8 +1077,8 @@ WVList 0 253 MItem -11 -music_gui.c +10 +misc_cmd.c 254 WString 4 @@ -1095,8 +1095,8 @@ WVList 0 257 MItem -9 -namegen.c +10 +misc_gui.c 258 WString 4 @@ -1113,8 +1113,8 @@ WVList 0 261 MItem -9 -network.c +7 +mixer.c 262 WString 4 @@ -1131,8 +1131,8 @@ WVList 0 265 MItem -16 -network_client.c +11 +music_gui.c 266 WString 4 @@ -1149,8 +1149,8 @@ WVList 0 269 MItem -14 -network_data.c +9 +namegen.c 270 WString 4 @@ -1167,8 +1167,8 @@ WVList 0 273 MItem -18 -network_gamelist.c +9 +network.c 274 WString 4 @@ -1185,8 +1185,8 @@ WVList 0 277 MItem -13 -network_gui.c +16 +network_client.c 278 WString 4 @@ -1203,8 +1203,8 @@ WVList 0 281 MItem -16 -network_server.c +14 +network_data.c 282 WString 4 @@ -1221,8 +1221,8 @@ WVList 0 285 MItem -13 -network_udp.c +18 +network_gamelist.c 286 WString 4 @@ -1239,8 +1239,8 @@ WVList 0 289 MItem -8 -newgrf.c +13 +network_gui.c 290 WString 4 @@ -1257,8 +1257,8 @@ WVList 0 293 MItem -10 -news_gui.c +16 +network_server.c 294 WString 4 @@ -1275,8 +1275,8 @@ WVList 0 297 MItem -11 -oldloader.c +13 +network_udp.c 298 WString 4 @@ -1293,8 +1293,8 @@ WVList 0 301 MItem -11 -order_cmd.c +8 +newgrf.c 302 WString 4 @@ -1311,8 +1311,8 @@ WVList 0 305 MItem -11 -order_gui.c +10 +news_gui.c 306 WString 4 @@ -1330,7 +1330,7 @@ WVList 309 MItem 5 -os2.c +npf.c 310 WString 4 @@ -1347,8 +1347,8 @@ WVList 0 313 MItem -10 -pathfind.c +11 +oldloader.c 314 WString 4 @@ -1365,8 +1365,8 @@ WVList 0 317 MItem -12 -player_gui.c +11 +order_cmd.c 318 WString 4 @@ -1383,8 +1383,8 @@ WVList 0 321 MItem -9 -players.c +11 +order_gui.c 322 WString 4 @@ -1401,8 +1401,8 @@ WVList 0 325 MItem -7 -queue.c +5 +os2.c 326 WString 4 @@ -1420,7 +1420,7 @@ WVList 329 MItem 10 -rail_cmd.c +pathfind.c 330 WString 4 @@ -1437,8 +1437,8 @@ WVList 0 333 MItem -10 -rail_gui.c +12 +player_gui.c 334 WString 4 @@ -1455,8 +1455,8 @@ WVList 0 337 MItem -10 -road_cmd.c +9 +players.c 338 WString 4 @@ -1473,8 +1473,8 @@ WVList 0 341 MItem -10 -road_gui.c +6 +pool.c 342 WString 4 @@ -1491,8 +1491,8 @@ WVList 0 345 MItem -13 -roadveh_cmd.c +7 +queue.c 346 WString 4 @@ -1509,8 +1509,8 @@ WVList 0 349 MItem -13 -roadveh_gui.c +10 +rail_cmd.c 350 WString 4 @@ -1528,7 +1528,7 @@ WVList 353 MItem 10 -saveload.c +rail_gui.c 354 WString 4 @@ -1545,8 +1545,8 @@ WVList 0 357 MItem -12 -screenshot.c +10 +road_cmd.c 358 WString 4 @@ -1563,8 +1563,8 @@ WVList 0 361 MItem -5 -sdl.c +10 +road_gui.c 362 WString 4 @@ -1581,8 +1581,8 @@ WVList 0 365 MItem -10 -settings.c +13 +roadveh_cmd.c 366 WString 4 @@ -1599,8 +1599,8 @@ WVList 0 369 MItem -14 -settings_gui.c +13 +roadveh_gui.c 370 WString 4 @@ -1618,7 +1618,7 @@ WVList 373 MItem 10 -ship_cmd.c +saveload.c 374 WString 4 @@ -1635,8 +1635,8 @@ WVList 0 377 MItem -10 -ship_gui.c +12 +screenshot.c 378 WString 4 @@ -1653,8 +1653,8 @@ WVList 0 381 MItem -7 -signs.c +5 +sdl.c 382 WString 4 @@ -1671,8 +1671,8 @@ WVList 0 385 MItem -14 -smallmap_gui.c +10 +settings.c 386 WString 4 @@ -1689,8 +1689,8 @@ WVList 0 389 MItem -7 -sound.c +14 +settings_gui.c 390 WString 4 @@ -1707,8 +1707,8 @@ WVList 0 393 MItem -8 -sprite.c +10 +ship_cmd.c 394 WString 4 @@ -1725,8 +1725,8 @@ WVList 0 397 MItem -13 -spritecache.c +10 +ship_gui.c 398 WString 4 @@ -1743,8 +1743,8 @@ WVList 0 401 MItem -13 -station_cmd.c +7 +signs.c 402 WString 4 @@ -1761,8 +1761,8 @@ WVList 0 405 MItem -13 -station_gui.c +14 +smallmap_gui.c 406 WString 4 @@ -1779,8 +1779,8 @@ WVList 0 409 MItem -8 -StdAfx.c +7 +sound.c 410 WString 4 @@ -1797,8 +1797,8 @@ WVList 0 413 MItem -9 -strings.c +8 +sprite.c 414 WString 4 @@ -1816,7 +1816,7 @@ WVList 417 MItem 13 -subsidy_gui.c +spritecache.c 418 WString 4 @@ -1833,8 +1833,8 @@ WVList 0 421 MItem -15 -terraform_gui.c +13 +station_cmd.c 422 WString 4 @@ -1851,8 +1851,8 @@ WVList 0 425 MItem -9 -texteff.c +13 +station_gui.c 426 WString 4 @@ -1869,8 +1869,8 @@ WVList 0 429 MItem -6 -tile.c +8 +StdAfx.c 430 WString 4 @@ -1887,8 +1887,8 @@ WVList 0 433 MItem -10 -town_cmd.c +8 +string.c 434 WString 4 @@ -1905,8 +1905,8 @@ WVList 0 437 MItem -10 -town_gui.c +9 +strings.c 438 WString 4 @@ -1923,8 +1923,8 @@ WVList 0 441 MItem -11 -train_cmd.c +13 +subsidy_gui.c 442 WString 4 @@ -1941,8 +1941,8 @@ WVList 0 445 MItem -11 -train_gui.c +15 +terraform_gui.c 446 WString 4 @@ -1959,8 +1959,8 @@ WVList 0 449 MItem -10 -tree_cmd.c +9 +texteff.c 450 WString 4 @@ -1977,8 +1977,8 @@ WVList 0 453 MItem -5 -ttd.c +6 +tile.c 454 WString 4 @@ -1995,8 +1995,8 @@ WVList 0 457 MItem -18 -tunnelbridge_cmd.c +10 +town_cmd.c 458 WString 4 @@ -2013,8 +2013,8 @@ WVList 0 461 MItem -15 -unmovable_cmd.c +10 +town_gui.c 462 WString 4 @@ -2031,8 +2031,8 @@ WVList 0 465 MItem -9 -vehicle.c +11 +train_cmd.c 466 WString 4 @@ -2049,8 +2049,8 @@ WVList 0 469 MItem -13 -vehicle_gui.c +11 +train_gui.c 470 WString 4 @@ -2068,7 +2068,7 @@ WVList 473 MItem 10 -viewport.c +tree_cmd.c 474 WString 4 @@ -2085,8 +2085,8 @@ WVList 0 477 MItem -11 -water_cmd.c +5 +ttd.c 478 WString 4 @@ -2103,8 +2103,8 @@ WVList 0 481 MItem -8 -widget.c +18 +tunnelbridge_cmd.c 482 WString 4 @@ -2121,8 +2121,8 @@ WVList 0 485 MItem -8 -window.c +15 +unmovable_cmd.c 486 WString 4 @@ -2137,3 +2137,111 @@ WVList 1 1 0 +489 +MItem +9 +vehicle.c +490 +WString +4 +COBJ +491 +WVList +0 +492 +WVList +0 +52 +1 +1 +0 +493 +MItem +13 +vehicle_gui.c +494 +WString +4 +COBJ +495 +WVList +0 +496 +WVList +0 +52 +1 +1 +0 +497 +MItem +10 +viewport.c +498 +WString +4 +COBJ +499 +WVList +0 +500 +WVList +0 +52 +1 +1 +0 +501 +MItem +11 +water_cmd.c +502 +WString +4 +COBJ +503 +WVList +0 +504 +WVList +0 +52 +1 +1 +0 +505 +MItem +8 +widget.c +506 +WString +4 +COBJ +507 +WVList +0 +508 +WVList +0 +52 +1 +1 +0 +509 +MItem +8 +window.c +510 +WString +4 +COBJ +511 +WVList +0 +512 +WVList +0 +52 +1 +1 +0 diff --git a/os/os2/openttd.wpj b/os/os2/openttd.wpj index 4b391248a..2c2b542e8 100644 --- a/os/os2/openttd.wpj +++ b/os/os2/openttd.wpj @@ -34,7 +34,7 @@ VComponent WRect 0 0 -5700 +5696 4240 0 0 @@ -42,15 +42,15 @@ WRect WFileName 17 ..\..\openttd.tgt -72 -88 +38 +56 11 VComponent 12 WRect -690 +688 680 -5700 +5696 4240 0 0 diff --git a/os2.c b/os2.c index eb86bdd44..064dac66b 100644 --- a/os2.c +++ b/os2.c @@ -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; } -- cgit v1.2.3-70-g09d2