18 Commits

Author SHA1 Message Date
Roman Fomin
1f957567a6
use compile_commands.json for Cppcheck (#1716)
* suppress memleak warnings only for u_scanner.c
2024-05-29 18:07:46 +07:00
Roman Fomin
ec600f80c3
safe exit when console is closed on Windows (#1269) 2023-11-20 11:02:49 +07:00
Julia Nechaevskaya
c642d27993
Simplify VSync toggling (#977)
* Simplify VSync toggling

* Bump required SDL version to 2.0.18

SDL_RenderSetVSync requires it, see:
https://wiki.libsdl.org/SDL2/SDL_RenderSetVSync

* remove win_version.c

---------

Co-authored-by: Roman Fomin <rfomin@gmail.com>
2023-04-09 01:41:31 +07:00
Roman Fomin
efec525b58
add Windows resources to .com file (#779)
The icon and properties don't work for .com files, but this change fixes the
window size with non-standard DPI on my system.
2022-10-26 12:27:14 +07:00
Roman Fomin
46a8b40b6f
convert main executable to .dll and add .exe and .com launchers (#772)
* convert main executable to .dll and add .exe and .com launchers
2022-10-20 19:29:09 +07:00
Roman Fomin
4bfe2d0e24
remove SDL version check for Windows 11 "freezing" issue (#714)
*  remove SDL version check
2022-09-04 16:52:22 +07:00
Roman Fomin
b8b37b7817
hack to get working console IO with Windows GUI applications (#656)
* hack to get working console IO with Windows GUI applications

* fix MSYS build

* change cppcheck command

* attempt to fix cppcheck error

* fix mingw warning

* we don't need low level code from mpv

* remove unused code
2022-07-14 09:28:14 +02:00
Roman Fomin
7b5645f597
fix "ISO C forbids empty translation unit" via CMake (#637) 2022-07-02 10:59:30 +02:00
Roman Fomin
a075557421
remove win32/stdint.h, add CI build compatible with Windows XP (#617)
* remove win32/stdint.h

* add win32 build to CI

* attempt to fix main.yml

* simplify Build step

* fix syntax

* fix syntax again

* fix indent

* fix cpack directory

* build release configuration

* don't upload SDL libs

* download official FluidSynth library for MSVC WIN32 build

* clean up old MSVC #defines/resources

* set FluidSynth_DIR only on MSVC 32-bit build

* set -verbosity:minimal for msbuild

* fix syntax

* cosmetic changes
2022-06-23 11:56:09 +07:00
Roman Fomin
467fc8c946
replace win_fopen.c with wrappers from Chocolate Doom (#592)
* replace win_fopen.c with wrappers from Chocolate Doom

* always include direct.h on Windows

* add missing header files, fix gcc warning

* move wrappers to m_io.c, formatting

* fix cmakedefine

* always include string.h

* use only strcasecmp and strncasecmp

* add missing thermo.h

* include config.h

* move str(n)casecmp define to doomtype.h
2022-06-10 07:49:38 +02:00
Roman Fomin
2a5f292262 win_fopen: fix memory leaks, formatting 2022-05-18 14:34:05 +07:00
Roman Fomin
e4bbd2b98d
check for Windows version (#509)
* check for Windows version

* fix whitespace

* actual check

* workaround from International Doom
2022-04-13 08:29:56 +02:00
Roman Fomin
30c99dd1a5
old compilers support (#400)
* better support of C89 standart

* VC6 fixes

* __pragma attribute works for _MSC_VER > 1400

* use intptr_t for char*

* C89 has no designated initializers

* correct _MSC_VER versions

* fix check

* add stdint.h for old MSVC versions

Taken from https://github.com/mattn/gntp-send/blob/master/include/msinttypes/stdint.h

* add stdint.h to miniz.h

* make packaging work without Python

* fix window_position initialization

* replace PACKED_STRUCT with i_packed_start.h i_packed_end.h

Thus, we do not use variadic macros from C99.

* undo cmake install changes

* fix icon for VC6

* remove DESCRIPTION and HOMEPAGE_URL from project()

* remove i_packed_start.h and i_packed_end.h

* whitespace fixes

* rename PACKEDPREFIX->PACKED_PREFIX and PACKEDATTR->PACKED_SUFFIX

* MINGW check doesn't work this early

* add check for minimum cmake version for MINGW targets
2021-12-29 08:41:30 +01:00
Roman Fomin
93a0909e55 add missing copyright 2021-09-01 22:51:23 +07:00
Roman Fomin
126d69e18e
remove PATH_MAX, more Unicode compatibility on Windows (#212)
* dynamic allocation for file paths

* fix FindIWADFile

* cleanup

* add missed functions to win_fopen.c

* remove remaining PATH_MAX

* cleanup

* fix typo

* add mkdir to win_fopen.c

Co-authored-by: Fabian Greffrath <fabian@greffrath.com>
2021-05-31 08:24:39 +02:00
Roman Fomin
9638975f4c
delete a savegame from menu (#206)
* delete a savegame from menu

* delete excess blank line
2021-05-21 06:11:00 +02:00
Fabian Greffrath
caf37cbe4e move win_opendir.c to the win32 directory 2021-05-04 11:51:07 +02:00
Roman Fomin
395310e0e4
unicode paths on Windows (#187)
* unicode paths on Windows

* move D_fopen() to win32 dir

* add win_fopen.c win_fopen.h
2021-05-03 12:30:19 +02:00