Skip to content

Commit

Permalink
Fix some DS(i) banner text being cut off
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Apr 2, 2020
1 parent e361784 commit 2493edf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions quickmenu/arm9/source/iconTitle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ void getGameInfo(int num, bool isDir, const char* name)
fread(&ndsBanner, 1, NDS_BANNER_SIZE_ZH_KO, bannerFile);
fclose(bannerFile);

tonccpy(cachedTitle[num], ndsBanner.titles[setGameLanguage], TITLE_CACHE_SIZE);
tonccpy(cachedTitle[num], ndsBanner.titles[setGameLanguage], TITLE_CACHE_SIZE*sizeof(u16));

return;
}
Expand All @@ -730,7 +730,7 @@ void getGameInfo(int num, bool isDir, const char* name)
fread(&ndsBanner, 1, NDS_BANNER_SIZE_ZH_KO, bannerFile);
fclose(bannerFile);

tonccpy(cachedTitle[num], ndsBanner.titles[setGameLanguage], TITLE_CACHE_SIZE);
tonccpy(cachedTitle[num], ndsBanner.titles[setGameLanguage], TITLE_CACHE_SIZE*sizeof(u16));

return;
}
Expand Down Expand Up @@ -760,7 +760,7 @@ void getGameInfo(int num, bool isDir, const char* name)
fread(&ndsBanner, 1, NDS_BANNER_SIZE_ZH_KO, bannerFile);
fclose(bannerFile);

tonccpy(cachedTitle[num], ndsBanner.titles[setGameLanguage], TITLE_CACHE_SIZE);
tonccpy(cachedTitle[num], ndsBanner.titles[setGameLanguage], TITLE_CACHE_SIZE*sizeof(u16));

return;
}
Expand All @@ -784,7 +784,7 @@ void getGameInfo(int num, bool isDir, const char* name)
if (currentLang == 0) break;
currentLang--;
}
tonccpy(cachedTitle[num], ndsBanner.titles[currentLang], TITLE_CACHE_SIZE);
tonccpy(cachedTitle[num], ndsBanner.titles[currentLang], TITLE_CACHE_SIZE*sizeof(u16));
infoFound[num] = true;

// banner sequence
Expand Down
4 changes: 2 additions & 2 deletions romsel_dsimenutheme/arm9/source/iconTitle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ void getGameInfo(bool isDir, const char *name, int num) {
fclose(bannerFile);

tonccpy(bnriconTile[num], (char *)&ndsBanner, 0x23C0);
tonccpy(cachedTitle[num], ndsBanner.titles[setGameLanguage], TITLE_CACHE_SIZE);
tonccpy(cachedTitle[num], ndsBanner.titles[setGameLanguage], TITLE_CACHE_SIZE*sizeof(u16));

return;
}
Expand All @@ -525,7 +525,7 @@ void getGameInfo(bool isDir, const char *name, int num) {
}

tonccpy(bnriconTile[num], (char *)&ndsBanner, 0x23C0);
tonccpy(cachedTitle[num], ndsBanner.titles[currentLang], TITLE_CACHE_SIZE);
tonccpy(cachedTitle[num], ndsBanner.titles[currentLang], TITLE_CACHE_SIZE*sizeof(u16));

infoFound[num] = true;

Expand Down

0 comments on commit 2493edf

Please sign in to comment.