mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-04 10:43:19 +00:00
Add default path when creating new source
This commit is contained in:
parent
14d04f6a77
commit
d6c781faa2
7 changed files with 24 additions and 6 deletions
|
@ -5,14 +5,15 @@
|
|||
*/
|
||||
|
||||
#include "AppWindowBackend.h"
|
||||
#include "evalyte-cpp-common/config.h"
|
||||
#include "evalyte-cpp-common/evalyte.h"
|
||||
#include "mirai-core/Mirai.h"
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
const auto configFilePath = evalyte::createConfigDirectoryPath("mirai") + "/config.json";
|
||||
evalyte::createRequiredDirectories("mirai");
|
||||
const auto configFilePath = evalyte::configDirectoryPath("mirai") + "/config.json";
|
||||
mirai::Mirai mirai{configFilePath};
|
||||
AppWindowBackend appWindow{&mirai};
|
||||
appWindow.run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue