From 5e53161cb18bffd6702c66a54b1e7ef2f5622f88 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 13 Feb 2022 17:34:08 +0100 Subject: [PATCH] Minor code cleanup --- src/FileUtils.cpp | 2 -- src/main.cpp | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/FileUtils.cpp b/src/FileUtils.cpp index 6216448..9286d86 100644 --- a/src/FileUtils.cpp +++ b/src/FileUtils.cpp @@ -25,8 +25,6 @@ FSCmdBlockBody *fsCmdBlockGetBody(FSCmdBlock *cmdBlock) { return body; } -std::mutex sendMutex; - FSStatus send_result_async(FSClient *client, FSCmdBlock *block, FSAsyncData *asyncData, FSStatus status) { if (asyncData->callback != nullptr) { if (asyncData->ioMsgQueue != nullptr) { diff --git a/src/main.cpp b/src/main.cpp index 4493c44..3d482e9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,11 +21,10 @@ WUMS_MODULE_EXPORT_NAME("homebrew_rpx_loader"); WUMS_USE_WUT_DEVOPTAB(); - WUMS_INITIALIZE() { initLogging(); DEBUG_FUNCTION_LINE("Patch functions"); - // we only patch static functions, we don't need re-patch them and every launch + // 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); FunctionPatcherPatchFunction(rpx_utils_function_replacements, rpx_utils_function_replacements_size);