summaryrefslogtreecommitdiff
path: root/src/instancemanager.h
Commit message (Collapse)AuthorAgeFilesLines
* Add instance manager to plugin API (#2335)Jonathan Feenstra2026-02-081-18/+32
|
* Apply clang-format.Mikaël Capelle2023-07-091-23/+12
|
* Sanitize download file namesChris Bessent2021-04-291-10/+0
| | | | Also switch instance name sanitizer to MOBase version
* - renamed instance::name() to displayName() to reduce confusion with ↵isanae2021-02-121-1/+6
| | | | | | | portable instances - better errors when running incorrect shortcuts - fixed shortcuts being created with moshortcut://Portable:exe instead of an empty instance name for portable instances
* split run() into setup() and run()isanae2021-01-181-2/+2
| | | | | this is so command line processing can happen outside of MOApplication many important objects were local to run(), so they're not members of MOApplication instead
* fixed instanceIcon() so it works when game plugins fail auto detection but ↵isanae2020-12-221-0/+3
| | | | | | the instance has a custom path had to change PluginContainer to non const in a few places
* fixed a bunch of instance and command line stuffisanae2020-11-121-0/+5
| | | | | | | | | - clear instance manager overrides when restarting, or switching instances after starting MO with moshortcut://instance: won't do anything - clear overrides when the last selected instance can't be opened; MO would keep trying to open shortcuts even after selecting a different instance - command line was cleared too early, before the first run, so shortcuts were broken - the instance manager dialog can be opened without an instance loaded if the last selected instance doesn't exist, createNew() would throw because it tried to access the global Settings - fixed some problems with parts of MO wanting to restart and others expecting flow to continue - fixed create instance dialog using settings pointer to decide whether to restart; it restarts when it's the first created instance, which is not always the case even if the settings are null, so just check whether there are instances
* refactored setupInstance(), commentsisanae2020-11-071-4/+4
| | | | ok -> okay
* moved instance setup/selection to instancemanager.cppisanae2020-11-071-0/+37
| | | | comments
* added ... to the "Delete Instance" button to make it less scaryisanae2020-11-071-20/+89
| | | | | | | merged InstanceInfo into Instance, most of it was redundant added logging before deleting instance added Instance::readFromIni(), contains stuff that used to be in setup(), used by instance dialog replaced QDir with QString in a few places, I hate QDir
* removed some redundant functions in InstanceManager, made them all non-staticisanae2020-11-071-11/+181
| | | | documentation
* renamed InstanceManager::instance() to singleton() to avoid confusionisanae2020-11-061-1/+1
|
* replaced #pragma once by ifdefsisanae2020-11-031-22/+4
| | | | | | | changed pointer to ref to NexusInterface on_actionChange_Game_triggered() now creates the dialog itself instead of calling test code fixed broken command line options, they'd be reset before they were used removed useless explicit
* InstanceManager now returns new Instance struct instead of instance nameisanae2020-11-031-22/+44
| | | | | moved most of the figuring out of instance parameters from InstanceManager to Instance, separated all the ui from it and put it in main.cpp added ways to show single pages in the create instance dialog so they can be used when info is missing
* game icons in the instance listisanae2020-11-031-0/+3
|
* filter, explore buttons, instance renameisanae2020-11-031-0/+1
|
* disable portable instance button if one existsisanae2020-11-031-1/+1
|
* moved switch to instance to InstanceManagerisanae2020-11-031-0/+4
| | | | double-click an instance to switch to it (disabled for now, not sure I want that)
* new GlobalSettings class to manage the registryisanae2020-11-031-4/+0
| | | | close the create instance dialog when launch is unchecked
* restart when finished, added launch instance checkboxisanae2020-11-031-2/+1
|
* PathChecker is unnecessary, refactored its guts into NamePage and PathsPageisanae2020-11-031-0/+1
| | | | made existing paths just a warning, don't check for portable instances
* don't skip paths for portable instance, what am I doingisanae2020-11-031-2/+1
| | | | | implemented actual creation removed mentions of %BASE_DIR% everywhere, use constant and functions from PathSettings
* instance name pageisanae2020-11-031-1/+4
|
* started create instance dialogisanae2020-11-031-1/+1
| | | | | allow for multiple instances of Settings fill in information in instance manager
* added empty instance manager dialogisanae2020-11-031-4/+5
|
* deleteLocalInstance() now uses TaskDialogisanae2020-11-031-1/+2
|
* moved registry key from "Tannin" to "Mod Organizer Team"isanae2020-11-031-0/+2
|
* moved profile, current game and game edition checks to InstanceManagerisanae2020-11-031-4/+14
| | | | trying to centralize all of this stuff
* only log a warning for symlinks instead of exiting MOisanae2019-10-051-0/+1
| | | | | added logs: when dmp files are present, for portable instances, and the ini path clear the log widget when switching instances
* Add portable lock featureLostDragonist2019-09-111-0/+3
| | | | | | | If the file "portable.txt" is present in the application directory, MO will force itself to be launched as a portable instance. The change game button and menu item are hidden to prevent the user from changing out of the portable instance.
* Allow more characters in instance names and add an error messageLostDragonist2018-07-221-0/+1
| | | | | Previously allowed: "A-Za-z0-9 " Now allowed: "A-Za-z0-9 !@#$%^()_+-=[]{};'."
* Revert "Applied clang-format on source"Sandro Jäckel2018-02-231-20/+26
| | | | This reverts commit 5e5c9c07291f6b09623d31c92b1fb61c4ede576e.
* Applied clang-format on sourceSandro Jäckel2018-02-221-26/+20
|
* Added message when creating a new instance with an already existing name,Al12rs2018-01-181-1/+5
| | | | | Aldded manageInstances dialog to allow users to delete local instances, Added a number of confirmation messageboxes.
* Tie moshortcuts to a specific instanceEran Mizrahi2017-12-191-2/+6
|
* moved button to switch instance (and to portable mode) to the main windowTannin2016-05-271-9/+6
|
* made instance-switching usableTannin2016-01-101-0/+62
this includes tons and tons of changes to how paths are determined. the profiles-dir can now also be configured