mirror of
https://github.com/wiiu-env/MemoryMappingModule.git
synced 2026-08-20 08:04:06 -05:00
Log the module version on each application start
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "function_replacements.h"
|
||||
#include "memory_mapping.h"
|
||||
#include "version.h"
|
||||
#include <coreinit/debug.h>
|
||||
#include <function_patcher/function_patching.h>
|
||||
#include <wums.h>
|
||||
@@ -7,6 +8,8 @@
|
||||
#include "logger.h"
|
||||
#endif
|
||||
|
||||
#define VERSION "v0.1"
|
||||
|
||||
WUMS_MODULE_EXPORT_NAME("homebrew_memorymapping");
|
||||
WUMS_MODULE_SKIP_INIT_FINI();
|
||||
WUMS_MODULE_INIT_BEFORE_RELOCATION_DONE_HOOK();
|
||||
@@ -28,11 +31,15 @@ WUMS_INITIALIZE(args) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
WUMS_APPLICATION_STARTS() {
|
||||
OSReport("Running MemoryMappingModule " VERSION VERSION_EXTRA "\n");
|
||||
#ifdef DEBUG
|
||||
initLogging();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
WUMS_APPLICATION_REQUESTS_EXIT() {
|
||||
deinitLogging();
|
||||
}
|
||||
|
||||
2
source/version.h
Normal file
2
source/version.h
Normal file
@@ -0,0 +1,2 @@
|
||||
#pragma once
|
||||
#define VERSION_EXTRA ""
|
||||
Reference in New Issue
Block a user