Skip to content

Commit

Permalink
upsteam: Fix bug in loadNintendoFirm; Bump version number and date
Browse files Browse the repository at this point in the history
  • Loading branch information
R-YaTian committed Dec 30, 2024
1 parent 3b493ad commit a9ae683
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion arm9/source/firm.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ u32 loadNintendoFirm(FirmwareType *firmType, FirmwareSource nandType, bool loadF
};

u32 i;
for(i = 0; i < 4; i++) if(memcmp(firm->section[1].hash, hashes[i], 0x20) == 0) break;
for(i = 0; i < sizeof(hashes)/sizeof(hashes[0]); i++)
{
if(memcmp(firm->section[1].hash, hashes[i], 0x20) == 0) break;
}

switch(i)
{
Expand Down
4 changes: 2 additions & 2 deletions sysmodules/rosalina/source/menus.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ void RosalinaMenu_AboutCnVer(void)
Draw_Lock();
Draw_DrawString(16, 16, COLOR_TITLE, "关于中文版");

u32 posY = Draw_DrawString(16, 48, COLOR_WHITE, " Luma3DS中文版基于官方最新的v13.2.1\n版本,加入中文字库,优化菜单显示,并\n支持中文金手指及金手指快捷键提示。");
posY = Draw_DrawString(16, posY + SPACING_Y + 4, COLOR_WHITE, " 感谢开源社区为此默默贡献的开发者们\n该中文化项目同样开源在Github上\n(https://github.com/R-YaTian/Luma3DS)\n本版本开源免费,禁止商业用途!\n Cynric & R-YaTian\n 2024/10/08");
u32 posY = Draw_DrawString(16, 48, COLOR_WHITE, " Luma3DS中文版基于官方最新的v13.3\n版本,加入中文字库,优化菜单显示,并\n支持中文金手指及金手指快捷键提示。");
posY = Draw_DrawString(16, posY + SPACING_Y + 4, COLOR_WHITE, " 感谢开源社区为此默默贡献的开发者们\n该中文化项目同样开源在Github上\n(https://github.com/R-YaTian/Luma3DS)\n本版本开源免费,禁止商业用途!\n Cynric & R-YaTian\n 2024/12/30");
Draw_FlushFramebuffer();
Draw_Unlock();
}
Expand Down

0 comments on commit a9ae683

Please sign in to comment.