1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
Commit Graph

274 Commits

Author SHA1 Message Date
Ivan Savenko
1120f16d33 Add separate on/off icons for submods with disabled parent mod 2024-11-26 13:55:46 +00:00
Ivan Savenko
9742f3a110 Initialize submods / mods settings on new mod install 2024-11-26 13:55:46 +00:00
Ivan Savenko
915bd0bd35 Import mod preset from 1.5 data if no preset exists 2024-11-26 13:55:46 +00:00
Ivan Savenko
c57120f0dd Initial support for mod presets system 2024-11-26 13:55:46 +00:00
Laserlicht
10da13729c
fix boost 2024-11-05 02:00:26 +01:00
Laserlicht
42059d18c3 fix chronicles 2024-11-04 23:30:56 +01:00
Ivan Savenko
1687606a4b
Merge pull request #4726 from wb180/vcmiqt_lib
Separate vcmiqt static lib
2024-10-07 17:37:51 +03:00
Evgeniy Meshcheryakov
40576e9bb9 Separate vcmiqt lib 2024-10-07 08:47:00 +03:00
Laserlicht
2d60252e4c read from mapheader; move chr to subfolder 2024-09-24 21:41:37 +02:00
Ivan Savenko
43666ec987
Merge pull request #4627 from Laserlicht/chronicles_config
avoid warnings if not installed chronicles
2024-09-21 17:46:55 +03:00
Laserlicht
417fb8d434 avoid warnings if not installed chronicles 2024-09-19 22:14:23 +02:00
Laserlicht
743cee7470 simplify usage of ttf font 2024-09-14 21:34:39 +02:00
Laserlicht
7655149d52 code review (second part) 2024-09-02 23:36:42 +02:00
Laserlicht
609906f015 code review (first part) 2024-09-02 22:51:30 +02:00
Laserlicht
79d549951b mobile fix 2024-09-01 13:39:40 +02:00
Laserlicht
e31ace2661 make sonar cloud (a little bit) happy 2024-09-01 02:16:03 +02:00
Laserlicht
9b3a5c7925 fix 2024-09-01 00:43:45 +02:00
Laserlicht
0250c19dd8 portrait fix 2024-09-01 00:41:16 +02:00
Laserlicht
e5f05d61ae audio mapping 2024-08-31 23:44:36 +02:00
Laserlicht
c803e8011b overrides 2024-08-31 23:13:40 +02:00
Laserlicht
0280254810 tarnum icon 2024-08-31 22:05:36 +02:00
Laserlicht
23652a8ba1 async launcher 2024-08-31 18:46:45 +02:00
Laserlicht
9c2a5f6baa window 2024-08-31 17:16:42 +02:00
Laserlicht
2cfea598c2 fixes & simplify 2024-08-31 16:27:39 +02:00
Laserlicht
0b8f92250d extract additional images 2024-08-31 15:25:45 +02:00
Laserlicht
e4ec26e613 override 2024-08-31 13:15:07 +02:00
Laserlicht
a89a1efa89 extract campaign to map folder 2024-08-31 12:14:51 +02:00
Laserlicht
bc2e9ce510 extract files 2024-08-31 02:52:34 +02:00
Laserlicht
0e500efe5a extract lod 2024-08-31 00:44:20 +02:00
Laserlicht
b1de501716 innoextract extraction 2024-08-30 22:20:33 +02:00
Laserlicht
452aa1218d chronicle installer selection 2024-08-30 21:17:18 +02:00
Ivan Savenko
1aa391fdf8 Split CGeneralTextHandler file into 1 file per class form
All text processing code is now located in lib/texts.
No changes other than code being moved around and adjustment of includes

Moved without changes:
Languages.h           -> texts/Languages.h
MetaString.*          -> texts/MetaString.*
TextOperations.*      -> texts/TextOperations.*

Split into parts:
CGeneralTextHandler.* -> texts/CGeneralTextHandler.*
                      -> texts/CLegacyConfigParser.*
                      -> texts/TextLocalizationContainer.*
                      -> texts/TextIdentifier.h
2024-07-20 12:55:17 +00:00
Alexander Wilms
70e309c4f9
CModListView::loadScreenshots(): Check isValid() instead of row() and column()
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2024-07-19 12:38:42 +02:00
Alexander Wilms
4f06aed631 CModListView::loadScreenshots(): Ensure a mod is selected in allModsView
Fixes #989
Fixes #3811
2024-07-18 22:33:48 +02:00
Alexander Wilms
f2a1b47229 CModListView::CModListView(): Set background color of QSplitter to window color for seamless appearance 2024-07-17 10:50:39 +02:00
Ivan Savenko
6b8f94e6e7 Merge remote-tracking branch 'vcmi/master' into develop 2024-07-11 17:43:44 +00:00
Andrey Filipenkov
98cda246a2 [launcher] call Install From File button handler asynchronously 2024-07-10 21:41:26 +03:00
Andrey Filipenkov
5d9c1f986f [launcher] treat manually selected/dropped file as a file path instead of URL
fixes file installation on Android
2024-07-08 16:10:44 +03:00
Ivan Savenko
5bc103f50e Show message to player instead of crashing silently on extraction error 2024-06-27 09:58:53 +00:00
Alexander Wilms
02e429e973 Fix typos using https://github.com/crate-ci/typos
Changes were reviewed manually
2024-06-24 03:47:19 +02:00
Ivan Savenko
2d98ec708c
Merge pull request #4098 from IvanSavenko/launcher_settings_update
Launcher settings update
2024-06-10 18:21:17 +03:00
Ivan Savenko
1f7b916a1c Minimize width of mod filter dropdown & reload button to give more space
for mod name filter
2024-06-08 16:31:43 +00:00
Ivan Savenko
604701ad13 Shorten text to fit better on mobile systems 2024-06-08 16:02:14 +00:00
Ivan Savenko
7893f97646 Remove version from mod list in launcher 2024-06-08 16:00:45 +00:00
Ivan Savenko
9de6023224 Removed no longer needed pseudo-languages 2024-06-08 15:31:40 +00:00
Ivan Savenko
a33a37b1a4
Merge pull request #4100 from IvanSavenko/launcher_fix_drag_lag
Fix lag on dragging mod list in Launcher on Android
2024-06-08 16:56:38 +03:00
Ivan Savenko
f105a66736
Merge pull request #4107 from IvanSavenko/mod_install_fix
Mod install fixes
2024-06-08 13:48:49 +03:00
Ivan Savenko
e3ed4eda44 Fix lag on dragging mod list in Launcher on Android
Tested by enabling dragging on desktop. According to profiler, most of
time was spent on generating mod information. Cheap to do once, but it
looks like Qt does this A LOT.

Added simple caching & reduced copying. Seems to be working fine on PC,
but not yet confirmed whether same goes for mobile
2024-06-08 10:47:57 +00:00
Laserlicht
ed6ab19818 [launcher] add more places for finger scrolling 2024-06-08 00:10:03 +03:00
Andrey Filipenkov
99eb5b67cc [launcher] add option to ignore SSL errors
affects fetching mods list
2024-06-08 00:10:02 +03:00
Andrey Filipenkov
8cee8b72a6 [launcher] build for Android
also embeds icons and translations as Qt resources instead of reading from disk
2024-06-08 00:09:04 +03:00
Ivan Savenko
79ce3c7a0e Enable dependencies first before enabling newly downloaded mod
Also handles the case when mod dependency is scheduled to be enabled
only after dependent mod
2024-06-07 15:05:02 +00:00
Ivan Savenko
476beb5145 Do not attempt to install mods not available in repo, such as submods 2024-06-07 15:03:45 +00:00
Ivan Savenko
f13d7b2a50 Regenerated translations 2024-05-01 15:29:11 +03:00
Ivan Savenko
412a456ed0 Clarified some strings 2024-05-01 13:46:39 +03:00
Ivan Savenko
09a233acba Added missing strings to Qt translations 2024-05-01 12:49:46 +03:00
Ivan Savenko
62d15ed23c
Merge pull request #3820 from IvanSavenko/bugfixing
Bugfixing
2024-04-23 13:03:36 +03:00
Ivan Savenko
ba3137582b
Merge pull request #3797 from Laserlicht/install_from_file
Install from file button in launcher
2024-04-23 12:06:54 +03:00
Ivan Savenko
7d6b936a9d Do not reset mod model (and selected mod) when screenshots are loaded 2024-04-22 12:34:25 +03:00
Laserlicht
04f5ad5f89 Code Review 2024-04-21 17:07:10 +02:00
Laserlicht
eb59950186 Code review 2024-04-21 12:13:50 +02:00
Laserlicht
ba7d57bce5 button size 2024-04-21 01:35:14 +02:00
Laserlicht
58c542059d allow to replace json config 2024-04-21 01:32:31 +02:00
Dydzio
3f7062b81f Fix build 2024-04-20 23:05:37 +02:00
Dydzio
c6e4ef2a78 mods: Ignore submod conflicts for install, Ignore compatibility patches for enabling 2024-04-20 22:48:54 +02:00
Laserlicht
95267d8f0b
+All supported files 2024-04-20 15:31:13 +02:00
Laserlicht
19f606e84b
Install from file; add translation strings; fix button size 2024-04-20 00:26:58 +02:00
Evgeny Malygin
ee42527ee1
Fixes 2024-03-29 12:28:14 +02:00
Evgeny Malygin
25125f96da
Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
Andrey Filipenkov
74ecbec1c7 get rid of CLauncherDirs global static
std::call_once causes crash
2024-03-20 05:52:25 +03:00
Ivan Savenko
c3957c2c2a Moved json files to new directory, split on per-class basis 2024-02-14 13:08:24 +02:00
Ivan Savenko
6e399eb21a Make some non-const static variables const or constexpr 2024-02-12 13:22:54 +02:00
Ivan Savenko
2a193effcc Merge branch 'master' into 'develop' 2024-01-25 16:23:13 +02:00
Ivan Savenko
be47c66c57 Ignore hidden mods when checking mod dependencies 2024-01-23 12:57:38 +02:00
Ivan Savenko
bd5682ecc3 Merge remote-tracking branch 'vcmi/master' into develop 2024-01-19 13:49:54 +02:00
Alexander Wilms
1b85abb508 Use auto instead of redundant type in initializations using new
grep -r --include \*.h --include \*.cpp "=" * | grep -v "auto\|int\|char\|bool\|float|\double\|for\|if\|googletest\|fuzzylite\|size_t\|using\|return\|{\|}\|= \"\|= tr(\|virtual\|void" | grep -Po ".*[^ ]+ [^ ]+ [^ ]*[ ]*=.*;" | grep -v "float\|nullptr" | grep "new" | grep -v "AI/FuzzyLite" | grep \( | grep "= new" > redundant_types.txt

import re

with open("redundant_types.txt") as f:
    for line in f:
        line = line.strip()
        path = line.split(":", 1)[0]
        original_code = line.split(":")[1].strip()
        if "new " in original_code:

            cpp_type = original_code.split(" ")[0]
            if original_code.count(cpp_type) == 2:
                print()
                print(path)
                print(original_code)
                new_code = "auto "+" ".join(original_code.split(" ")[1:])
                print(new_code)

                with open(path, "r") as f:
                    filedata = f.read()

                filedata = filedata.replace(original_code, new_code)

                with open(path, "w") as f:
                    f.write(filedata)
2024-01-16 21:40:53 +00:00
Laserlicht
dcf9c78a2e
code review 2023-12-25 22:41:15 +01:00
Laserlicht
67568b2b48
add else 2023-12-25 19:48:28 +01:00
Laserlicht
b1f15983de
code review 2023-12-25 19:30:40 +01:00
Laserlicht
c2570adad6
mod manager drag'n'drop 2023-12-25 18:53:02 +01:00
Ivan Savenko
1a4bcfadbc Actually show extraction progress during mod installation 2023-12-18 00:34:00 +02:00
Ivan Savenko
74dedc4cc5 Converted ZipArchive namespace into stateful class 2023-12-18 00:33:32 +02:00
Ivan Savenko
705718abc1 Do not alter case of mod description 2023-12-10 19:16:45 +02:00
Ivan Savenko
c717bb5504 Always convert mod ID to lower case before using it 2023-11-19 20:44:28 +02:00
nordsoft
e82df8c726 Better solution 2023-11-07 20:10:07 +02:00
nordsoft
f10416be06 Do not show entries without name 2023-11-07 20:09:41 +02:00
Alexander Wilms
9e1629fb40 launcher/modManager/cmodlist.cpp: Member functions that don't mutate their objects should be declared "const" 2023-10-28 16:44:58 +00:00
Alexander Wilms
f01ec55d21 Use the "nullptr" literal.
"nullptr" should be used to denote the null pointer
2023-10-27 18:18:59 +00:00
Ivan Savenko
7e034814c1 Partially revert "Translation" type changes to avoid breaking mods 2023-10-22 16:51:08 +03:00
Ivan Savenko
adf58fa834 Hide not installed translation mods to languages other than selected one 2023-10-22 00:07:21 +03:00
Ivan Savenko
b50ebba1ba Added mod type "Compatibility" that is hidden in launcher 2023-10-21 23:55:20 +03:00
nordsoft
75d97e86e4 Show progress for mod extraction 2023-09-19 23:38:00 +02:00
Ivan Savenko
f8541d0ae4 Merge branch 'vcmi/master' into 'vcmi/develop' 2023-09-15 13:59:02 +03:00
Ivan Savenko
e4aa981925 Add more logging to mod downloading process 2023-09-12 21:15:14 +03:00
nordsoft
18c44fc006 Cache archive files 2023-09-09 10:59:29 +02:00
Nordsoft91
d6ff553cac
Fix typo 2023-09-09 02:14:27 +02:00
Ivan Savenko
e8453916cf Merge remote-tracking branch 'vcmi/beta' into develop 2023-09-08 18:49:06 +03:00
nordsoft
bb4905af48 Change resourceID with ResourcePath 2023-09-08 01:54:29 +02:00
nordsoft
8c94d082c8 Merge remote-tracking branch 'upstream/develop' into launcher-size-support 2023-09-08 01:51:52 +02:00
nordsoft
40ea45498f Rename 2023-09-07 19:57:57 +02:00