Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not makeable because of changed libctru commands #23

Open
SpiGAndromeda opened this issue Feb 28, 2017 · 0 comments
Open

Not makeable because of changed libctru commands #23

SpiGAndromeda opened this issue Feb 28, 2017 · 0 comments

Comments

@SpiGAndromeda
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant