2024-04-13 11:52:42 +02:00
|
|
|
/*
|
2024-04-10 16:53:18 +02:00
|
|
|
* Mirai. Copyright (C) 2024 Vyn
|
|
|
|
* This file is licensed under version 3 of the GNU General Public License (GPL-3.0-only)
|
|
|
|
* The license can be found in the LICENSE file or at https://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
*/
|
|
|
|
|
2024-11-04 12:36:18 +01:00
|
|
|
#include "evalyte-cpp-common/evalyte.h"
|
2024-08-16 21:35:12 +02:00
|
|
|
#include "mirai-core/Mirai.h"
|
2024-11-04 14:45:27 +01:00
|
|
|
#include "ui.h"
|
|
|
|
#include "windows/AppWindow/AppWindow.h"
|
2024-08-16 21:35:12 +02:00
|
|
|
#include <cstdlib>
|
|
|
|
#include <string>
|
2024-04-10 16:53:18 +02:00
|
|
|
|
2024-08-16 21:35:12 +02:00
|
|
|
int main(int argc, char **argv)
|
2024-04-10 16:53:18 +02:00
|
|
|
{
|
2024-11-04 12:36:18 +01:00
|
|
|
evalyte::createRequiredDirectories("mirai");
|
|
|
|
const auto configFilePath = evalyte::configDirectoryPath("mirai") + "/config.json";
|
2024-11-01 13:43:45 +01:00
|
|
|
mirai::Mirai mirai{configFilePath};
|
2024-11-04 14:45:27 +01:00
|
|
|
AppWindow appWindow{&mirai};
|
2024-10-27 22:11:11 +01:00
|
|
|
appWindow.run();
|
2024-08-16 21:35:12 +02:00
|
|
|
return 0;
|
2024-04-10 16:53:18 +02:00
|
|
|
}
|