21 lines
493 B
C++
21 lines
493 B
C++
#include "MetaCoreEditor/MetaCoreEditorApp.h"
|
|
|
|
#include <filesystem>
|
|
#include <iostream>
|
|
|
|
int main(int argc, char* argv[]) {
|
|
if (argc > 0) {
|
|
std::filesystem::current_path(std::filesystem::path(argv[0]).parent_path());
|
|
}
|
|
|
|
MetaCore::MetaCoreEditorApp editorApp;
|
|
if (!editorApp.Initialize()) {
|
|
std::cerr << "MetaCoreEditorApp initialize failed\n";
|
|
return 1;
|
|
}
|
|
|
|
const int exitCode = editorApp.Run();
|
|
editorApp.Shutdown();
|
|
return exitCode;
|
|
}
|