-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Hi,
the recent version of the boot manager is not makeable with the recent verions of the dependencies. It seems some commands changed. At the moment I get the following error message at compiling:
__my__Downloads/CtrBootManager/source/hb_menu/boot.c: In function 'bootApp': __my__/Downloads/CtrBootManager/source/hb_menu/boot.c:73:29: error: incompatible type for argument 4 of 'FSUSER_OpenFileDirectly' FS_OPEN_READ, 0); ^~~~~~~~~~~~ In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7:0, from /opt/devkitpro/libctru/include/3ds.h:31, from __my__/Downloads/CtrBootManager/source/hb_menu/boot.c:1: /opt/devkitpro/libctru/include/3ds/services/fs.h:317:8: note: expected 'FS_Path {aka struct <anonymous>}' but argument is of type 'int' Result FSUSER_OpenFileDirectly(Handle* out, FS_ArchiveID archiveId, FS_Path archivePath, FS_Path filePath, u32 openFlags, u32 attributes); ^~~~~~~~~~~~~~~~~~~~~~~ /home/spigo/Downloads/CtrBootManager/source/hb_menu/boot.c:72:5: error: too few arguments to function 'FSUSER_OpenFileDirectly' FSUSER_OpenFileDirectly(&hbFileHandle, sdmcArchive, fsMakePath(PATH_ASCII, executablePath), ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7:0, from /opt/devkitpro/libctru/include/3ds.h:31, from __my__/Downloads/CtrBootManager/source/hb_menu/boot.c:1: /opt/devkitpro/libctru/include/3ds/services/fs.h:317:8: note: declared here Result FSUSER_OpenFileDirectly(Handle* out, FS_ArchiveID archiveId, FS_Path archivePath, FS_Path filePath, u32 openFlags, u32 attributes); ^~~~~~~~~~~~~~~~~~~~~~~ CMakeFiles/CtrBootManager.dir/build.make:374: recipe for target 'CMakeFiles/CtrBootManager.dir/source/hb_menu/boot.c.obj' failed make[2]: *** [CMakeFiles/CtrBootManager.dir/source/hb_menu/boot.c.obj] Error 1 CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/CtrBootManager.dir/all' failed make[1]: *** [CMakeFiles/CtrBootManager.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
(I replaced some sensitive paths with __my__)
I looked up in the documentation of the libctru (https://smealum.github.io/ctrulib/fs_8h.html#ae72d50f45f4573540c1ea2ae796ca905) and there are 5 arguments needed for FSUSER_OpenFileDirectly. Probably in the old version only one path argument should be given. But now one for ArchivePath and one for FilePath is neede.
I dont know much about the software structure and the libraries. Thats why I would please you to have a look on the code and update it.
THX very much.
Spigo