refactor: Rename read index functions

This commit is contained in:
Crsky
2026-04-02 05:51:24 +08:00
parent 0bed7317e7
commit e8853332e2

View File

@@ -139,15 +139,15 @@ namespace GameRes.Formats.NeXAS
bool success = false;
try
{
success = ReadOld();
success = ReadV0();
}
catch { /* ignore parse errors */ }
if (!success && !ReadNew())
if (!success && !ReadV1())
return null;
return m_dir;
}
bool ReadNew ()
bool ReadV1 ()
{
uint index_size = m_file.View.ReadUInt32 (m_file.MaxOffset-4);
int unpacked_size = m_count*0x4C;
@@ -163,7 +163,7 @@ namespace GameRes.Formats.NeXAS
return ReadFromStream (input, 0x40);
}
bool ReadOld ()
bool ReadV0 ()
{
using (var input = m_file.CreateStream())
{