Trial97
b77fb05908
Added back the INIFile read function
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-06-13 21:07:05 +03:00
Rachel Powers
df18d8560d
chore: fix test & clean up one last warning
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-06-04 22:46:05 -07:00
Rachel Powers
cc41b039e6
chore: clean up after new compiler warnings
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-06-04 14:59:48 -07:00
Rachel Powers
a04a6f1e0d
fix(memory leak): don't give shared pointers out to foldermodels (causes cyclic refrence)
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-05-28 02:15:39 -07:00
Rachel Powers
aae892dfd1
fix(memory leak): IndexedPack too large to live inside a qlist without pointers ()
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-05-26 19:21:07 -07:00
Rachel Powers
884ac73078
Merge remote-tracking branch 'upstream/develop' into better-tasks
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-05-07 13:21:21 -07:00
Rachel Powers
9d2f0e4dc8
feat: Propogated subtask progress
...
Oh boy this is big.
> TaskStepProgress struct is now QMetaObject compatabile and can be sent through signals
> Task now has a method to propogates sub task progress it must be signal bound by each task containing a task wishing to report progress of it's children.
> Downloads report speed
> Tasks now have UUIDS to track them
- use when reporting
- use when logging
- use when storeing them or objects related to them
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-05-01 10:47:20 -07:00
Rachel Powers
f997529cd4
feat: better task tracking
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-05-01 10:45:34 -07:00
Rachel Powers
d80dee2a54
refactor: pass instance ptr to resource models. use it to find instance root.
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-04-29 19:55:37 -07:00
Rachel Powers
788fa40c2a
refactor: Move ini to use QSettings && drop get/setList functions
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-04-29 19:55:24 -07:00
Rachel Powers
538092b727
fix: typos, CamelCase to camelCase the new names
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-03-31 20:31:27 -07:00
Rachel Powers
ae289c923c
fix: clean up initial review comments (flowin)
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-03-20 14:56:33 -07:00
Rachel Powers
1ca2c59f2e
feat: track instance copies that use links
...
confirm deleations when other instances link to it
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-03-20 14:56:32 -07:00
Rachel Powers
3a0e4546c2
fix: windows test compat
...
fix: compiler warning on int qint32 compare
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-03-20 14:56:32 -07:00
Rachel Powers
cd2419137d
fix: better test compareison (also qt5 compat)
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-03-20 14:56:32 -07:00
Rachel Powers
2837236d81
fix: intelegent recursive links & symlink follow on export
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-03-20 14:56:32 -07:00
Rachel Powers
8ba51c7900
refactor: make complete list of links to make and send that.
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-03-20 14:56:32 -07:00
Rachel Powers
6d160a7b7e
feat: successful process elevation and comunication!
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-03-20 14:56:32 -07:00
Rachel Powers
2ceefea5f3
qt5 compatability
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-03-20 14:56:32 -07:00
Rachel Powers
485f156e57
working outside windows
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-03-20 14:56:32 -07:00
Rachel Powers
f794e49bb6
we want to make links!
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-03-20 14:56:27 -07:00
Sefa Eyeoglu
a47bf72b07
Merge pull request #751 from Edgars-Cirulis/develop
2023-02-05 17:48:26 +01:00
flow
e593faf245
fix(tests): improve the reliability of the Task's stack test
...
This actually takes into account the amount of stuff put into the stack
in each iteration, and thus avoids having to change the stack size of
the thread, and using ad-hoc values for the other stuff. It also reduces
the time the test takes to run.
Signed-off-by: flow <flowlnlnln@gmail.com>
2023-02-01 16:58:33 -03:00
flow
29f7ea752f
refactor: make shared_qobject_ptr ctor explicit
...
This turns issues like creating two shared ptrs from a single raw ptr
from popping up at runtime, instead making them a compile error.
Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-25 16:57:51 -03:00
Sefa Eyeoglu
16477a8f6c
Merge pull request #675 from flowln/generalize_mod_model
2023-01-23 23:58:52 +01:00
flow
445f9e5f71
feat+fix(Version): make comparsion FlexVer-compatible
...
... and fixes a minor issue in the parsing.
This changes the expected behavior of Versions in one significant way:
Now, Versions like 1.2 or 1.5 evaluate to LESS THAN 1.2.0 and 1.5.0
respectively. This makes sense for sorting versions, since one expects
the versions without patch release to 'contain' the ones with, so the
ones without should be evaluated uniformily with the ones with the
patch.
Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-21 18:47:47 -03:00
flow
ec1f73c827
fix(tests): add some comments on the stack overflow Task test
...
Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-20 12:55:38 -03:00
flow
5ae69c079a
feat(tests): add FlexVer test vector to the Version tests
...
Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-20 11:15:26 -03:00
Rachel Powers
9934537e19
feat: add debug printing for Version
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-01-19 09:50:45 +02:00
flow
ad74fedfba
feat(tests): add test for stack overflow in ConcurrentTask
...
Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-18 16:23:30 -03:00
flow
3a168ba6dd
feat(tests): add very basic ResourceModel test
...
______very_____ basic indeed, creating tests is super boring :c
Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13 16:23:09 -03:00
flow
6a18079953
refactor: generalize mod models and APIs to resources
...
Firstly, this abstract away behavior in the mod download models that can
also be applied to other types of resources into a superclass, allowing
other resource types to be implemented without so much code duplication.
For that, this also generalizes the APIs used (currently, ModrinthAPI
and FlameAPI) to be able to make requests to other types of resources.
It also does a general cleanup of both of those. In particular, this
makes use of std::optional instead of invalid values for errors and,
well, optional values :p
This is a squash of some commits that were becoming too interlaced
together to be cleanly separated.
Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13 16:23:00 -03:00
Rachel Powers
3691f3a296
fix: cleanup and suggested changes
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-26 14:50:15 -07:00
Rachel Powers
cfce54fe46
fix: update parse tests
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-24 20:43:17 -07:00
Rachel Powers
a7c9b2f172
feat: validate world saves
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-24 20:43:17 -07:00
Rachel Powers
25e23e50ca
fix: force add of ignored testdata files
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-24 09:42:02 -07:00
Rachel Powers
64c51a70a3
feat: add initial support for parseing datapacks
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-24 09:42:02 -07:00
Sefa Eyeoglu
e048bce13e
refactor: allow copy operation with whitelist
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-11-12 20:27:13 +01:00
TheLastRar
fe347262e9
Fix: Using uint8_t in std::uniform_int_distribution is undefined
...
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
2022-11-03 21:35:27 +00:00
flow
81333515e0
feat(tests): add test for FS::copy with files
...
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-10-28 20:55:25 -03:00
flow
82d7f9f5a4
chore(tests): add test for FS copy with dot folders/files
...
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-10-15 09:40:00 -03:00
Sefa Eyeoglu
fafc9cf9ca
Merge pull request #1033 from Scrumplex/multi-arch-support
2022-10-08 20:12:40 +02:00
Sefa Eyeoglu
3111e6a721
chore: add missing license headers
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-10-08 20:12:07 +02:00
Sefa Eyeoglu
7bd8bd13fe
feat: support multiarch system classifiers
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20 16:01:06 +02:00
Sefa Eyeoglu
09e85e948c
refactor: introduce RuntimeContext
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20 15:59:43 +02:00
Sefa Eyeoglu
23fc453fae
fix: comments and naming of texture pack stuff
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20 10:26:15 +02:00
Sefa Eyeoglu
aad6f74db6
fix: tests
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20 10:26:15 +02:00
Sefa Eyeoglu
07dcefabcb
feat: add texture pack parsing
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-20 10:26:15 +02:00
flow
931d6c280a
chore(tests): add test for copy operation with blacklist
...
I almost 💀 because no tests used this x.x
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-12 13:12:55 -03:00
Sefa Eyeoglu
4c7d3a103c
refactor: restructure tests
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-11 22:29:01 +02:00
Petr Mrázek
771dd6f9ab
NOISSUE reorganize unit tests to be placed next to the code they test. Nuke more dead tests.
2016-05-01 00:02:15 +02:00
Petr Mrázek
e8ba5dafc6
NOISSUE remove dead unit tests and reorganize CMake code related to unit tests
2016-05-01 00:01:39 +02:00
Petr Mrázek
1be7d57332
NOISSUE re/move some dead code and unused build system parts
2016-05-01 00:00:24 +02:00
Petr Mrázek
47e37635f5
NOISSUE split GUI stuff from logic library
2016-04-30 23:59:23 +02:00
Jan Dalheimer
00e5968bd2
NOISSUE Add a skeleton of the wonko system
2016-04-30 23:59:23 +02:00
Petr Mrázek
f032e32133
NOISSUE finalize support for new mojang version format
2016-03-27 22:35:06 +02:00
Petr Mrázek
ec6204e447
NOISSUE share logic for new attributes between mojang and onesix format
2016-03-26 17:05:27 +01:00
Petr Mrázek
d4eacb56b3
NOISSUE make new Mojang version format pass through MultiMC structures
...
Not yet used effectively, but it is read and written properly
2016-03-07 02:03:36 +01:00
Petr Mrázek
3d8728f52f
NOISSUE no issue. with unit tests.
2016-03-03 22:47:41 +01:00
Petr Mrázek
2e4fa7ec13
NOISSUE Fix bad unit test data path and usage of std::abs
2016-03-03 02:13:07 +01:00
Petr Mrázek
fd2103d6ee
NOISSUE disable complex variant of mojang version format test
2016-03-03 01:59:47 +01:00
Petr Mrázek
94d4684809
NOISSUE add basic unit tests for MojangVersionFormat reading/writing
...
will have to make them pass now
2016-03-03 01:40:12 +01:00
Petr Mrázek
b54839b897
NOISSUE eliminate timestamp strings
2016-03-02 09:16:58 +01:00
Jan Dalheimer
34bf4ccdc7
NOISSUE Add more qt versions to travis
...
5.0, 5.1 and 5.2 are currently marked as "allow failure". If they can be made
to pass they should be removed from this list, if not they should be removed
entirely.
2016-01-06 10:33:47 +01:00
Petr Mrázek
a008efd24e
GH-1365 rework java version parsing and sorting
2016-01-02 00:35:54 +01:00
Petr Mrázek
5402acb3c6
GH-1360 add basic changelog based on github API, fix update dialog buttons
2015-12-28 05:36:17 +01:00
Petr Mrázek
c64a7940c1
GH-1178 add failing test
2015-12-26 03:20:19 +01:00
Petr Mrázek
243c5d1cfb
NOISSUE add a basic test for FS::copy
2015-12-26 02:44:33 +01:00
Petr Mrázek
f93f867c3d
NOISSUE dissolve util library
2015-10-05 01:47:27 +02:00
Petr Mrázek
143e24fa04
NOISSUE clean up some old cmake messes
2015-09-28 20:53:46 +02:00
Petr Mrázek
cca6700134
NOISSUE fix all clang warnings
2015-09-26 04:04:09 +02:00
Petr Mrázek
dd8eacee1b
GH-1227 renam GZip functions to not collide with zlib macros
2015-09-14 02:36:03 +02:00
Petr Mrázek
e38cc1d480
GH-1227 add GZip compress function and a unit test fo GZip
2015-09-14 02:25:47 +02:00
Petr Mrázek
23d0bd8edd
NOISSUE make shared logic library ... shared
2015-09-05 18:46:57 +02:00
Petr Mrázek
96fdaebb5c
GH-926 implement log cleaning functionality
...
Also adds gzip compressed log support
2015-08-18 08:51:12 +02:00
Petr Mrázek
15b7c3039a
GH-1060 update tweaks
...
* download to multimc folder hierarchy
* use rename, not copy
* keep backup after update
* clean previous backup before update
* it's not 'copy', it's 'replace'
2015-06-09 23:30:28 +02:00
Petr Mrázek
82e05661d2
GH-1060 implement very basic updater (only linux and maybe osx right now)
2015-06-09 00:03:42 +02:00
Petr Mrázek
166813cb91
GH-1060 remove some old updater bits and pieces
2015-06-09 00:03:42 +02:00
Jan Dalheimer
1e51b62c88
NOISSUE Comment and bugfix the Resource system
2015-06-06 21:23:05 +02:00
Jan Dalheimer
3a8b238052
NOISSUE Various changes from multiauth that are unrelated to it
2015-06-06 21:23:05 +02:00
Petr Mrázek
2dcedcfde3
GH-997 add unit test for ini file save/load passthrough
2015-05-26 08:29:43 +02:00
Petr Mrázek
db877ba121
NOISSUE move everything.
2015-04-12 20:57:18 +02:00
Petr Mrázek
4730f54df7
SCRATCH separate the generic updater logic from the application
2015-04-12 20:57:17 +02:00
Petr Mrázek
cd9d37aac4
SCRATCH nuke the overcomplicated logger, use a simple one.
2015-04-12 20:57:17 +02:00
Petr Mrázek
9249768db5
NOISSUE Make tests no longer use the MultiMC object
...
They do not require the application part anymore
2015-04-02 11:30:38 +02:00
Petr Mrázek
6f3aa65bd6
NOISSUE Split MultiMC app object into MultiMC and Env
2015-04-02 11:30:24 +02:00
Greenphlem
c6c5134398
Change copyright dates to 2015
2015-02-06 01:18:02 +01:00
Jan Dalheimer
d9b2f0ed42
Fix another bunch of copyright years, including fixing #397
2014-11-02 20:08:26 +01:00
Petr Mrázek
20cb97a35a
Sync from quickmods
2014-09-06 19:03:05 +02:00
Petr Mrázek
8a56ab6780
Implement gradle spec reader/writer
2014-07-16 02:03:52 +02:00
Petr Mrázek
3821569363
Show changelog even when there are no new updates available.
2014-07-14 00:57:54 +02:00
Petr Mrázek
18a342ef14
Move settings lib into the main code, fixing error logging in it.
2014-07-01 01:48:09 +02:00
Taeyeon Mori
eb5699c835
[Clang Warnings] Fix char* cast from string literal in Tests
2014-06-30 23:53:41 +02:00
Jan Dalheimer
a00fb1e8da
Only use tabs for intendention
2014-04-09 15:41:49 +02:00
Jan Dalheimer
dd7b6642a3
Use the same style of CMake files everywhere
2014-04-06 19:43:09 +02:00
Petr Mrázek
482ad250a4
Workaround for dirty build folders.
...
My disgust just turned into barely contained rage :<
2014-04-06 03:59:37 +02:00
Petr Mrázek
42e305bb9d
Get rid of long rebuilds because of minor cmake config changes
2014-04-06 00:33:33 +02:00
Petr Mrázek
5f7a48a35e
Fix issues with badly encoded escape sequences in config files.
2014-03-29 21:16:54 +01:00
Petr Mrázek
e71295d760
Force using LF endlines while configuring tests
2014-01-18 22:51:04 +01:00
Jan Dalheimer
6961525faa
Unbreak and reactivate the some UpdateChecker tests
2014-01-05 23:24:05 +01:00