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

Adding mii_ext to libnx #9

Open
ITotalJustice opened this issue Nov 24, 2023 · 1 comment
Open

Adding mii_ext to libnx #9

ITotalJustice opened this issue Nov 24, 2023 · 1 comment

Comments

@ITotalJustice
Copy link

Hi, firstly thank you for your homebrew. I had the same idea to allow for importing / exporting to and from 3ds. But then i found this which is more feature complete than what i had in mind 😄

I was wondering if it would be okay if add the functions / structs in mii_ext.h to libnx, crediting you as the author? I've added a few more missing functions as well.

Result miiDatabaseGet(MiiDatabase *db, MiiSourceFlag flag, MiiCharInfoElement *out_element, s32 count, s32 *total_out);
Result miiDatabaseUpdateLatest(MiiDatabase *db, MiiSourceFlag flag, const MiiCharInfo *info_in, MiiCharInfo *info_out);
Result miiDatabaseBuildDefault(MiiDatabase *db, MiiSourceFlag flag, MiiCharInfo *out_info);
Result miiDatabaseGet2(MiiDatabase *db, MiiSourceFlag flag, MiiStoreDataElement *out_element, s32 count, s32 *total_out); /// MiiServiceType_System
Result miiDatabaseGet3(MiiDatabase *db, MiiSourceFlag flag, MiiStoreData *out_stores, s32 count, s32 *total_out); /// MiiServiceType_System
Result miiDatabaseUpdateLatest1(MiiDatabase *db, MiiSourceFlag flag, const MiiStoreData *store_in, MiiStoreData *store_out); /// doesn't work for some reason???
Result miiDatabaseDelete(MiiDatabase *db, const MiiCreateId *id);
Result miiDatabaseDestroyFile(MiiDatabase *db); /// doesn't work, 203
Result miiDatabaseDeleteFile(MiiDatabase *db); /// doesn't work, 203
Result miiDatabaseFormat(MiiDatabase *db); /// doesn't work, 203
Result miiDatabaseIsBrokenDatabaseWithClearFlag(MiiDatabase *db, bool *out); /// MiiServiceType_System
Result miiDatabaseSetInterfaceVersion(MiiDatabase *db, u32 version); /// Idk what this is for, seems to accept any value
Result miiDatabaseConvert(MiiDatabase *db, const MiiVer3StoreData *in, MiiCharInfo *out); /// 5.0.0+
Result miiDatabaseConvertCoreDatatoCharInfo(MiiDatabase *db, const MiiCoreData *in, MiiCharInfo *out); /// 5.0.0+
Result miiDatabaseCharInfoToCoreData(MiiDatabase *db, const MiiCharInfo *in, MiiCoreData *out); /// 5.0.0+
Result miiDatabaseAppend(MiiDatabase *db, const MiiCharInfo *in); /// 5.0.0+
@Genwald
Copy link
Owner

Genwald commented Nov 30, 2023

Go ahead, that'd be great!

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

2 participants