Move user directory detection location to UICommon.

The UI should decide on where it wants the user directory, not our core system.
This is in anticipation of some upcoming work on Android which will need proper user directory setting.
This commit is contained in:
Ryan Houdek
2015-02-25 03:23:42 -06:00
parent 792e166f87
commit db06f058e4
8 changed files with 98 additions and 68 deletions

View File

@ -42,6 +42,7 @@ int main(int argc, char* argv[])
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
// TODO: Add command line options
UICommon::SetUserDirectory(""); // Auto-detect user folder
UICommon::CreateDirectories();
UICommon::Init();