added manager singleton logic
This commit is contained in:
@@ -2,4 +2,13 @@
|
||||
// Created by black on 12.06.25.
|
||||
//
|
||||
|
||||
#include "emulator/Manager.h"
|
||||
#include "Manager.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
Manager::Manager(std::string path): m_path(std::move(path)) {}
|
||||
|
||||
Manager * Manager::getInstance(const std::string &program_path) {
|
||||
static Manager instance{program_path};
|
||||
return &instance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user