diff options
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/main.c b/apps/main.c index a88cd73ef7..2f3b246210 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include "led.h" | 31 | #include "led.h" |
32 | #include "../kernel-internal.h" | 32 | #include "../kernel-internal.h" |
33 | #include "button.h" | 33 | #include "button.h" |
34 | #include "core_keymap.h" | ||
34 | #include "tree.h" | 35 | #include "tree.h" |
35 | #include "filetypes.h" | 36 | #include "filetypes.h" |
36 | #include "panic.h" | 37 | #include "panic.h" |
@@ -175,6 +176,15 @@ int main(void) | |||
175 | usb_start_monitoring(); | 176 | usb_start_monitoring(); |
176 | #endif | 177 | #endif |
177 | 178 | ||
179 | #if !defined(DISABLE_ACTION_REMAP) && defined(CORE_KEYREMAP_FILE) | ||
180 | if (file_exists(CORE_KEYREMAP_FILE)) | ||
181 | { | ||
182 | int mapct = core_load_key_remap(CORE_KEYREMAP_FILE); | ||
183 | if (mapct <= 0) | ||
184 | splashf(HZ, "key remap failed: %d, %s", mapct, CORE_KEYREMAP_FILE); | ||
185 | } | ||
186 | #endif | ||
187 | |||
178 | #ifdef AUTOROCK | 188 | #ifdef AUTOROCK |
179 | { | 189 | { |
180 | char filename[MAX_PATH]; | 190 | char filename[MAX_PATH]; |