1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00
Commit Graph

572 Commits

Author SHA1 Message Date
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
Andrey Filipenkov
1b69410bbc
also remove the declaration from the header 2024-03-02 17:35:28 +03:00
Andrey Filipenkov
5dddb7ed00
remove no longer used slot 2024-03-02 17:27:15 +03:00
Ivan Savenko
08a27663f9 Reworked JsonNode constructors to more logical form 2024-02-26 12:55:49 +02:00
Ivan Savenko
54796c7c56 Rename toJson to toString/toCompactString for consistency 2024-02-26 12:55:49 +02:00
Alexander Wilms
73a1a188d9 Update metainfo to conform to AppStream 1.0 spec 2024-02-23 19:26:38 +01: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
9ebd194ab1
Merge pull request #3609 from IvanSavenko/single_process
Allow running server as part of client process
2024-02-14 12:06:22 +02:00
Ivan Savenko
6e399eb21a Make some non-const static variables const or constexpr 2024-02-12 13:22:54 +02:00
Ivan Savenko
2540685c62 Fix invalid check 2024-02-12 12:32:53 +02:00
Ivan Savenko
a909d7ddde Removed cmake_modules/VCMI_lib macro, use it directly in place 2024-02-11 20:38:24 +02:00
Ivan Savenko
f2ecd4cf11 Merge branch 'develop' into 'lobby' 2024-02-11 16:13:13 +02:00
Tytannial
a6cfacc7e3 Update Chinese Launcher translation 2024-02-07 09:01:55 +08:00
Ivan Savenko
322c5faf63 Merge remote-tracking branch 'vcmi/develop' into lobby 2024-01-26 16:52:23 +02:00
Ivan Savenko
2a193effcc Merge branch 'master' into 'develop' 2024-01-25 16:23:13 +02:00
Ivan Savenko
aff9fddd03 Version bump to 1.4.5 2024-01-23 13:56:28 +02:00
Asirome
183612d32b Updated spanish.ts translation 2024-01-23 13:48:51 +02:00
Ivan Savenko
be47c66c57 Ignore hidden mods when checking mod dependencies 2024-01-23 12:57:38 +02:00
Asirome
334020b077
Updated spanish.ts translation 2024-01-23 11:11:35 +01:00
Ivan Savenko
93d78edfb9 Fix build 2024-01-19 23:52:28 +02:00
Ivan Savenko
9fb7d2817a Implemented connection of match server to global lobby 2024-01-19 23:52:28 +02:00
Ivan Savenko
c4db99a60d Removed old in-launcher lobby 2024-01-19 23:52:25 +02:00
Ivan Savenko
db5539b39d Regenerated Qt translations 2024-01-19 21:21:23 +02:00
Ivan Savenko
f067f4e001 Version bump to 1.5.0 2024-01-19 21:21:22 +02:00
Ivan Savenko
339fad6e27
Merge pull request #3528 from vcmi/master
Merge master -> develop
2024-01-19 21:19:20 +02:00
Ivan Savenko
b5ef782fe1 Fix key value to match specs 2024-01-19 17:31:53 +02:00
Ivan Savenko
2886d421ab Version bump 2024-01-19 16:18:13 +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
Ivan Savenko
b08462d555 Change default SDL driver name from opengl to empty (autoselection) 2024-01-14 14:29:13 +02:00
kdmcser
f3c89d0019 Update Chinese translation for launcher 2024-01-13 13:17:03 +08:00
Ivan Savenko
4ef7f93514
Merge pull request #3442 from Laserlicht/autodetect_windows
Autodetect and copy installed heroes on windows
2024-01-10 16:37:55 +02:00
Alexander Wilms
f3277b7953 Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
Laserlicht
152a43abe0
Apply suggestions from code review
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2024-01-06 22:34:02 +01:00
Laserlicht
89236987ce
no silent install 2024-01-06 14:50:00 +01:00
Laserlicht
33efcbac35
fix deprecated 2024-01-06 00:04:01 +01:00
Laserlicht
eca1dba750 autodetect windows 2024-01-05 23:56:17 +01:00
Ivan Savenko
d4d2ad5f1f Fix build 2024-01-05 22:30:07 +02:00
Ivan Savenko
0acf65af17 Use QSignalBlocker in launcher where applicable 2024-01-05 22:06:07 +02:00
Ivan Savenko
0584591e01 Update translations 2024-01-05 21:47:13 +02:00
Ivan Savenko
77d54e1f79 Allow selecting driver in Launcher 2024-01-05 21:47:03 +02:00
Kryštof Černý
2bf0bb3ca4 cz consisteny 2023-12-29 16:56:04 +01:00
Kryštof Černý
c608a6dbdb
Apply suggestions from code review
Co-authored-by: Alexander Wilms <Alexander-Wilms@users.noreply.github.com>
2023-12-29 16:47:56 +01:00
Kryštof Černý
4429b20693 Update desktop files 2023-12-29 12:19:05 +01:00
Kryštof Černý
207b54fc6f Add Czech to cmakelists 2023-12-27 17:20:13 +01:00
Ivan Savenko
361b584186
Merge pull request #3393 from Laserlicht/mod_drag
[Launcher] mod manager drag'n'drop
2023-12-26 15:33:50 +02:00
Ivan Savenko
08a8982117
Merge pull request #3395 from IvanSavenko/version_bump_143
Version bump to 1.4.3
2023-12-26 15:33:30 +02:00
Laserlicht
dcf9c78a2e
code review 2023-12-25 22:41:15 +01:00