Skip to content

Commit 2801d9d

Browse files
Version 1.2
Fixed config
1 parent 547e4cd commit 2801d9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818

1919
WUPS_PLUGIN_NAME("Code Patch Plugin");
2020
WUPS_PLUGIN_DESCRIPTION("This plugin dynamically patches executables with user-specified patches.");
21-
WUPS_PLUGIN_VERSION("v1.1");
21+
WUPS_PLUGIN_VERSION("v1.2");
2222
WUPS_PLUGIN_AUTHOR("pineapples721");
2323
WUPS_PLUGIN_LICENSE("GPL");
2424

2525
#define ENABLED_CONFIG_ID "enabled"
26-
#define NOTIFICATIONS_CONFIG_ID "logging"
26+
#define NOTIFICATIONS_CONFIG_ID "notifications"
2727
#define CODE_PATCH_PATH "fs:/vol/external01/wiiu/codepatches/"
2828
#define FS_MAX_MOUNTPATH_SIZE 128
2929

@@ -135,9 +135,9 @@ INITIALIZE_PLUGIN() {
135135
DEBUG_FUNCTION_LINE("Failed to open storage %s (%d)", WUPS_GetStorageStatusStr(storageRes), storageRes);
136136
} else {
137137
// Try to get values from storage
138-
if ((storageRes = WUPS_GetBool(nullptr, NOTIFICATIONS_CONFIG_ID, &enabled)) == WUPS_STORAGE_ERROR_NOT_FOUND) {
138+
if ((storageRes = WUPS_GetBool(nullptr, ENABLED_CONFIG_ID, &enabled)) == WUPS_STORAGE_ERROR_NOT_FOUND) {
139139
// Add the value to the storage if it is missing
140-
if (WUPS_StoreBool(nullptr, NOTIFICATIONS_CONFIG_ID, enabled) != WUPS_STORAGE_ERROR_SUCCESS) {
140+
if (WUPS_StoreBool(nullptr, ENABLED_CONFIG_ID, enabled) != WUPS_STORAGE_ERROR_SUCCESS) {
141141
DEBUG_FUNCTION_LINE("Failed to store bool");
142142
}
143143
} else if (storageRes != WUPS_STORAGE_ERROR_SUCCESS) {

0 commit comments

Comments
 (0)