cli: set user-id per command line

This commit is contained in:
Megamouse
2021-04-02 00:54:32 +02:00
parent 98687d474b
commit 9c7230e79f
11 changed files with 165 additions and 119 deletions
+7 -1
View File
@@ -10,12 +10,18 @@ class main_application
public:
virtual bool Init() = 0;
static bool InitializeEmulator(const std::string& user, bool force_init, bool show_gui);
static void InitializeEmulator(const std::string& user, bool show_gui);
void SetActiveUser(std::string user)
{
m_active_user = user;
}
protected:
virtual QThread* get_thread() = 0;
EmuCallbacks CreateCallbacks();
std::string m_active_user;
QWindow* m_game_window = nullptr; // (Currently) only needed so that pad handlers have a valid target for event filtering.
};