mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-05 09:05:26 -04:00
include save/stage services
This commit is contained in:
@@ -10,6 +10,8 @@ IMPORT_SERVICE(HookService, svc_hook);
|
||||
IMPORT_SERVICE(UiService, svc_ui);
|
||||
IMPORT_SERVICE(ResourceService, svc_res);
|
||||
IMPORT_SERVICE(ConfigService, svc_config);
|
||||
IMPORT_SERVICE(SaveService, svc_save);
|
||||
IMPORT_SERVICE(StageService, svc_stage);
|
||||
|
||||
extern "C" {
|
||||
|
||||
@@ -21,7 +23,9 @@ MOD_EXPORT ModResult mod_initialize(ModError* error) {
|
||||
svc_hook,
|
||||
svc_ui,
|
||||
svc_res,
|
||||
svc_config
|
||||
svc_config,
|
||||
svc_save,
|
||||
svc_stage,
|
||||
});
|
||||
if (result != MOD_OK) {
|
||||
return mods::set_error(error, result, "failed to initialize session");
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
#include "mods/svc/hook.h"
|
||||
#include "mods/svc/ui.h"
|
||||
#include "mods/svc/resource.h"
|
||||
#include "mods/svc/save.h"
|
||||
#include "mods/svc/stage.h"
|
||||
|
||||
namespace randomizer::session {
|
||||
struct ServiceManager {
|
||||
@@ -16,6 +18,8 @@ struct ServiceManager {
|
||||
const UiService* ui;
|
||||
const ResourceService* resource;
|
||||
const ConfigService* config;
|
||||
const SaveService* save;
|
||||
const StageService* stage;
|
||||
};
|
||||
|
||||
extern ServiceManager svc_mng;
|
||||
|
||||
Reference in New Issue
Block a user