1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-06 00:24:11 +02:00
Commit Graph

282 Commits

Author SHA1 Message Date
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
Ivan Savenko
b85a2f99c1 Quick fix to avoid freeze on Launcher startup / mod repo checkout 2023-09-06 01:11:18 +03:00
Ivan Savenko
6f0108e462 Use ResourcePath for referencing texts and json's 2023-09-04 18:22:34 +03:00
Ivan Savenko
823ffa7a07 Always use ResourcePath for referencing images and animations 2023-09-04 18:22:34 +03:00
Nordsoft91
9af73c2212
Merge pull request #2723 from Nordsoft91/versions-fix
Launcher & lib versions unification
2023-09-02 19:42:46 +04:00
nordsoft
32ad463170 Rename 2023-09-02 14:15:37 +04:00
Nordsoft91
348b6b0f32
Update launcher/modManager/cmodlistview_moc.cpp
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2023-09-02 14:11:56 +04:00
nordsoft
1ef407ea9f Fixes 2023-09-02 14:10:50 +04:00
nordsoft
4024a44b7e Unify internal units 2023-09-02 00:18:23 +04:00
nordsoft
3ee91ca9dc Support local and download mod size 2023-09-01 18:43:26 +04:00
nordsoft
5875dc6b8f Smarter double-click 2023-09-01 17:40:52 +04:00
nordsoft
ea7ab9d5ed Migrate launcher to vcmi versions 2023-09-01 04:12:41 +04:00
nordsoft
31956549e6 Double click behavior 2023-09-01 03:29:50 +04:00
Ivan Savenko
62fddca21e Split massive CModHandler class/file into multiple parts:
- IdentifierStorage is now a separate handler in VLC
- Renamed ModHandler::Incompatibility exception to ModIncompatibility
- Extracted ModScope namespace from ModHandler
- Extracted ModUtilities namespace from ModHandler
- Split CModHandler.cpp on per-class basis
- Replaced some direct members with unique_ptr to reduce header includes
2023-07-30 22:17:47 +03:00
Ivan Savenko
5b812649ee Fix handling of "keepDisabled" option in Launcher 2023-07-22 22:45:39 +03:00
Ivan Savenko
eb06c5fa3f Added slightly better layout for "About" screen 2023-07-03 14:34:53 +03:00
Ivan Savenko
21c45bd84f Added new settings to Launcher:
- UI Scaling selection
- Allied AI selection
- Separate main/secondary mod repo
2023-07-03 14:34:53 +03:00
Ivan Savenko
814a4b9455 Partial fix for displaying download progress of mods 2023-07-03 14:34:53 +03:00
Ivan Savenko
1f525c59c3 Remove no longer used code 2023-07-03 14:34:53 +03:00
nordsoft
0782ee7689 Strict weak ordering on the data 2023-05-28 00:12:03 +04:00
Ivan Savenko
a9aa751ba0 Fix installation of multiple mods at once, e.g. during setup 2023-04-14 12:47:13 +03:00
nordsoft
49255e5a3f Adjustable layout for launcher 2023-04-10 20:33:02 +04:00
krs
fdfcab1210 CModListView, firstlaunch and lobby strings reviewed 2023-03-31 19:24:06 +03:00
Ivan Savenko
b1fbc7a2fd Attempt to fix icons size on Mac OS 2023-03-27 22:33:36 +03:00
Ivan Savenko
1d1d31c4e8 Added preset list of mod types for mod list 2023-03-27 22:33:36 +03:00
Ivan Savenko
efed2991f2 Show human-readable mod names for list of dependencies 2023-03-27 22:33:36 +03:00
Ivan Savenko
14f8348b9e Show list of supported languages in mod info 2023-03-27 22:33:36 +03:00
Ivan Savenko
5357709b17 Correctly handle scenario of unavailable mod repository 2023-03-27 22:33:36 +03:00
Ivan Savenko
369e925af8 Loading of translation mods is now skipped on language mismatch 2023-03-14 16:02:16 +02:00
Ivan Savenko
a062e5e425 - Implemented proposition to install translation mod when necessary 2023-03-14 16:02:16 +02:00
Ivan Savenko
1ff317058e Implemented install of mods via setup 2023-03-14 16:02:16 +02:00
Ivan Savenko
c3d78ba761 Partially implemented Setup Window 2023-03-14 16:02:16 +02:00
Ivan Savenko
8439477751 Added icons to mod action buttons 2023-01-29 22:04:01 +02:00
Ivan Savenko
4fc96a09cb Simplified internal layout of Mod List, no visible changes 2023-01-29 22:04:01 +02:00
Ivan Savenko
e87a157b32 Adjustments to Mods screen layout in Launcher 2023-01-29 22:04:01 +02:00
Ivan Savenko
bafe0c42ce
Merge pull request #1293 from IvanSavenko/translate_launcher
Translations support - Launcher
2023-01-17 23:05:14 +02:00
nordsoft
2cce15efbe Automatic mod conflict resolution 2023-01-16 20:58:19 +04:00
Ivan Savenko
96141f010b Merge remote-tracking branch 'vcmi/develop' into translate_launcher 2023-01-15 23:55:49 +02:00
Ivan Savenko
246281e62a Merged vcmi/beta with vcmi/develop 2023-01-15 17:46:42 +02:00
Ivan Savenko
9658ffba99 Allow disabling & deleting local mods other than vcmi mod 2023-01-12 16:29:01 +02:00
Ivan Savenko
192e856797 merge with vcmi/develop 2023-01-11 16:47:53 +02:00
Ivan Savenko
8010bff866 Formatting 2022-12-29 16:37:38 +02:00
Ivan Savenko
4f4a89e15d Fix formatting 2022-12-28 22:22:05 +02:00
Ivan Savenko
df3d62c5bc Formatting fix 2022-12-28 18:04:27 +02:00
Ivan Savenko
cd6a894417 Call method from parent class after processing event 2022-12-28 17:58:39 +02:00
Ivan Savenko
b012cd9490 Compiled launcher translations are now in launcher/translations/ dir 2022-12-25 22:18:14 +02:00
Ivan Savenko
1696db8a3c Launcher translation upgrade, still WIP:
- launcher can be re-translated without restart
- mod info (name/description/etc) can have localized versions
2022-12-25 13:19:16 +02:00
Ivan Savenko
eb20a4b208 Merge remote-tracking branch 'vcmi/develop' into warnings_fix 2022-12-23 14:40:45 +02:00
Ivan Savenko
9e4cef015d Initial test version of selectable translations for launcher. 2022-12-19 19:12:44 +02:00
nordsoft
dd95d92735 Fix compatibility check 2022-12-17 22:56:33 +04:00
Ivan Savenko
facf77b3ae vstd::unique -> std::unique 2022-12-07 23:36:20 +02:00
Ivan Savenko
3219e322ae Fixed all non-silenced gcc/clang warnings 2022-12-07 18:05:47 +02:00
Nordsoft91
89b8b87a6b
Merge pull request #1156 from vcmi/features/online
Online mode
2022-11-29 20:43:39 +04:00
nordsoft
f785525508 Fix mods updating 2022-11-23 21:34:05 +04:00
nordsoft
665d6ebb78 Ios scroll by gesture 2022-11-22 03:36:50 +04:00
nordsoft
4527bd1a61 Disconnection on error 2022-11-16 23:53:54 +04:00
nordsoft
2409bdfbda Fix screenshots loading 2022-10-21 04:03:54 +04:00
Andrii Danylchenko
238dabe060
Merge pull request #1055 from kambala-decapitator/version-from-cmakelists
define app version only in CMakeLists
2022-10-08 09:55:59 +03:00
Andrii Danylchenko
8b1a2a3ff3
Merge pull request #1039 from Nordsoft91/modinfo-from-json
Modinfo from json
2022-10-06 17:11:08 +03:00
Andrey Filipenkov
92dd6d8c17 define app version only in CMakeLists
now it's propagated to code via macros
2022-10-04 12:29:38 +03:00
Andrii Danylchenko
a2dbb6c8ac
Merge pull request #978 from kambala-decapitator/hide-unsupported-resolutions
Hide unsupported resolutions
2022-09-30 17:34:07 +03:00
nordsoft
9bf7106905 Add compatibility info 2022-09-29 18:21:29 +04:00
nordsoft
ae15807964 Collect mod info from remote mod.json 2022-09-29 17:38:03 +04:00
Andrey Filipenkov
42ea458ccf handle (un)installing Extra Resolutions mod 2022-09-27 11:56:13 +03:00
Andrey Filipenkov
d06977ecbb handle enabling/disabling Extra Resolutions mod 2022-09-27 11:56:13 +03:00
Andrey Filipenkov
f0b909f772 code improvement 2022-09-27 11:56:12 +03:00
Andrii Danylchenko
6ad468ecd3
Merge pull request #995 from Nordsoft91/hotfix/mods-deps
Hotfix for mods dependencies
2022-09-26 09:14:18 +03:00
nordsoft
5552fbb8e6 Fix ios build 2022-09-25 16:24:25 +04:00
nordsoft
54e0bb17fd [994] fixed 2022-09-25 16:17:21 +04:00
nordsoft
af98ce2e3d Hotfix for mods dependencies 2022-09-25 15:36:46 +04:00
Andrey Filipenkov
44174da9a2 fix MXE build 2022-09-24 15:55:25 +03:00
Andrey Filipenkov
ad256cd11f fix building launcher 2022-09-24 15:55:22 +03:00
nordsoft
145103a32d Allow enabling of compatible mods only 2022-09-22 16:41:13 +04:00
Andrii Danylchenko
3d3c513603
Merge pull request #929 from Nordsoft91/branch-merge-versioning
Mods versioning [part 3]
2022-09-22 14:56:20 +03:00
nordsoft
fd10d8a887 Fix compilation on msvc 2022-09-19 12:34:18 +04:00
Andrey Filipenkov
e423e415c1 move Uninstall button to the left side of layout 2022-09-19 08:48:50 +03:00
nordsoft
dcfafac266 Reuse QVersionNumber 2022-09-19 03:52:54 +04:00
nordsoft
1b6f4a5cf3 Rebase on develop 2022-09-17 17:43:59 +04:00
Nordsoft91
205bb09880
Launcher fixes for mod filesystem (#860)
* Show submods as disabled if parent mod is disabled
* [845] disable button for local mods
Fixes for #812 #851 #852
2022-09-10 19:30:41 +03:00
Nordsoft91
5862c192b0
Mod from GitHub (#785)
* Make new dialog for checking updates
* update on startup
* Implemented auto-update
2022-09-04 19:32:48 +03:00
Konstantin
1a6ee0d697
Launcher: Qt6 support. Qt 5.12 required (#746)
* Launcher: Qt6 support. Qt 5.12 required
2022-05-28 16:32:20 +03:00
John Bolton
a05ae78e67 Fixed lots of warnings.
Disabled the following (for MSVC only) that couldn't (or shouldn't) be fixed.

4003: not enough actual parameters for macro 'identifier'
4250: 'class1' : inherits 'class2::member' via dominance
4251: 'type' : class 'type1' needs to have dll-interface to be used by clients of class 'type2'
4275: non dll-interface class 'type1' used as base for dll-interface class 'type2'
2020-10-04 02:20:18 -07:00
DJWarmonger
ab62430785 Remove space after if 2019-07-30 11:00:44 +02:00
DJWarmonger
d58c7b2105 Persist mod table header (especially column widths). 2019-07-30 09:28:42 +02:00
Michał Janiszewski
7be9aa4868 Prevent shadowing of function arguments by local vars 2018-10-29 16:56:14 +01:00
Karlis Senko
40e6292ed2 Fix memory leaks in launcher. 2018-05-01 00:01:20 +03:00
Arseniy Shestakov
9da3f48274 Code style: formatting and refactoring of launcher code 2018-04-13 15:23:35 +07:00
Arseniy Shestakov
f1e5797834 Code style: move or add licensing information on top of every file 2017-07-14 01:26:03 +03:00
Arseniy Shestakov
5d8e943787 Launcher: add sanity checks for QDir::removeRecursively. Issue 2673
I'm not always fail to uninstall mod, but when I do I remove $HOME
Bumblebee developers should be proud of us...
2017-05-25 03:03:02 +03:00
Michał Janiszewski
f5ebc763b4 Add override keyword where applicable 2017-02-17 14:39:16 +01:00
Vadim Markovtsev
ac3c231fee Fix launcher's UI for Ubuntu's scaled view on Retina displays 2016-10-02 00:31:22 +02:00
Piotr Wójcik
a4f12fb007 Show downloaded mods with no need to reload remote repositories 2016-08-30 22:16:52 +02:00
DjWarmonger
327e95407e - Compile fixes part 1
- Project settings for MSVS
2016-01-27 21:08:08 +01:00