diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-07 11:53:40 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-11 10:58:20 -0500 |
commit | 7fa48faeb55fb43b6a4e727d0abd104b267c89a4 (patch) | |
tree | 4f3a735bc72009dc100045c8964d937be1cce7e4 /apps/debug_menu.c | |
parent | 439b4e8bcad57fac53f4286033f431e7e9df6546 (diff) | |
download | rockbox-7fa48faeb55fb43b6a4e727d0abd104b267c89a4.tar.gz rockbox-7fa48faeb55fb43b6a4e727d0abd104b267c89a4.zip |
multiboot: Refactor duplicated functions to a separate file
The implementation of write_bootdata() and get_redirect_dir() was
copied verbatim in two different places, obviously a bad thing for
maintainability. This moves them to a new file multiboot.c as they
are only used for multiboot.
Change-Id: Id0279216e4dd019f8bf612a81d3835eff010e506
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 6b76aac162..3c089df8bb 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -128,6 +128,7 @@ | |||
128 | 128 | ||
129 | #if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) | 129 | #if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) |
130 | #include "bootdata.h" | 130 | #include "bootdata.h" |
131 | #include "multiboot.h" | ||
131 | #include "rbpaths.h" | 132 | #include "rbpaths.h" |
132 | #include "pathfuncs.h" | 133 | #include "pathfuncs.h" |
133 | #include "rb-loader.h" | 134 | #include "rb-loader.h" |