work on MinimalApp
This commit is contained in:
@@ -1,41 +1,29 @@
|
||||
#include "MinimalApp.h"
|
||||
|
||||
namespace Archimedes {
|
||||
void MinimalApp::run() {
|
||||
std::cout << "\nTesting...\n";
|
||||
|
||||
for(auto* m : modules)
|
||||
m->onLoad();
|
||||
|
||||
MinimalApp::MinimalApp() : App() {
|
||||
for(auto* s : Archimedes::Module::GetModules())
|
||||
std::cout << "Module: " << (s ? *s : "nullptr") << std::endl;
|
||||
// Main loop
|
||||
while (!done && !modules.empty()) {
|
||||
|
||||
}
|
||||
|
||||
MinimalApp::~MinimalApp() {
|
||||
|
||||
}
|
||||
|
||||
void MinimalApp::run() {
|
||||
std::cout << "\nTesting...\n";
|
||||
|
||||
for(auto* m : modules)
|
||||
m->onLoad();
|
||||
|
||||
for(auto* s : Archimedes::Module::GetModules())
|
||||
std::cout << "Module: " << (s ? *s : "nullptr") << std::endl;
|
||||
// Main loop
|
||||
while (!done && !modules.empty()) {
|
||||
|
||||
for(auto* m : modules) {
|
||||
m->run();
|
||||
}
|
||||
|
||||
for(auto it = toClose.begin(); it != toClose.end(); it++) {
|
||||
unload(it);
|
||||
}
|
||||
toClose.clear();
|
||||
|
||||
for(std::string s : toOpen) {
|
||||
load(s, getBlacklist());
|
||||
}
|
||||
toOpen.clear();
|
||||
for(auto* m : modules) {
|
||||
m->run();
|
||||
}
|
||||
|
||||
for(auto it = toClose.begin(); it != toClose.end(); it++) {
|
||||
unload(it);
|
||||
}
|
||||
toClose.clear();
|
||||
|
||||
for(std::string s : toOpen) {
|
||||
load(s, getBlacklist());
|
||||
}
|
||||
toOpen.clear();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user