Hello everyone, I'm trying to do a silly app that has something to do with installed titles and their icons. Been looking at the source of various apps that do the same (mostly FBI, JKSM and freeShop) but anytime I try to call AM_* it crashes
I understand the need for it o be compiled as .cia to have elevated privileges but either I don't know how to set up the ".rsf" for makerom or I'm doing something wrong with the services/permissions on it
On another side every time I try to use any FILE operation like fopen or fgets Intellisense tells me "There's too many arguments for function call X", the app compiles just fine, it bothers me a bit though
I understand the need for it o be compiled as .cia to have elevated privileges but either I don't know how to set up the ".rsf" for makerom or I'm doing something wrong with the services/permissions on it
Code:
u64* titleIds; //array to read tileids to
u32* titleCount; //number of titles installed
AM_GetTitleCount(FS_MediaType::MEDIATYPE_SD, titleCount);
titleIds = new u64[*titleCount];
AM_GetTitleList(nullptr, FS_MediaType::MEDIATYPE_SD, *titleCount, titleIds);
On another side every time I try to use any FILE operation like fopen or fgets Intellisense tells me "There's too many arguments for function call X", the app compiles just fine, it bothers me a bit though