mirror of
https://github.com/kwsch/NHSE.git
synced 2026-03-31 05:54:50 -05:00
167 lines
7.9 KiB
C#
167 lines
7.9 KiB
C#
namespace NHSE.Core
|
|
{
|
|
/// <summary>
|
|
/// Provides information for hashing different revisions of the game's savedata.
|
|
/// </summary>
|
|
public static class FileHashRevision
|
|
{
|
|
#region REVISION 1.0.0
|
|
|
|
private const uint REVISION_100_ID = 0;
|
|
private const int MAIN_SAVE_SIZE = 0xAC0938;
|
|
private const int PERSONAL_SAVE_SIZE = 0x6BC50;
|
|
private const int POSTBOX_SAVE_SIZE = 0xB44580;
|
|
private const int PHOTO_STUDIO_ISLAND_SIZE = 0x263B4;
|
|
private const int PROFILE_SIZE = 0x69508;
|
|
|
|
public static readonly FileHashInfo REV_100 = new FileHashInfo(REVISION_100_ID, new[]
|
|
{
|
|
new FileHashDetails("main.dat", MAIN_SAVE_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x000108, 0x00010C, 0x1D6D4C),
|
|
new FileHashRegion(0x1D6E58, 0x1D6E5C, 0x323384),
|
|
new FileHashRegion(0x4FA2E8, 0x4FA2EC, 0x035AC4),
|
|
new FileHashRegion(0x52FDB0, 0x52FDB4, 0x03607C),
|
|
new FileHashRegion(0x565F38, 0x565F3C, 0x035AC4),
|
|
new FileHashRegion(0x59BA00, 0x59BA04, 0x03607C),
|
|
new FileHashRegion(0x5D1B88, 0x5D1B8C, 0x035AC4),
|
|
new FileHashRegion(0x607650, 0x607654, 0x03607C),
|
|
new FileHashRegion(0x63D7D8, 0x63D7DC, 0x035AC4),
|
|
new FileHashRegion(0x6732A0, 0x6732A4, 0x03607C),
|
|
new FileHashRegion(0x6A9428, 0x6A942C, 0x035AC4),
|
|
new FileHashRegion(0x6DEEF0, 0x6DEEF4, 0x03607C),
|
|
new FileHashRegion(0x715078, 0x71507C, 0x035AC4),
|
|
new FileHashRegion(0x74AB40, 0x74AB44, 0x03607C),
|
|
new FileHashRegion(0x780CC8, 0x780CCC, 0x035AC4),
|
|
new FileHashRegion(0x7B6790, 0x7B6794, 0x03607C),
|
|
new FileHashRegion(0x7EC918, 0x7EC91C, 0x035AC4),
|
|
new FileHashRegion(0x8223E0, 0x8223E4, 0x03607C),
|
|
new FileHashRegion(0x858460, 0x858464, 0x2684D4)
|
|
}),
|
|
new FileHashDetails("personal.dat", PERSONAL_SAVE_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x00108, 0x0010C, 0x35AC4),
|
|
new FileHashRegion(0x35BD0, 0x35BD4, 0x3607C)
|
|
}),
|
|
new FileHashDetails("postbox.dat", POSTBOX_SAVE_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x000100, 0x00104, 0xB4447C)
|
|
}),
|
|
new FileHashDetails("photo_studio_island.dat", PHOTO_STUDIO_ISLAND_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x000100, 0x00104, 0x262B0)
|
|
}),
|
|
new FileHashDetails("profile.dat", PROFILE_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x000100, 0x00104, 0x69404)
|
|
}),
|
|
});
|
|
|
|
#endregion
|
|
|
|
#region REVISION 1.1.0
|
|
|
|
private const uint REVISION_110_ID = 1;
|
|
private const int REV_110_MAIN_SAVE_SIZE = 0xAC2AA0;
|
|
private const int REV_110_PERSONAL_SAVE_SIZE = 0x6BED0;
|
|
private const int REV_110_POSTBOX_SAVE_SIZE = 0xB44590;
|
|
private const int REV_110_PHOTO_STUDIO_ISLAND_SIZE = 0x263C0;
|
|
private const int REV_110_PROFILE_SIZE = 0x69560;
|
|
|
|
public static readonly FileHashInfo REV_110 = new FileHashInfo(REVISION_110_ID, new[]
|
|
{
|
|
new FileHashDetails("main.dat", REV_110_MAIN_SAVE_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x000110, 0x000114, 0x1D6D5C),
|
|
new FileHashRegion(0x1D6E70, 0x1D6E74, 0x323C0C),
|
|
new FileHashRegion(0x4FAB90, 0x4FAB94, 0x035AFC),
|
|
new FileHashRegion(0x530690, 0x530694, 0x0362BC),
|
|
new FileHashRegion(0x566A60, 0x566A64, 0x035AFC),
|
|
new FileHashRegion(0x59C560, 0x59C564, 0x0362BC),
|
|
new FileHashRegion(0x5D2930, 0x5D2934, 0x035AFC),
|
|
new FileHashRegion(0x608430, 0x608434, 0x0362BC),
|
|
new FileHashRegion(0x63E800, 0x63E804, 0x035AFC),
|
|
new FileHashRegion(0x674300, 0x674304, 0x0362BC),
|
|
new FileHashRegion(0x6AA6D0, 0x6AA6D4, 0x035AFC),
|
|
new FileHashRegion(0x6E01D0, 0x6E01D4, 0x0362BC),
|
|
new FileHashRegion(0x7165A0, 0x7165A4, 0x035AFC),
|
|
new FileHashRegion(0x74C0A0, 0x74C0A4, 0x0362BC),
|
|
new FileHashRegion(0x782470, 0x782474, 0x035AFC),
|
|
new FileHashRegion(0x7B7F70, 0x7B7F74, 0x0362BC),
|
|
new FileHashRegion(0x7EE340, 0x7EE344, 0x035AFC),
|
|
new FileHashRegion(0x823E40, 0x823E44, 0x0362BC),
|
|
new FileHashRegion(0x85A100, 0x85A104, 0x26899C)
|
|
}),
|
|
new FileHashDetails("personal.dat", REV_110_PERSONAL_SAVE_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x00110, 0x00114, 0x35AFC),
|
|
new FileHashRegion(0x35C10, 0x35C14, 0x362BC)
|
|
}),
|
|
new FileHashDetails("postbox.dat", REV_110_POSTBOX_SAVE_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x000100, 0x00104, 0xB4448C)
|
|
}),
|
|
new FileHashDetails("photo_studio_island.dat", REV_110_PHOTO_STUDIO_ISLAND_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x000100, 0x00104, 0x262BC)
|
|
}),
|
|
new FileHashDetails("profile.dat", REV_110_PROFILE_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x000100, 0x00104, 0x6945C)
|
|
}),
|
|
});
|
|
|
|
private const uint REVISION_120_ID = 2;
|
|
private const int REV_120_MAIN_SAVE_SIZE = 0xACECD0;
|
|
private const int REV_120_PERSONAL_SAVE_SIZE = 0x6D6C0;
|
|
private const int REV_120_POSTBOX_SAVE_SIZE = REV_110_POSTBOX_SAVE_SIZE;
|
|
private const int REV_120_PHOTO_STUDIO_ISLAND_SIZE = 0x2C9C0;
|
|
private const int REV_120_PROFILE_SIZE = REV_110_PROFILE_SIZE;
|
|
|
|
public static readonly FileHashInfo REV_120 = new FileHashInfo(REVISION_120_ID, new[]
|
|
{
|
|
new FileHashDetails("main.dat", REV_120_MAIN_SAVE_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x000110, 0x000114, 0x1D6D5C),
|
|
new FileHashRegion(0x1D6E70, 0x1D6E74, 0x323C0C),
|
|
new FileHashRegion(0x4FAB90, 0x4FAB94, 0x035AFC),
|
|
new FileHashRegion(0x530690, 0x530694, 0x0362BC),
|
|
new FileHashRegion(0x566A60, 0x566A64, 0x035AFC),
|
|
new FileHashRegion(0x59C560, 0x59C564, 0x0362BC),
|
|
new FileHashRegion(0x5D2930, 0x5D2934, 0x035AFC),
|
|
new FileHashRegion(0x608430, 0x608434, 0x0362BC),
|
|
new FileHashRegion(0x63E800, 0x63E804, 0x035AFC),
|
|
new FileHashRegion(0x674300, 0x674304, 0x0362BC),
|
|
new FileHashRegion(0x6AA6D0, 0x6AA6D4, 0x035AFC),
|
|
new FileHashRegion(0x6E01D0, 0x6E01D4, 0x0362BC),
|
|
new FileHashRegion(0x7165A0, 0x7165A4, 0x035AFC),
|
|
new FileHashRegion(0x74C0A0, 0x74C0A4, 0x0362BC),
|
|
new FileHashRegion(0x782470, 0x782474, 0x035AFC),
|
|
new FileHashRegion(0x7B7F70, 0x7B7F74, 0x0362BC),
|
|
new FileHashRegion(0x7EE340, 0x7EE344, 0x035AFC),
|
|
new FileHashRegion(0x823E40, 0x823E44, 0x0362BC),
|
|
new FileHashRegion(0x85A100, 0x85A104, 0x26899C)
|
|
}),
|
|
new FileHashDetails("personal.dat", REV_120_PERSONAL_SAVE_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x00110, 0x00114, 0x35AFC),
|
|
new FileHashRegion(0x35C10, 0x35C14, 0x362BC)
|
|
}),
|
|
new FileHashDetails("postbox.dat", REV_120_POSTBOX_SAVE_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x000100, 0x00104, 0xB4448C)
|
|
}),
|
|
new FileHashDetails("photo_studio_island.dat", REV_120_PHOTO_STUDIO_ISLAND_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x000100, 0x00104, 0x262BC)
|
|
}),
|
|
new FileHashDetails("profile.dat", REV_120_PROFILE_SIZE, new[]
|
|
{
|
|
new FileHashRegion(0x000100, 0x00104, 0x6945C)
|
|
}),
|
|
});
|
|
|
|
#endregion
|
|
}
|
|
}
|