add App& member to Module class
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include "print.h"
|
||||
|
||||
Print::Print(void* h) {
|
||||
handle = h;
|
||||
Print::Print(void* h, App& a) : Module(h, a) {
|
||||
name = "Print";
|
||||
}
|
||||
|
||||
@@ -12,6 +11,6 @@ Print::~Print() {
|
||||
void Print::run() {
|
||||
std::cout << "Print lib loaded and run!\n";
|
||||
//App::Get().unload(self);
|
||||
App::Get().end();
|
||||
app.end();
|
||||
std::cout << "App::Get() called\n";
|
||||
}
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
class Print : public Module {
|
||||
|
||||
public:
|
||||
Print(void*);
|
||||
Print(void*, App&);
|
||||
~Print();
|
||||
void run();
|
||||
|
||||
};
|
||||
|
||||
extern "C" {
|
||||
Module* create(void* handle) {
|
||||
return new Print(handle);
|
||||
Module* create(void* handle, App& app) {
|
||||
return new Print(handle, app);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user