When attempting to build on the latest version of devkitpro I get these errors:
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
main.c
/home/midnoclose/Development/GYTB/source/main.c: In function 'setupExtdata':
/home/midnoclose/Development/GYTB/source/main.c:144:47: error: 'mediatype_SDMC' undeclared (first use in this function)
144 | u32 extdata_archive_lowpathdata[3] = {mediatype_SDMC, 0x000014d1, 0};
| ^~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:144:47: note: each undeclared identifier is reported only once for each function it appears in
/home/midnoclose/Development/GYTB/source/main.c:145:9: error: unknown type name 'FS_archive'; did you mean 'FS_Archive'?
145 | FS_archive extdata_archive = (FS_archive){ARCH_EXTDATA, (FS_path){PATH_BINARY, 0xC, (u8*)extdata_archive_lowpathdata}};
| ^~~~~~~~~~
| FS_Archive
/home/midnoclose/Development/GYTB/source/main.c:145:39: error: 'FS_archive' undeclared (first use in this function); did you mean 'FS_Archive'?
145 | FS_archive extdata_archive = (FS_archive){ARCH_EXTDATA, (FS_path){PATH_BINARY, 0xC, (u8*)extdata_archive_lowpathdata}};
| ^~~~~~~~~~
| FS_Archive
/home/midnoclose/Development/GYTB/source/main.c:145:50: error: expected ',' or ';' before '{' token
145 | FS_archive extdata_archive = (FS_archive){ARCH_EXTDATA, (FS_path){PATH_BINARY, 0xC, (u8*)extdata_archive_lowpathdata}};
| ^
/home/midnoclose/Development/GYTB/source/main.c:147:47: error: incompatible type for argument 2 of 'FSUSER_OpenArchive'
147 | Result ret = FSUSER_OpenArchive(NULL, &extdata_archive);
| ^~~~~~~~~~~~~~~~
| |
| int *
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:390:61: note: expected 'FS_ArchiveID' but argument is of type 'int *'
390 | Result FSUSER_OpenArchive(FS_Archive* archive, FS_ArchiveID id, FS_Path path);
| ~~~~~~~~~~~~~^~
/home/midnoclose/Development/GYTB/source/main.c:147:22: error: too few arguments to function 'FSUSER_OpenArchive'
147 | Result ret = FSUSER_OpenArchive(NULL, &extdata_archive);
| ^~~~~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:390:8: note: declared here
390 | Result FSUSER_OpenArchive(FS_Archive* archive, FS_ArchiveID id, FS_Path path);
| ^~~~~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:148:29: warning: passing argument 1 of 'FSUSER_CloseArchive' makes integer from pointer without a cast [-Wint-conversion]
148 | FSUSER_CloseArchive(NULL, &extdata_archive);
| ^~~~
| |
| void *
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:407:39: note: expected 'FS_Archive' {aka 'long long unsigned int'} but argument is of type 'void *'
407 | Result FSUSER_CloseArchive(FS_Archive archive);
| ~~~~~~~~~~~^~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:148:9: error: too many arguments to function 'FSUSER_CloseArchive'
148 | FSUSER_CloseArchive(NULL, &extdata_archive);
| ^~~~~~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:407:8: note: declared here
407 | Result FSUSER_CloseArchive(FS_Archive archive);
| ^~~~~~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:144:13: warning: unused variable 'extdata_archive_lowpathdata' [-Wunused-variable]
144 | u32 extdata_archive_lowpathdata[3] = {mediatype_SDMC, 0x000014d1, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c: In function 'dumpPrexistingBadges':
/home/midnoclose/Development/GYTB/source/main.c:203:47: error: 'mediatype_SDMC' undeclared (first use in this function)
203 | u32 extdata_archive_lowpathdata[3] = {mediatype_SDMC, 0x000014d1, 0};
| ^~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:204:9: error: unknown type name 'FS_archive'; did you mean 'FS_Archive'?
204 | FS_archive extdata_archive = (FS_archive){ARCH_EXTDATA, (FS_path){PATH_BINARY, 0xC, (u8*)extdata_archive_lowpathdata}};
| ^~~~~~~~~~
| FS_Archive
/home/midnoclose/Development/GYTB/source/main.c:204:39: error: 'FS_archive' undeclared (first use in this function); did you mean 'FS_Archive'?
204 | FS_archive extdata_archive = (FS_archive){ARCH_EXTDATA, (FS_path){PATH_BINARY, 0xC, (u8*)extdata_archive_lowpathdata}};
| ^~~~~~~~~~
| FS_Archive
/home/midnoclose/Development/GYTB/source/main.c:204:50: error: expected ',' or ';' before '{' token
204 | FS_archive extdata_archive = (FS_archive){ARCH_EXTDATA, (FS_path){PATH_BINARY, 0xC, (u8*)extdata_archive_lowpathdata}};
| ^
/home/midnoclose/Development/GYTB/source/main.c:205:9: error: unknown type name 'FS_path'; did you mean 'FS_Path'?
205 | FS_path badgeDataPath = FS_makePath(PATH_CHAR, "/BadgeData.dat");
| ^~~~~~~
| FS_Path
/home/midnoclose/Development/GYTB/source/main.c:205:33: warning: implicit declaration of function 'FS_makePath'; did you mean 'fsMakePath'? [-Wimplicit-function-declaration]
205 | FS_path badgeDataPath = FS_makePath(PATH_CHAR, "/BadgeData.dat");
| ^~~~~~~~~~~
| fsMakePath
/home/midnoclose/Development/GYTB/source/main.c:205:45: error: 'PATH_CHAR' undeclared (first use in this function); did you mean 'PATH_MAX'?
205 | FS_path badgeDataPath = FS_makePath(PATH_CHAR, "/BadgeData.dat");
| ^~~~~~~~~
| PATH_MAX
/home/midnoclose/Development/GYTB/source/main.c:206:9: error: unknown type name 'FS_path'; did you mean 'FS_Path'?
206 | FS_path badgeMngPath = FS_makePath(PATH_CHAR, "/BadgeMngFile.dat");
| ^~~~~~~
| FS_Path
/home/midnoclose/Development/GYTB/source/main.c:226:40: error: incompatible type for argument 2 of 'FSUSER_OpenArchive'
226 | ret = FSUSER_OpenArchive(NULL, &extdata_archive);
| ^~~~~~~~~~~~~~~~
| |
| int *
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:390:61: note: expected 'FS_ArchiveID' but argument is of type 'int *'
390 | Result FSUSER_OpenArchive(FS_Archive* archive, FS_ArchiveID id, FS_Path path);
| ~~~~~~~~~~~~~^~
/home/midnoclose/Development/GYTB/source/main.c:226:15: error: too few arguments to function 'FSUSER_OpenArchive'
226 | ret = FSUSER_OpenArchive(NULL, &extdata_archive);
| ^~~~~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:390:8: note: declared here
390 | Result FSUSER_OpenArchive(FS_Archive* archive, FS_ArchiveID id, FS_Path path);
| ^~~~~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:229:37: warning: passing argument 2 of 'FSUSER_OpenFile' makes integer from pointer without a cast [-Wint-conversion]
229 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, badgeDataPath, FS_OPEN_READ, 0);
| ^~~~~~~~~~~
| |
| Handle * {aka long unsigned int *}
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:48: note: expected 'FS_Archive' {aka 'long long unsigned int'} but argument is of type 'Handle *' {aka 'long unsigned int *'}
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ~~~~~~~~~~~^~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:229:50: error: incompatible type for argument 3 of 'FSUSER_OpenFile'
229 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, badgeDataPath, FS_OPEN_READ, 0);
| ^~~~~~~~~~~~~~~
| |
| int
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:65: note: expected 'FS_Path' but argument is of type 'int'
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ~~~~~~~~^~~~
/home/midnoclose/Development/GYTB/source/main.c:229:15: error: too many arguments to function 'FSUSER_OpenFile'
229 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, badgeDataPath, FS_OPEN_READ, 0);
| ^~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:8: note: declared here
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ^~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:237:37: warning: passing argument 2 of 'FSUSER_OpenFile' makes integer from pointer without a cast [-Wint-conversion]
237 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, badgeMngPath, FS_OPEN_READ, 0);
| ^~~~~~~~~~~
| |
| Handle * {aka long unsigned int *}
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:48: note: expected 'FS_Archive' {aka 'long long unsigned int'} but argument is of type 'Handle *' {aka 'long unsigned int *'}
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ~~~~~~~~~~~^~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:237:50: error: incompatible type for argument 3 of 'FSUSER_OpenFile'
237 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, badgeMngPath, FS_OPEN_READ, 0);
| ^~~~~~~~~~~~~~~
| |
| int
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:65: note: expected 'FS_Path' but argument is of type 'int'
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ~~~~~~~~^~~~
/home/midnoclose/Development/GYTB/source/main.c:237:15: error: too many arguments to function 'FSUSER_OpenFile'
237 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, badgeMngPath, FS_OPEN_READ, 0);
| ^~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:8: note: declared here
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ^~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:286:29: warning: passing argument 1 of 'FSUSER_CloseArchive' makes integer from pointer without a cast [-Wint-conversion]
286 | FSUSER_CloseArchive(NULL, &extdata_archive);
| ^~~~
| |
| void *
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:407:39: note: expected 'FS_Archive' {aka 'long long unsigned int'} but argument is of type 'void *'
407 | Result FSUSER_CloseArchive(FS_Archive archive);
| ~~~~~~~~~~~^~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:286:9: error: too many arguments to function 'FSUSER_CloseArchive'
286 | FSUSER_CloseArchive(NULL, &extdata_archive);
| ^~~~~~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:407:8: note: declared here
407 | Result FSUSER_CloseArchive(FS_Archive archive);
| ^~~~~~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:203:13: warning: unused variable 'extdata_archive_lowpathdata' [-Wunused-variable]
203 | u32 extdata_archive_lowpathdata[3] = {mediatype_SDMC, 0x000014d1, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c: In function 'writeToExtdata':
/home/midnoclose/Development/GYTB/source/main.c:294:47: error: 'mediatype_SDMC' undeclared (first use in this function)
294 | u32 extdata_archive_lowpathdata[3] = {mediatype_SDMC, 0x000014d1, 0};
| ^~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:295:9: error: unknown type name 'FS_archive'; did you mean 'FS_Archive'?
295 | FS_archive extdata_archive = (FS_archive){ARCH_EXTDATA, (FS_path){PATH_BINARY, 0xC, (u8*)extdata_archive_lowpathdata}};
| ^~~~~~~~~~
| FS_Archive
/home/midnoclose/Development/GYTB/source/main.c:295:39: error: 'FS_archive' undeclared (first use in this function); did you mean 'FS_Archive'?
295 | FS_archive extdata_archive = (FS_archive){ARCH_EXTDATA, (FS_path){PATH_BINARY, 0xC, (u8*)extdata_archive_lowpathdata}};
| ^~~~~~~~~~
| FS_Archive
/home/midnoclose/Development/GYTB/source/main.c:295:50: error: expected ',' or ';' before '{' token
295 | FS_archive extdata_archive = (FS_archive){ARCH_EXTDATA, (FS_path){PATH_BINARY, 0xC, (u8*)extdata_archive_lowpathdata}};
| ^
/home/midnoclose/Development/GYTB/source/main.c:395:40: error: incompatible type for argument 2 of 'FSUSER_OpenArchive'
395 | ret = FSUSER_OpenArchive(NULL, &extdata_archive);
| ^~~~~~~~~~~~~~~~
| |
| int *
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:390:61: note: expected 'FS_ArchiveID' but argument is of type 'int *'
390 | Result FSUSER_OpenArchive(FS_Archive* archive, FS_ArchiveID id, FS_Path path);
| ~~~~~~~~~~~~~^~
/home/midnoclose/Development/GYTB/source/main.c:395:15: error: too few arguments to function 'FSUSER_OpenArchive'
395 | ret = FSUSER_OpenArchive(NULL, &extdata_archive);
| ^~~~~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:390:8: note: declared here
390 | Result FSUSER_OpenArchive(FS_Archive* archive, FS_ArchiveID id, FS_Path path);
| ^~~~~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:398:9: error: unknown type name 'FS_path'; did you mean 'FS_Path'?
398 | FS_path path = FS_makePath(PATH_CHAR, "/BadgeData.dat");
| ^~~~~~~
| FS_Path
/home/midnoclose/Development/GYTB/source/main.c:398:36: error: 'PATH_CHAR' undeclared (first use in this function); did you mean 'PATH_MAX'?
398 | FS_path path = FS_makePath(PATH_CHAR, "/BadgeData.dat");
| ^~~~~~~~~
| PATH_MAX
/home/midnoclose/Development/GYTB/source/main.c:400:33: warning: passing argument 1 of 'FSUSER_CreateFile' makes integer from pointer without a cast [-Wint-conversion]
400 | ret = FSUSER_CreateFile(NULL, extdata_archive, path, badgeDataSize);
| ^~~~
| |
| void *
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:357:37: note: expected 'FS_Archive' {aka 'long long unsigned int'} but argument is of type 'void *'
357 | Result FSUSER_CreateFile(FS_Archive archive, FS_Path path, u32 attributes, u64 fileSize);
| ~~~~~~~~~~~^~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:400:39: error: incompatible type for argument 2 of 'FSUSER_CreateFile'
400 | ret = FSUSER_CreateFile(NULL, extdata_archive, path, badgeDataSize);
| ^~~~~~~~~~~~~~~
| |
| int
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:357:54: note: expected 'FS_Path' but argument is of type 'int'
357 | Result FSUSER_CreateFile(FS_Archive archive, FS_Path path, u32 attributes, u64 fileSize);
| ~~~~~~~~^~~~
/home/midnoclose/Development/GYTB/source/main.c:401:37: warning: passing argument 2 of 'FSUSER_OpenFile' makes integer from pointer without a cast [-Wint-conversion]
401 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, path, FS_OPEN_WRITE, 0);
| ^~~~~~~~~~~
| |
| Handle * {aka long unsigned int *}
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:48: note: expected 'FS_Archive' {aka 'long long unsigned int'} but argument is of type 'Handle *' {aka 'long unsigned int *'}
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ~~~~~~~~~~~^~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:401:50: error: incompatible type for argument 3 of 'FSUSER_OpenFile'
401 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, path, FS_OPEN_WRITE, 0);
| ^~~~~~~~~~~~~~~
| |
| int
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:65: note: expected 'FS_Path' but argument is of type 'int'
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ~~~~~~~~^~~~
/home/midnoclose/Development/GYTB/source/main.c:401:15: error: too many arguments to function 'FSUSER_OpenFile'
401 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, path, FS_OPEN_WRITE, 0);
| ^~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:8: note: declared here
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ^~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:438:27: warning: passing argument 1 of 'FSUSER_CreateFile' makes integer from pointer without a cast [-Wint-conversion]
438 | FSUSER_CreateFile(NULL, extdata_archive, path, badgeMngSize);
| ^~~~
| |
| void *
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:357:37: note: expected 'FS_Archive' {aka 'long long unsigned int'} but argument is of type 'void *'
357 | Result FSUSER_CreateFile(FS_Archive archive, FS_Path path, u32 attributes, u64 fileSize);
| ~~~~~~~~~~~^~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:438:33: error: incompatible type for argument 2 of 'FSUSER_CreateFile'
438 | FSUSER_CreateFile(NULL, extdata_archive, path, badgeMngSize);
| ^~~~~~~~~~~~~~~
| |
| int
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:357:54: note: expected 'FS_Path' but argument is of type 'int'
357 | Result FSUSER_CreateFile(FS_Archive archive, FS_Path path, u32 attributes, u64 fileSize);
| ~~~~~~~~^~~~
/home/midnoclose/Development/GYTB/source/main.c:441:37: warning: passing argument 2 of 'FSUSER_OpenFile' makes integer from pointer without a cast [-Wint-conversion]
441 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, path, FS_OPEN_READ, 0);
| ^~~~~~~~~~~
| |
| Handle * {aka long unsigned int *}
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:48: note: expected 'FS_Archive' {aka 'long long unsigned int'} but argument is of type 'Handle *' {aka 'long unsigned int *'}
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ~~~~~~~~~~~^~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:441:50: error: incompatible type for argument 3 of 'FSUSER_OpenFile'
441 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, path, FS_OPEN_READ, 0);
| ^~~~~~~~~~~~~~~
| |
| int
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:65: note: expected 'FS_Path' but argument is of type 'int'
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ~~~~~~~~^~~~
/home/midnoclose/Development/GYTB/source/main.c:441:15: error: too many arguments to function 'FSUSER_OpenFile'
441 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, path, FS_OPEN_READ, 0);
| ^~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:8: note: declared here
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ^~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:448:37: warning: passing argument 2 of 'FSUSER_OpenFile' makes integer from pointer without a cast [-Wint-conversion]
448 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, path, FS_OPEN_WRITE, 0);
| ^~~~~~~~~~~
| |
| Handle * {aka long unsigned int *}
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:48: note: expected 'FS_Archive' {aka 'long long unsigned int'} but argument is of type 'Handle *' {aka 'long unsigned int *'}
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ~~~~~~~~~~~^~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:448:50: error: incompatible type for argument 3 of 'FSUSER_OpenFile'
448 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, path, FS_OPEN_WRITE, 0);
| ^~~~~~~~~~~~~~~
| |
| int
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:65: note: expected 'FS_Path' but argument is of type 'int'
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ~~~~~~~~^~~~
/home/midnoclose/Development/GYTB/source/main.c:448:15: error: too many arguments to function 'FSUSER_OpenFile'
448 | ret = FSUSER_OpenFile(NULL, &filehandle, extdata_archive, path, FS_OPEN_WRITE, 0);
| ^~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:307:8: note: declared here
307 | Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
| ^~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:454:29: warning: passing argument 1 of 'FSUSER_CloseArchive' makes integer from pointer without a cast [-Wint-conversion]
454 | FSUSER_CloseArchive(NULL, &extdata_archive);
| ^~~~
| |
| void *
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:407:39: note: expected 'FS_Archive' {aka 'long long unsigned int'} but argument is of type 'void *'
407 | Result FSUSER_CloseArchive(FS_Archive archive);
| ~~~~~~~~~~~^~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:454:9: error: too many arguments to function 'FSUSER_CloseArchive'
454 | FSUSER_CloseArchive(NULL, &extdata_archive);
| ^~~~~~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
from /opt/devkitpro/libctru/include/3ds.h:33,
from /home/midnoclose/Development/GYTB/source/main.c:3:
/opt/devkitpro/libctru/include/3ds/services/fs.h:407:8: note: declared here
407 | Result FSUSER_CloseArchive(FS_Archive archive);
| ^~~~~~~~~~~~~~~~~~~
/home/midnoclose/Development/GYTB/source/main.c:294:13: warning: unused variable 'extdata_archive_lowpathdata' [-Wunused-variable]
294 | u32 extdata_archive_lowpathdata[3] = {mediatype_SDMC, 0x000014d1, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [/opt/devkitpro/devkitARM/base_rules:85: main.o] Error 1
make: *** [Makefile:91: build] Error 2
When attempting to build on the latest version of devkitpro I get these errors: