1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00
Commit Graph

548 Commits

Author SHA1 Message Date
db5539b39d Regenerated Qt translations 2024-01-19 21:21:23 +02:00
f067f4e001 Version bump to 1.5.0 2024-01-19 21:21:22 +02:00
339fad6e27 Merge pull request #3528 from vcmi/master
Merge master -> develop
2024-01-19 21:19:20 +02:00
b5ef782fe1 Fix key value to match specs 2024-01-19 17:31:53 +02:00
2886d421ab Version bump 2024-01-19 16:18:13 +02:00
bd5682ecc3 Merge remote-tracking branch 'vcmi/master' into develop 2024-01-19 13:49:54 +02:00
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
b08462d555 Change default SDL driver name from opengl to empty (autoselection) 2024-01-14 14:29:13 +02:00
f3c89d0019 Update Chinese translation for launcher 2024-01-13 13:17:03 +08:00
4ef7f93514 Merge pull request #3442 from Laserlicht/autodetect_windows
Autodetect and copy installed heroes on windows
2024-01-10 16:37:55 +02:00
f3277b7953 Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
152a43abe0 Apply suggestions from code review
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2024-01-06 22:34:02 +01:00
89236987ce no silent install 2024-01-06 14:50:00 +01:00
33efcbac35 fix deprecated 2024-01-06 00:04:01 +01:00
eca1dba750 autodetect windows 2024-01-05 23:56:17 +01:00
d4d2ad5f1f Fix build 2024-01-05 22:30:07 +02:00
0acf65af17 Use QSignalBlocker in launcher where applicable 2024-01-05 22:06:07 +02:00
0584591e01 Update translations 2024-01-05 21:47:13 +02:00
77d54e1f79 Allow selecting driver in Launcher 2024-01-05 21:47:03 +02:00
2bf0bb3ca4 cz consisteny 2023-12-29 16:56:04 +01:00
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
4429b20693 Update desktop files 2023-12-29 12:19:05 +01:00
207b54fc6f Add Czech to cmakelists 2023-12-27 17:20:13 +01:00
361b584186 Merge pull request #3393 from Laserlicht/mod_drag
[Launcher] mod manager drag'n'drop
2023-12-26 15:33:50 +02:00
08a8982117 Merge pull request #3395 from IvanSavenko/version_bump_143
Version bump to 1.4.3
2023-12-26 15:33:30 +02:00
dcf9c78a2e code review 2023-12-25 22:41:15 +01:00
41cdabdcc2 Version bump to 1.4.3 2023-12-25 23:00:39 +02:00
67568b2b48 add else 2023-12-25 19:48:28 +01:00
b1f15983de code review 2023-12-25 19:30:40 +01:00
c2570adad6 mod manager drag'n'drop 2023-12-25 18:53:02 +01:00
8e6017ed97 remove left list in settings 2023-12-25 03:26:51 +01:00
e81f4b04cf Set 1.4.2 release date to 25th December 2023-12-24 19:29:33 +02:00
c4cecbb5dc Bump version to 1.4.2 2023-12-20 16:27:18 +02:00
a507acea59 Merge pull request #3331 from cewbdex/linux-translate
Translate metainfo
2023-12-20 16:25:43 +02:00
a34e4ca41d Apply suggestions from code review
Co-authored-by: Alexander Wilms <Alexander-Wilms@users.noreply.github.com>
2023-12-19 18:56:03 +01:00
884702dbca Update launcher/eu.vcmi.VCMI.metainfo.xml
Co-authored-by: Alexander Wilms <Alexander-Wilms@users.noreply.github.com>
2023-12-19 00:11:40 +01:00
3f089cce78 Merge pull request #3341 from IvanSavenko/fix_extraction_progress
Fix extraction progress display for mod installation
2023-12-18 13:34:37 +02:00
62b1d05146 german metainfo 2023-12-18 00:20:47 +01:00
0b82f6954f select first language 2023-12-17 23:48:21 +01:00
1a4bcfadbc Actually show extraction progress during mod installation 2023-12-18 00:34:00 +02:00
74dedc4cc5 Converted ZipArchive namespace into stateful class 2023-12-18 00:33:32 +02:00
c04efa8ac4 Merge pull request #3310 from cewbdex/cz-adw
Czech language improvements
2023-12-17 22:38:47 +02:00
11fc2df9a6 Fix missing release 2023-12-17 14:04:17 +01:00
ebf117c729 Use tabs 2023-12-17 11:47:02 +01:00
e1628d2bca Translate metainfo 2023-12-17 11:08:39 +01:00
b5ca7dd421 Fixes 2023-12-14 11:16:33 +01:00
f12d7591fe UI translated and improvements 2023-12-13 21:57:37 +01:00
a74d20b724 Update release date 2023-12-11 18:23:52 +02:00
a1a317aef4 Merge pull request #3280 from IvanSavenko/hotfix
[1.4.1] Hotfixes
2023-12-10 22:43:05 +02:00
705718abc1 Do not alter case of mod description 2023-12-10 19:16:45 +02:00