Homebrew LumaLocaleSwitcher - Nightly revision

  • Thread starter Thread starter Sonansune
  • Start date Start date
  • Views Views 15,022
  • Replies Replies 20
  • Likes Likes 2

Sonansune

Well-Known Member
Member
Joined
Jul 2, 2015
Messages
3,734
Solutions
1
Reaction score
1,050
Trophies
2
XP
2,280
Country
Canada
fully working with luma nightly version. (only compatible with luma 6.6 stable above version)


you can find it on the titledb site.

Luma Locale Switcher - Rvn (Someone)

upload_2017-2-12_15-57-11.png
 
Last edited by Sonansune,
Looking at the difference in the locale.c files, the original has this:
Code:
    char* locale_dir = (char*) calloc(PATH_MAX, sizeof(char));
    util_get_locale_path(locale_dir, PATH_MAX);
    FS_Archive sdmc_archive;

    Result res;
    if (R_FAILED(res = FSUSER_OpenArchive(&sdmc_archive, ARCHIVE_SDMC, fsMakePath(PATH_EMPTY,"")))) return res;

    // Create the locale directory if it doesn't exist
    // XXX This probably doesn't work if more than one path in the hierarchy DNE
    util_ensure_dir(&sdmc_archive, locale_dir);
    free(locale_dir);

While your code doesn't. So, if I've read your code correctly, it actually hasn't the code for making a directory.
 
Looking at the difference in the locale.c files, the original has this:
Code:
    char* locale_dir = (char*) calloc(PATH_MAX, sizeof(char));
    util_get_locale_path(locale_dir, PATH_MAX);
    FS_Archive sdmc_archive;

    Result res;
    if (R_FAILED(res = FSUSER_OpenArchive(&sdmc_archive, ARCHIVE_SDMC, fsMakePath(PATH_EMPTY,"")))) return res;

    // Create the locale directory if it doesn't exist
    // XXX This probably doesn't work if more than one path in the hierarchy DNE
    util_ensure_dir(&sdmc_archive, locale_dir);
    free(locale_dir);

While your code doesn't. So, if I've read your code correctly, it actually hasn't the code for making a directory.
have tried... it's useless for creating titleid folder. It only gen locales…… which is the titles dir in nightly case.
We want titleid not titles.
 
Looking at the difference in the locale.c files, the original has this:
Code:
    char* locale_dir = (char*) calloc(PATH_MAX, sizeof(char));
    util_get_locale_path(locale_dir, PATH_MAX);
    FS_Archive sdmc_archive;

    Result res;
    if (R_FAILED(res = FSUSER_OpenArchive(&sdmc_archive, ARCHIVE_SDMC, fsMakePath(PATH_EMPTY,"")))) return res;

    // Create the locale directory if it doesn't exist
    // XXX This probably doesn't work if more than one path in the hierarchy DNE
    util_ensure_dir(&sdmc_archive, locale_dir);
    free(locale_dir);

While your code doesn't. So, if I've read your code correctly, it actually hasn't the code for making a directory.
I read the code again, It's my mistake:P, works like a charm now.
thanks!!!

now working on the locale file cache loading.:lol:
 

Site & Scene News

Popular threads in this forum