mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-04 10:43:19 +00:00
Remove unused code, move logic from .h to their .cpp, clean some things
This commit is contained in:
parent
924e35ecc4
commit
cb6c663833
41 changed files with 492 additions and 978 deletions
|
@ -7,7 +7,7 @@
|
|||
#include "UiState.h"
|
||||
#include "mirai-core/Config.h"
|
||||
#include "mirai-core/Mirai.h"
|
||||
#include "mirai-core/StdFileResource.h"
|
||||
#include "mirai-core/StdFileSource.h"
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
|
||||
|
@ -18,10 +18,10 @@ int main(int argc, char **argv)
|
|||
mirai::Mirai mirai;
|
||||
|
||||
for (const auto &sourceFilePath : config.sources()) {
|
||||
auto file = std::make_unique<mirai::StdFileResource>(
|
||||
mirai::BaseFileResourceConstructor{.name = sourceFilePath, .path = sourceFilePath}
|
||||
auto file = std::make_unique<mirai::StdFileSource>(
|
||||
mirai::BaseFileSourceConstructor{.name = sourceFilePath, .path = sourceFilePath}
|
||||
);
|
||||
mirai.loadResource(std::move(file));
|
||||
mirai.loadSource(std::move(file));
|
||||
}
|
||||
|
||||
UiState uiState{&mirai};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue