Fix pit.bin file path; make sure fat time is always DS epoch (Jan 1, 2000) instead of time(0)

This commit is contained in:
CasualPokePlayer 2025-07-16 16:19:29 -07:00
parent c551f1c5ad
commit 84e9d131fe
3 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@ -397,8 +397,8 @@ static const char* const PhotoNandDirs[] =
"0:/photo",
"0:/photo/private",
"0:/photo/private/ds",
"0:/photo/private/app",
"0:/photo/private/app/484E494A",
"0:/photo/private/ds/app",
"0:/photo/private/ds/app/484E494A",
};
static u8 GetRegionIdChar(melonDS::DSi_NAND::ConsoleRegion region)
@ -906,7 +906,7 @@ static melonDS::DSi_NAND::NANDImage CreateNandImage(
}
}
// create 0:/photo/private/app/484E494A/pit.bin
// create 0:/photo/private/ds/app/484E494A/pit.bin
{
constexpr u32 PIT_SIZE = 0x1F60;
auto pit = std::make_unique<u8[]>(PIT_SIZE);
@ -924,7 +924,7 @@ static melonDS::DSi_NAND::NANDImage CreateNandImage(
pitHeader->HeaderSize = sizeof(PitHeader);
FF_FIL file;
res = f_open(&file, "0:/photo/private/app/484E494A/pit.bin", FA_CREATE_NEW | FA_WRITE);
res = f_open(&file, "0:/photo/private/ds/app/484E494A/pit.bin", FA_CREATE_NEW | FA_WRITE);
if (res != FR_OK)
{
f_unmount("0:");

@ -1 +1 @@
Subproject commit 579d82aeb906a93c3c9a5c4f9c4075bd2d604fbf
Subproject commit 2e54b98f7cb109b50907ca516a84dba4c71ab9a0