Add window support for Windows.
This commit is contained in:
parent
5d32592126
commit
c05b7b6315
27 changed files with 783 additions and 95 deletions
|
@ -23,8 +23,13 @@ MainApplication::~MainApplication()
|
|||
|
||||
}
|
||||
|
||||
void MainApplication::Initialize(CommandLineArgsUPtr commandLineArgs)
|
||||
void MainApplication::Initialize(CommandLineArgsUPtr commandLineArgs, std::unique_ptr<IApplicationContext> applicationContext)
|
||||
{
|
||||
if (applicationContext)
|
||||
{
|
||||
mApplicationContext = std::move(applicationContext);
|
||||
}
|
||||
|
||||
mCommandLineArgs = std::move(commandLineArgs);
|
||||
const auto launch_path = mCommandLineArgs->GetLaunchPath().string();
|
||||
|
||||
|
@ -34,10 +39,13 @@ void MainApplication::Initialize(CommandLineArgsUPtr commandLineArgs)
|
|||
|
||||
mDatabaseManager = DatabaseManager::Create();
|
||||
mDatabaseManager->CreateDatabase(launch_path + "/database.db");
|
||||
MLOG_INFO("Created DB");
|
||||
|
||||
mNetworkManager = NetworkManager::Create();
|
||||
MLOG_INFO("Created Network Manager");
|
||||
|
||||
mAudioManager = AudioManager::Create();
|
||||
MLOG_INFO("Created Audio Manager");
|
||||
}
|
||||
|
||||
void MainApplication::Run()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue