summaryrefslogtreecommitdiff
path: root/src/createinstancedialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fixed a bunch of instance and command line stuffisanae2020-11-121-4/+6
| | | | | | | | | - 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
* keyboard nav for create instance dialogisanae2020-11-081-11/+51
| | | | | change the skip intro setting on click instead of on completion ctrl+f in game page
* documentationisanae2020-11-071-0/+10
| | | | | use an okay flag in PathsPage to avoid calling checkPaths() in ready() and make stuff mutable moved a few things around
* moved DirectoryCreator up, moved fix functions as lambdasisanae2020-11-071-111/+129
|
* moved getInstanceName() upisanae2020-11-071-46/+19
| | | | | | removed individual getters in CreateInstanceDialog, they were duplicating the work in creationInfo() only VariantsPage needs access to the game plugin during creationInfo(), so pass it instead selecting an undetected game, choosing a valid path and going back to the games page would not display the selected path in the list
* removed some redundant functions in InstanceManager, made them all non-staticisanae2020-11-071-1/+1
| | | | documentation
* renamed InstanceManager::instance() to singleton() to avoid confusionisanae2020-11-061-3/+3
|
* show create instance dialog on startup if there are no instancesisanae2020-11-031-3/+9
|
* replace "create instance" title by "setting up instance"isanae2020-11-031-1/+6
| | | | fixed bad game location for custom paths
* InstanceManager now returns new Instance struct instead of instance nameisanae2020-11-031-11/+58
| | | | | 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
* moved nexus api stuff to GlobalSettingsisanae2020-11-031-2/+7
| | | | | | | pass a pointer to Settings around for things that can be called without settings, when creating the first instance added dummy plugin list, mod list and iorganizer to initialize plugins without an instance moved PluginContainer into the core filter, had nothing to do with the plugins list NexusInterface is now created manually instead of being a static singleton because it needs to know if the settings are available
* open ini buttonisanae2020-11-031-3/+10
| | | | | update when renaming instance update and select when creating instance
* split nexus connection stuff into NexusConnectionUI so it can be reused in ↵isanae2020-11-031-0/+1
| | | | | | | | | | the instance creation dialog removed the PluginContainer* parameter from NexusInterface::instance() - it's a singleton, so it only needs to be given once, not every time - it doesn't even matter because the first time instance() is called, it creates the singleton, but the plugin container is always null - and setPluginContainer() is called much later from OrganizerCore with the correct value added non functional nexus page to instance creation dialog
* moved switch to instance to InstanceManagerisanae2020-11-031-2/+1
| | | | double-click an instance to switch to it (disabled for now, not sure I want that)
* added hide option for intro page in create instance dialogisanae2020-11-031-1/+10
|
* new GlobalSettings class to manage the registryisanae2020-11-031-6/+1
| | | | close the create instance dialog when launch is unchecked
* restart when finished, added launch instance checkboxisanae2020-11-031-0/+14
|
* PathChecker is unnecessary, refactored its guts into NamePage and PathsPageisanae2020-11-031-38/+34
| | | | made existing paths just a warning, don't check for portable instances
* split create instance dialog pagesisanae2020-11-031-1050/+3
|
* don't skip paths for portable instance, what am I doingisanae2020-11-031-63/+316
| | | | | implemented actual creation removed mentions of %BASE_DIR% everywhere, use constant and functions from PathSettings
* review pageisanae2020-11-031-33/+164
|
* fixed settings doing weird stuff with multiple instancesisanae2020-11-031-6/+49
| | | | | sort games by name added intro and confirmation pages
* paths pageisanae2020-11-031-48/+289
|
* editions pageisanae2020-11-031-22/+152
|
* instance name pageisanae2020-11-031-22/+193
|
* select custom game directoryisanae2020-11-031-19/+100
|
* game pageisanae2020-11-031-17/+263
|
* started create instance dialogisanae2020-11-031-0/+176
allow for multiple instances of Settings fill in information in instance manager