Fix a typo in a log message
Also moved a logging statement after an if statement check. We don't want to signify creation of something before checking its validity.
This commit is contained in:
+3
-4
@@ -583,13 +583,12 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
u64 new_block = FindFreeBlock();
|
u64 new_block = FindFreeBlock();
|
||||||
|
|
||||||
ConLog.Write("CREATION ENTRY AT 0x%llx", new_block);
|
|
||||||
if(!new_block)
|
if(!new_block)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ConLog.Write("CREATING ENTRY AT 0x%llx", new_block);
|
||||||
WriteBlock(new_block, g_used_block);
|
WriteBlock(new_block, g_used_block);
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -739,7 +738,7 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConLog.Write("ENTRY FINDED AT 0x%llx", file_block);
|
ConLog.Write("ENTRY FOUND AT 0x%llx", file_block);
|
||||||
m_file.Open(file_block);
|
m_file.Open(file_block);
|
||||||
|
|
||||||
return vfsFileBase::Open(path, mode);
|
return vfsFileBase::Open(path, mode);
|
||||||
@@ -769,7 +768,7 @@ public:
|
|||||||
|
|
||||||
if(entry.type == vfsHDD_Entry_Dir && name != "." && name != "..")
|
if(entry.type == vfsHDD_Entry_Dir && name != "." && name != "..")
|
||||||
{
|
{
|
||||||
ConLog.Warning("removing sub folder '%s'", name.wx_str());
|
ConLog.Warning("Removing sub folder '%s'", name.wx_str());
|
||||||
RemoveBlocksDir(entry.data_block);
|
RemoveBlocksDir(entry.data_block);
|
||||||
}
|
}
|
||||||
else if(entry.type == vfsHDD_Entry_File)
|
else if(entry.type == vfsHDD_Entry_File)
|
||||||
|
|||||||
Reference in New Issue
Block a user