Homebrew LumaLocaleSwitcher - Nightly revision

Sonansune

Well-Known Member
OP
Member
Joined
Jul 2, 2015
Messages
3,734
Trophies
1
XP
2,142
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,

Slattz

Easygoing Fairy
Member
Joined
Nov 21, 2015
Messages
1,259
Trophies
1
XP
1,787
Country
Ireland
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.
 

Sonansune

Well-Known Member
OP
Member
Joined
Jul 2, 2015
Messages
3,734
Trophies
1
XP
2,142
Country
Canada
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.
 

Sonansune

Well-Known Member
OP
Member
Joined
Jul 2, 2015
Messages
3,734
Trophies
1
XP
2,142
Country
Canada
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

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: @salazarcosplay, no sabría cómo decirte