Commit Graph
47 Commits
Author SHA1 Message Date
Konstantin 5f181e25af vcmi: modernize lib/mapObjects 2023-02-14 14:39:56 +03:00
Konstantin b16f66477c vcmi: modernize lib/mapping 2023-02-14 14:22:13 +03:00
Konstantin e4f4eb3c1b vcmi/mapeditor: change source strings 2023-02-14 11:22:27 +03:00
Konstantin 7bfb37df4d vcmi: modernize lib/rmg 2023-02-14 02:50:39 +03:00
Konstantin 61e61420e9 vcmi/mapeditor: update translations 2023-02-14 02:31:14 +03:00
Konstantin 9675213beb vcmi: fix #1454
This is fix for this issue.
2023-02-14 02:18:15 +03:00
Konstantin 203b7ed364 vcmi: russian translation 2023-02-12 22:05:25 +03:00
Konstantin f0bfce29a0 vcmi: modernize lua v2 2023-02-12 21:23:00 +03:00
Konstantin bdd976cc1e vcmi: modernize spell effects v2 2023-02-12 21:23:00 +03:00
Konstantin 97fc424e98 vcmi: modernize lib/spells (except adventure one, needs major rework) 2023-02-12 21:23:00 +03:00
Konstantin 8661496f6c vcmi: modernize lib/serializer 2023-02-12 21:23:00 +03:00
Konstantin 6d8eac320d vcmi/client: add missing include to GUIclasses.cpp
Fix building with clang++ version 15.
2023-02-12 19:11:24 +03:00
Konstantin 0627e1ecaa vcmi: remove unused variables from lib/rmg 2023-02-12 19:11:24 +03:00
Konstantin 3cf303f1c7 vcmi/client: make ColorRGBA constexpr
1. Replace overflowing int3 to ColorRGBA, which is more semantically
   correct
2. Make ColorRGBA constexpr, to make sure than hardcoded colors can
   be initialized in compile time
2023-02-12 19:11:24 +03:00
Konstantin 038db5c71b vcmi: make int3 as constexpr class
This allows us to calculate distances and check const vector validity
at compile time
2023-02-12 19:00:43 +03:00
Konstantin b30d23d278 vcmi: make ConstTransitivePtr always init self. 2023-02-12 17:59:06 +03:00
Konstantin 286c1e522e vcmi: modernize netpacks 2023-02-09 20:22:48 +03:00
Konstantin e82cc56ddb vcmi: modernize lib/spells/effects 2023-02-08 15:38:26 +03:00
Konstantin 976c5e7bd4 vcmi: modernize lua 2023-02-08 13:51:22 +03:00
Konstantin cb3723b54c vstd: pass separators and input by reference
It removes many cases of redundnant string copying
2023-02-05 18:07:56 +03:00
Konstantin fb38050f9b vcmi: build lua with STRICT_COMPILATION
This is a fixes for some LUA warnings for building it with strict
compilation.
2023-02-05 12:18:09 +03:00
Konstantin 7b8aebe4e3 vcmi: deprecate MAXED_SPELL
It is almost identical to SPECIAL_FIXED_VALUE_ENCHANT.

Replace its usage in JSON and inside deprecated converter
to SPECIAL_FIXED_VALUE_ENCHANT. Remove buggy string inside
getEffectLevel.
2023-02-04 16:23:03 +03:00
Konstantin 4feab69867 mapeditor: use vcmi_endian.h
There is no need to redefine this functions, let's use shared
implementation
2023-02-03 00:39:44 +03:00
Konstantin 88ef83db53 client: remove SDL_BYTEORDER usage
Make use of CMake endian checking in this places too.
2023-02-03 00:37:37 +03:00
Konstantin cffdabf48e lib: replace SDL usage to Boost one
It is safer and header-only, and can be removed after C++23 is accepted.
There is no need for SDL in non-GUI.
2023-02-02 23:58:22 +03:00
Konstantin 70786f4963 lib: remove unused header
This an unused header with empty class. Just remove it.
2023-02-02 23:50:50 +03:00
Konstantin 47457e61cc mapeditor: russian translation
This is a complete russian translation of map editor.
2023-01-29 22:40:15 +03:00
Konstantin f577b7240b launcher & editor: use qt_add_translations for Qt6
This will make possible to run update_translations target on
Qt6 build of VCMI
2023-01-29 22:40:15 +03:00
Konstantin 848e858312 launcher: russian translation
This is mostly finished russian translation
2023-01-29 22:40:15 +03:00
Konstantin 080d4b13dd vcmi: suppress warning on IOS
Let CI passes on develop.
2023-01-29 21:30:37 +03:00
Konstantin 2aaaa5a05a CMakeLists.txt: check CMAKE_SYSTEM_PROCESSOR
Check CMAKE_SYSTEM_PROCESSOR when generating NSIS package.
This allows us correctly determine install dir on Windows
2023-01-27 00:11:17 +03:00
Konstantin f31ec77e1c docs/conan.md: add Windows instructions
Add instructions for building a Windows binaries from Linux in Conan
2023-01-27 00:11:17 +03:00
Konstantin 38ebb62c3e conan: build for 64-bit windows by default
This was strongly suggested by VCMI developers.
2023-01-27 00:11:17 +03:00
Konstantin 30784477e0 CMakeLists.txt: strip on package if no debuginfo is requested
It significantly reduces size of the executable
2023-01-26 23:50:08 +03:00
Konstantin d62d5a83ab CMakeLists.txt: fix compilation with latest TBB on 22.04
It has a config file only for None build type. Map this as fallback
for all build types.
2023-01-26 23:50:08 +03:00
Konstantin bd0c7c2b54 vcmi: add before_install.sh
For now, it uses pregenerated deps from my repository, but
should be transitioned to vcmi one after PR is finished
2023-01-26 23:50:08 +03:00
Konstantin 57b93e00ca github/workflows: add conan-win32 workflow
This will not work for now, but added for future proof
2023-01-26 23:49:54 +03:00
Konstantin a24ec53df2 vcmi: enable Conan builds for cross-compiling Win
This patch enables usage of Conan for cross-compiling Windows
builds instead of MXE.
2023-01-26 23:49:00 +03:00
Konstantin f0cb8b63c7 lib/CGameInterface.cpp: add MinGW workaround
MinGW returns all dynamic library functions as FARPROC, which need
to be cast to actual signatures, and this casts emits
-Wcast-function-type.
So, silence it for GetProcAddress.
2023-01-26 23:49:00 +03:00
Konstantin cf56f7ccce vcmi: remove unused-but-set-variables 2023-01-26 23:49:00 +03:00
Konstantin 3ea4e8c249 AI/CMakeLists.txt: disable some errors for FuzzyLite
It generates false positives on MinGW due to Fuzzylite errorneous
assuming than Windows=MSVC.
2023-01-26 23:49:00 +03:00
Konstantin a7bd7232ce CGuiHandler: fix false positive dangling pointer
Making this an auto variable fixes compilation with Werror.
2023-01-25 17:14:41 +03:00
Konstantin f93c9277c6 lib/filesystem: rename CreateFile to createFile
In MinGW, there is a define which replaces all CreateFile to
CreateFileA or CreateFileW and breaks compilation. Fix it.
2023-01-25 12:13:34 +03:00
Konstantin 45bdacb119 mac: use stable ffmpeg for CI 2022-05-14 13:22:41 +03:00
Konstantin 8757a577e3 CVideoHandler: fix codecContext according to docs 2022-05-14 13:22:41 +03:00
Konstantin e7b753c222 CVideoHandler: use new ffmpeg 2022-05-14 13:22:41 +03:00
Konstantin 988374444c vcmibuilder: fix data dir not found on GoG extract 2022-04-28 10:54:52 +03:00