Commit Graph

89 Commits

Author SHA1 Message Date
k3tamina 5d8cd0ebdf Defined SDL_MAIN_HANDLED to solve link error 2022-05-29 12:11:02 +02:00
k3tamina 3c666b480c Reorganize variables scope for goto 2022-05-29 11:47:18 +02:00
k3tamina 954a45bc75 More fixes for MinGW 2022-05-29 11:44:14 +02:00
k3tamina f55adc4ec5 Fix for MinGW 2022-05-29 11:38:17 +02:00
k3tamina a9fb6b8aec Rewriting functions to obtain cross platform compatibility 2022-05-28 23:56:34 +02:00
k3tamina 72e8dba4e3 Merge branch 'main' of https://github.com/alexbatalov/fallout2-ce 2022-05-28 23:55:37 +02:00
Alexander Batalov 6929e054a9 Reorganize variables scope for goto
Fixes AppleClang complaints.

See #17
2022-05-29 00:32:50 +03:00
Jan Šimek 86c0585efc
Provide filepath compatibility layer (#22)
Co-authored-by: Alexander Batalov <alex.batalov@gmail.com>
2022-05-29 00:22:40 +03:00
Alexander Batalov 442e0a17ab Provide splitpath/makepath compatibility layer
See #17
2022-05-28 23:17:48 +03:00
k3tamina 46c5f370de Merge branch 'main' of https://github.com/alexbatalov/fallout2-ce 2022-05-28 21:22:58 +02:00
Alexander Batalov 5ce83bc29d Reorganize includes 2022-05-28 21:46:58 +03:00
Alexander Batalov 220fb1a196 Decompile interface font byte swap functions
See #17
2022-05-28 21:39:47 +03:00
Alexander Batalov 14ce3994ce Replace min/max macro
See #17
2022-05-28 14:45:48 +03:00
Alexander Batalov 17dc61b782 Make randomGetSeed cross-platform
See #17
2022-05-28 14:08:00 +03:00
Alexander Batalov 6ae1afc57c Make file find utils cross-platform
See #17
2022-05-28 14:01:52 +03:00
Alexander Batalov 451e73293b Add missing include 2022-05-28 12:49:55 +03:00
Alexander Batalov bf9b865efd Add missing include 2022-05-28 12:48:26 +03:00
Alexander Batalov b1216967c0 Replace MAX_PATH with COMPAT_MAX_PATH 2022-05-28 12:34:49 +03:00
Alexander Batalov 4bac829739 Add string functions compatibility layer
See #17
2022-05-28 11:57:32 +03:00
Alexander Batalov e1cf71eac7 Add overwrite param (#20) 2022-05-28 11:29:45 +03:00
Jan Šimek 23c0d3b873
Replace CopyFileA with a cross-platform function (#20)
Co-authored-by: Alexander Batalov <alex.batalov@gmail.com>
2022-05-28 10:38:16 +03:00
k3tamina 4a53e5c5ae Merge branch 'main' of https://github.com/alexbatalov/fallout2-ce 2022-05-28 09:29:50 +02:00
Alexander Batalov 6714aebbad Replace GetTickCount with SDL_GetTicks 2022-05-28 09:32:36 +03:00
Alexander Batalov 31dbf77d6d Use C++ 17 2022-05-28 09:28:11 +03:00
Alexander Batalov 40a43422a3 Reorganize sdl2 config 2022-05-28 08:36:22 +03:00
Alexander Batalov 456fd43d8a Reorganize zlib config 2022-05-28 08:36:00 +03:00
Alexander Batalov 7174cc703d Reorganize fpattern config 2022-05-28 08:35:23 +03:00
Alexander Batalov 119cfe8212 Remove static assertions
They were aid to decompilation, now they are source of complaints when compiling for x64.
2022-05-28 07:34:29 +03:00
Alexander Batalov 7a1119bac0 Use C++ noreturn attribute 2022-05-28 07:26:08 +03:00
Jan Šimek 49f0d833ab
Fix help and end game window positions (#21) 2022-05-28 06:57:53 +03:00
Jan Šimek ad1fb7765b
Remove the use of stdbool (#19)
It should not be needed anymore after the migration to C++
2022-05-28 06:55:42 +03:00
k3tamina f1416da4a9 ISO C++ forbids converting a string constant to char* 2022-05-26 22:37:50 +02:00
Alexander Batalov b467198f16 Introduce sfall config 2022-05-26 00:16:20 +03:00
Alexander Batalov bc8db9e8c2 Get rid of command line args
With new `main` it's no longer needed to collect argc/argv from cmdline.
2022-05-25 23:05:51 +03:00
Jan Šimek 0672161a47
Replace WinMain with the main function (#16)
Co-authored-by: Alexander Batalov <alex.batalov@gmail.com>
2022-05-25 22:41:11 +03:00
Jan Šimek da1808961b
Add StartingMap configuration option from Sfall (#15)
Closes #14
2022-05-25 22:15:04 +03:00
Alexander Batalov a2698b220c Get rid of DirectDraw 2022-05-24 23:19:36 +03:00
Alexander Batalov 2446621719 Rename tile stuff 2022-05-24 01:37:46 +03:00
Alexander Batalov 21101ef355 Fix window surface cache
Closes #1
2022-05-24 00:18:41 +03:00
Alexander Batalov 2d54e41fdb Fix tile border calculation
See #9
2022-05-23 22:41:54 +03:00
Jan Šimek 03b5771e8f
Fix mouse clicking around interface if IFACE_BAR_MODE is enabled (#12)
See #3
2022-05-23 22:24:05 +03:00
Alexander Batalov c634499a87 Get rid of DirectInput
See #1
2022-05-23 11:44:49 +03:00
Alexander Batalov 24b229aec9 Force LF on .cc 2022-05-23 11:25:22 +03:00
Alexander Batalov 99ddcd3d0e Fix save game preview
See #3
2022-05-23 11:16:04 +03:00
JordanCpp 1f8a62f2b6
Add fps limit (#10) 2022-05-23 11:13:28 +03:00
Jan Šimek 0c61f74ba9
Fix indicator bar position (#7)
Closes #6
2022-05-22 13:55:49 +03:00
Alexander Batalov be81049ff5 Fix inventory window position
See #3
2022-05-22 13:33:41 +03:00
Alexander Batalov 1267b8ddfb Fix movie positioning
See #3
2022-05-21 23:04:08 +03:00
Jan Šimek 86d8a92ce0
Add IFACE_BAR_MODE configuration option from HRP (#5)
See #3
2022-05-21 21:30:25 +03:00
Alexander Batalov 6725edcf5f Fix main menu underlay window position
See #3
2022-05-21 21:06:13 +03:00