mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Adjustments to HDD logs
This commit is contained in:
parent
8723513528
commit
815e5d952d
|
@ -42,8 +42,8 @@ void ATA::CreateHDDinfo(u64 sizeSectors)
|
||||||
sizeSectors = std::min<u64>(sizeSectors, maxSize);
|
sizeSectors = std::min<u64>(sizeSectors, maxSize);
|
||||||
|
|
||||||
constexpr u16 sectorSize = 512;
|
constexpr u16 sectorSize = 512;
|
||||||
DevCon.WriteLn("DEV9: HddSize : %i", sizeSectors * sectorSize / (1024 * 1024));
|
DevCon.WriteLn("DEV9: ATA: HddSize : %i", sizeSectors * sectorSize / (1024 * 1024));
|
||||||
DevCon.WriteLn("DEV9: sizeSectors : %i", sizeSectors); // SizeSectors will keep 48-bit size
|
DevCon.WriteLn("DEV9: ATA: sizeSectors : %i", sizeSectors); // SizeSectors will keep 48-bit size
|
||||||
|
|
||||||
memset(&identifyData, 0, sizeof(identifyData));
|
memset(&identifyData, 0, sizeof(identifyData));
|
||||||
//Defualt CHS translation
|
//Defualt CHS translation
|
||||||
|
@ -399,6 +399,4 @@ void ATA::CreateHDDinfoCsum()
|
||||||
|
|
||||||
for (int i = 0; i < (512); i++)
|
for (int i = 0; i < (512); i++)
|
||||||
counter += identifyData[i];
|
counter += identifyData[i];
|
||||||
|
|
||||||
DevCon.WriteLn("DEV9: %i", counter);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,8 @@ int ATA::Open(const std::string& hddPath)
|
||||||
readBuffer = new u8[readBufferLen];
|
readBuffer = new u8[readBufferLen];
|
||||||
memset(sceSec, 0, sizeof(sceSec));
|
memset(sceSec, 0, sizeof(sceSec));
|
||||||
|
|
||||||
|
DevCon.WriteLn("DEV9: ATA: HddFile : %s", hddPath.c_str());
|
||||||
|
|
||||||
//Open File
|
//Open File
|
||||||
if (!FileSystem::FileExists(hddPath.c_str()))
|
if (!FileSystem::FileExists(hddPath.c_str()))
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -48,7 +50,7 @@ int ATA::Open(const std::string& hddPath)
|
||||||
const s64 size = hddImage ? FileSystem::FSize64(hddImage) : -1;
|
const s64 size = hddImage ? FileSystem::FSize64(hddImage) : -1;
|
||||||
if (!hddImage || size < 0)
|
if (!hddImage || size < 0)
|
||||||
{
|
{
|
||||||
Console.Error("Failed to open HDD image '%s'", hddPath.c_str());
|
Console.Error("DEV9: ATA: Failed to open HDD image '%s'", hddPath.c_str());
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -251,12 +251,12 @@ void HddCreate::WriteImage(const std::string& hddPath, u64 fileBytes, u64 zeroSi
|
||||||
|
|
||||||
void HddCreate::SetFileProgress(u64 currentSize)
|
void HddCreate::SetFileProgress(u64 currentSize)
|
||||||
{
|
{
|
||||||
Console.WriteLn(fmt::format("{} / {} Bytes", currentSize, neededSize).c_str());
|
Console.WriteLn(fmt::format("DEV9: HddCreate: {} / {} Bytes", currentSize, neededSize).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void HddCreate::SetError()
|
void HddCreate::SetError()
|
||||||
{
|
{
|
||||||
Console.WriteLn("Failed to create HDD file");
|
Console.WriteLn("DEV9: HddCreate: Failed to create HDD file");
|
||||||
}
|
}
|
||||||
|
|
||||||
void HddCreate::SetCanceled()
|
void HddCreate::SetCanceled()
|
||||||
|
|
|
@ -180,7 +180,6 @@ void DEV9shutdown()
|
||||||
s32 DEV9open()
|
s32 DEV9open()
|
||||||
{
|
{
|
||||||
DevCon.WriteLn("DEV9: DEV9open");
|
DevCon.WriteLn("DEV9: DEV9open");
|
||||||
DevCon.WriteLn("DEV9: open r+: %s", EmuConfig.DEV9.HddFile.c_str());
|
|
||||||
|
|
||||||
std::string hddPath(GetHDDPath());
|
std::string hddPath(GetHDDPath());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue