Some fixes and update french language (#46)

* Fix starred homebrew list logging, fix hbmenu identification when backing up it and logging it correctly, update french language.

Signed-off-by: shadow2560 <24191064+shadow2560@users.noreply.github.com>
This commit is contained in:
shadow2560
2024-12-24 23:21:54 +01:00
committed by GitHub
parent 3df676df0f
commit a2c9b63dfd
3 changed files with 45 additions and 3 deletions

View File

@@ -1053,9 +1053,9 @@ App::~App() {
NacpStruct nacp;
fs::FsNativeSd fs;
if (R_SUCCEEDED(nro_get_nacp("/hbmenu.nro", nacp)) && std::strcmp(nacp.lang[0].name, "sphaira")) {
log_write("backing up hbmenu\n");
log_write("backing up hbmenu.nro\n");
if (R_FAILED(fs.copy_entire_file("/switch/hbmenu.nro", "/hbmenu.nro", true))) {
log_write("failed to copy sphaire.nro to hbmenu.nro\n");
log_write("failed to backup hbmenu.nro\n");
}
} else {
log_write("not backing up\n");

View File

@@ -317,7 +317,7 @@ void Menu::Sort() {
fs::FsPath star_path;
for (auto& p : m_entries) {
p.has_star = fs.FileExists(GenerateStarPath(p.path));
if (p.has_star) {
if (p.has_star == true) {
log_write("found star: %s\n", p.path.s);
} else {
log_write("no star: %s\n", p.path.s);