mirror of
https://github.com/wiiu-env/ContentRedirectionModule.git
synced 2024-06-02 23:48:49 +02:00
27 lines
775 B
C++
27 lines
775 B
C++
|
#include "FSDirReplacements.h"
|
||
|
#include "FSFileReplacements.h"
|
||
|
#include "FileUtils.h"
|
||
|
#include "utils/logger.h"
|
||
|
#include <wums.h>
|
||
|
|
||
|
WUMS_MODULE_EXPORT_NAME("homebrew_content_redirection");
|
||
|
WUMS_USE_WUT_DEVOPTAB();
|
||
|
|
||
|
WUMS_INITIALIZE() {
|
||
|
initLogging();
|
||
|
DEBUG_FUNCTION_LINE("Patch functions");
|
||
|
// we only patch static functions, we don't need re-patch them at every launch
|
||
|
FunctionPatcherPatchFunction(fs_file_function_replacements, fs_file_function_replacements_size);
|
||
|
FunctionPatcherPatchFunction(fs_dir_function_replacements, fs_dir_function_replacements_size);
|
||
|
DEBUG_FUNCTION_LINE("Patch functions finished");
|
||
|
deinitLogging();
|
||
|
}
|
||
|
|
||
|
WUMS_APPLICATION_STARTS() {
|
||
|
initLogging();
|
||
|
}
|
||
|
|
||
|
WUMS_APPLICATION_ENDS() {
|
||
|
clearFSLayer();
|
||
|
deinitLogging();
|
||
|
}
|