more shit
This commit is contained in:
parent
81623e5b22
commit
c9b36017b1
|
@ -289,7 +289,7 @@ void FATStorage::SaveIndex()
|
|||
}
|
||||
|
||||
|
||||
bool FATStorage::ExportFile(std::string path, std::string out, fs::file_time_type& modtime)
|
||||
bool FATStorage::ExportFile(std::string path, std::string out)
|
||||
{
|
||||
FF_FIL file;
|
||||
FILE* fout;
|
||||
|
@ -334,8 +334,6 @@ bool FATStorage::ExportFile(std::string path, std::string out, fs::file_time_typ
|
|||
fclose(fout);
|
||||
f_close(&file);
|
||||
|
||||
modtime = fs::last_write_time(out);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -407,9 +405,10 @@ void FATStorage::ExportDirectory(std::string path, std::string outbase, int leve
|
|||
|
||||
if (doexport)
|
||||
{
|
||||
fs::file_time_type modtime;
|
||||
if (ExportFile("0:/"+fullpath, outbase+"/"+fullpath, modtime))
|
||||
std::string outpath = outbase+"/"+fullpath;
|
||||
if (ExportFile("0:/"+fullpath, outpath))
|
||||
{
|
||||
fs::file_time_type modtime = fs::last_write_time(outpath);
|
||||
s64 modtime_raw = std::chrono::duration_cast<std::chrono::seconds>(modtime.time_since_epoch()).count();
|
||||
|
||||
FileIndexEntry& entry = FileIndex[fullpath];
|
||||
|
|
|
@ -60,7 +60,7 @@ private:
|
|||
void LoadIndex();
|
||||
void SaveIndex();
|
||||
|
||||
bool ExportFile(std::string path, std::string out, std::filesystem::file_time_type& modtime);
|
||||
bool ExportFile(std::string path, std::string out);
|
||||
void ExportDirectory(std::string path, std::string outbase, int level);
|
||||
bool DeleteHostDirectory(std::string path, std::string outbase, int level);
|
||||
void ExportChanges(std::string outbase);
|
||||
|
|
|
@ -1167,7 +1167,7 @@ CartHomebrew::CartHomebrew(u8* rom, u32 len, u32 chipid) : CartCommon(rom, len,
|
|||
//if (Config::DLDIEnable)
|
||||
if (true)
|
||||
{
|
||||
ApplyDLDIPatch(melonDLDI, sizeof(melonDLDI), true);
|
||||
ApplyDLDIPatch(melonDLDI, sizeof(melonDLDI), false);
|
||||
SD = new FATStorage("melonDLDI.bin", 0, false, "dldi");
|
||||
SD->Open();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue