This commit is contained in:
2025-03-30 12:21:45 -05:00
parent 2b145098a2
commit 369ae0bdb2
5 changed files with 15 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
#include "DependsOnPrint.h"
DependsOnPrint::DependsOnPrint(void* h, App& a) : Module(h, a) {
DependsOnPrint::DependsOnPrint(void* h, Archimedes::App* a) : Module(h, a) {
name = "DependsOnPrint";
deps["Print"] = "/home/nathan/Projects/Archimedes/result-2/bin/Print";
deps["Print"] = "/home/nathan/Projects/Archimedes/result-1/bin/Print";
}
DependsOnPrint::~DependsOnPrint() {
@@ -12,5 +12,5 @@ DependsOnPrint::~DependsOnPrint() {
void DependsOnPrint::run() {
std::cout << "DependsOnPrint lib loaded and run!\n";
app.stopModule(self);
app->stopModule(self);
}

View File

@@ -1,9 +1,9 @@
#include "Archimedes.h"
class DependsOnPrint : public Module {
class DependsOnPrint : public Archimedes::Module {
public:
DependsOnPrint(void*, App&);
DependsOnPrint(void*, Archimedes::App*);
~DependsOnPrint();
void run();
void onLoad() {}
@@ -11,7 +11,7 @@ class DependsOnPrint : public Module {
};
extern "C" {
Module* create(void* handle, App& app) {
Archimedes::Module* create(void* handle, Archimedes::App* app) {
return new DependsOnPrint(handle, app);
}
}