Commit Graph
56 Commits
Author SHA1 Message Date
isanae 48274f3357 - renamed instance::name() to displayName() to reduce confusion with 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
2021-02-12 03:22:52 -05:00
isanae 6feab2ea8f moved criticalOnTop() to uibase
changed all calls to reportError(), which now uses the main window if it exists as a parent, or calls criticalOnTop()
added errors when running something from the command line for a different instance/profile
removed unused crap
2021-01-18 08:21:42 -05:00
isanae 3bca0e7615 split run() into setup() and run()
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
2021-01-18 08:20:07 -05:00
isanae 2e86e36a8e allow selecting another instance when the game/variant isn't found 2020-12-26 19:09:59 -05:00
isanae d08ed01438 fixed instanceIcon() so it works when game plugins fail auto detection but the instance has a custom path
had to change PluginContainer to non const in a few places
2020-12-22 14:40:51 -05:00
isanae 6ae27224b0 fixed a bunch of instance and command line stuff
- 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
2020-11-12 03:15:14 -05:00
isanae 1bf24c7daa refactored setupInstance(), comments
ok -> okay
2020-11-07 20:16:27 -05:00
isanae d288587b00 moved instance setup/selection to instancemanager.cpp
comments
2020-11-07 20:16:26 -05:00
isanae dc2ada2a42 added ... to the "Delete Instance" button to make it less scary
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
2020-11-07 20:16:25 -05:00
isanae b7cb63ddb1 removed some redundant functions in InstanceManager, made them all non-static
documentation
2020-11-07 20:16:25 -05:00
isanae ad8e9d99b3 renamed InstanceManager::instance() to singleton() to avoid confusion 2020-11-06 09:27:15 -05:00
isanae e6a87a1798 added IPlugin::registered()
removed useless dummy interfaces because init() isn't called anymore
python plugins currently broken because init() isn't called on them
fixed create instance dialog being shown on startup even if portable instance existed
display a message when the last instance can't be found
fixed instance manager dialog failing to open the portable instance
2020-11-04 20:57:50 -05:00
isanae 1d97d914f1 InstanceManager now returns new Instance struct instead of instance name
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
2020-11-03 11:41:54 -05:00
isanae b10436d60f game icons in the instance list 2020-11-03 11:41:54 -05:00
isanae ea4485857c filter, explore buttons, instance rename 2020-11-03 11:39:07 -05:00
isanae 6f21f3a19f disable portable instance button if one exists 2020-11-03 11:39:06 -05:00
isanae a97638249d moved switch to instance to InstanceManager
double-click an instance to switch to it (disabled for now, not sure I want that)
2020-11-03 11:39:06 -05:00
isanae 0f0313874a new GlobalSettings class to manage the registry
close the create instance dialog when launch is unchecked
2020-11-03 11:39:05 -05:00
isanae cfdfa9d40e PathChecker is unnecessary, refactored its guts into NamePage and PathsPage
made existing paths just a warning, don't check for portable instances
2020-11-03 11:39:05 -05:00
isanae b10bcf4cb7 instance name page 2020-11-03 11:39:04 -05:00
isanae 5513b273c6 added empty instance manager dialog 2020-11-03 11:39:03 -05:00
isanae 555b2508a5 rewrote the delete instance dialog text 2020-11-03 11:39:03 -05:00
isanae 3761ac84b5 deleteLocalInstance() now uses TaskDialog 2020-11-03 11:39:03 -05:00
isanae 3c791b0920 moved registry key from "Tannin" to "Mod Organizer Team" 2020-11-03 11:39:03 -05:00
isanae 5b13704275 moved profile, current game and game edition checks to InstanceManager
trying to centralize all of this stuff
2020-11-03 11:39:03 -05:00