still deciding on structure

This commit is contained in:
2025-03-10 01:10:21 -05:00
parent 270c93490f
commit 6f706e7b69
7 changed files with 102 additions and 47 deletions

31
src/App.cpp Normal file
View File

@@ -0,0 +1,31 @@
#include "App.h"
App* App::instance = nullptr;
App::App() {
if(instance != nullptr) {
std::cout << "App already exists\nThere can only be one!\n";
std::abort();
}
std::cout << "Initializing...\n";
instance = this;
}
App::~App() {
std::cout << "\nExiting...";
}
void App::run() {
std::cout << "\nTesting...\n";
// Main loop
while (!done) {
end();
}
}