Pass options to Engine; add Engine::run()

This commit is contained in:
josh committed 2026-10-30 19:06:22 -04:00
1 parent c05f2b1b59
commit 94105a883f
4 files changed
+18 -5

No files matched your search

+7 -1
View File
@@ -1,5 +1,11 @@
#include <fart/Engine.h> #include <fart/Engine.h>
Engine::Engine() Engine::Engine(const Options & options)
: options(options)
{ {
} }
int Engine::run()
{
return 0;
}
+7 -1
View File
@@ -1,7 +1,13 @@
#pragma once #pragma once
#include <fart/Options.h>
class Engine class Engine
{ {
public: public:
Engine(); Engine(const Options & options);
int run();
protected:
Options options;
}; };
+2
View File
@@ -1,3 +1,5 @@
#pragma once
#include <stddef.h> #include <stddef.h>
#include <string> #include <string>
+2 -3
View File
@@ -10,7 +10,6 @@ int main(int argc, char * argv[])
{ {
return rc - 1; return rc - 1;
} }
Engine engine; Engine engine(cli.options);
printf("Hello\n"); return engine.run();
return 0;
} }