@@ -113,7 +113,7 @@ private class HCMConfig
113113
114114 private static class HCMGlobal
115115 {
116- public static readonly string HCMversion = "0.9.1 " ;
116+ public static readonly string HCMversion = "0.9.2 " ;
117117
118118 public static readonly string LocalDir = System . IO . Path . GetDirectoryName ( System . Diagnostics . Process . GetCurrentProcess ( ) . MainModule . FileName ) ;
119119 public static readonly string H1CoreSavePath = LocalDir + @"\saves\h1cs" ;
@@ -1329,7 +1329,7 @@ private void RefreshLoa(object sender, RoutedEventArgs e)
13291329 }
13301330 //tickcount
13311331 buffer = new byte [ 4 ] ;
1332- if ( ReadProcessMemory ( HCMGlobal . GlobalProcessHandle , FindPointerAddy ( HCMGlobal . GlobalProcessHandle , HCMGlobal . BaseAddress , addy ) + 0x2546C , buffer , buffer . Length , out bytesWritten ) )
1332+ if ( ReadProcessMemory ( HCMGlobal . GlobalProcessHandle , FindPointerAddy ( HCMGlobal . GlobalProcessHandle , HCMGlobal . BaseAddress , addy ) + 0x3E0220 , buffer , buffer . Length , out bytesWritten ) )
13331333 {
13341334 data . StartTick = BitConverter . ToUInt32 ( buffer , 0 ) ;
13351335 }
@@ -1581,13 +1581,14 @@ private void RefreshSel(object sender, RoutedEventArgs e)
15811581
15821582 if ( File . Exists ( pathtotest ) )
15831583 {
1584- var data = GetSaveFileMetadata ( pathtotest , HaloGame . Halo2 ) ;
1584+ var data = GetSaveFileMetadata ( pathtotest , HaloGame . Halo3 ) ;
15851585 H3CP_Sel_LevelName . Text = LevelCodeToFullName ( data . LevelCode , HaloGame . Halo3 ) ;
15861586
15871587 if ( data . Difficulty != Difficulty . Invalid )
15881588 H3CP_Sel_DiffName . Source = new BitmapImage ( new Uri ( $ "images/H3/diff_{ ( int ) data . Difficulty } .png", UriKind . Relative ) ) ;
15891589
15901590 H3CP_Sel_Time . Text = TickToTimeString ( data . StartTick , true ) ;
1591+ Debug ( "AHHH" + TickToTimeString ( data . StartTick , true ) ) ;
15911592 H3CP_Sel_FileName . Text = s ;
15921593
15931594 if ( LevelCodeToGameType ( data . LevelCode ) )
@@ -1814,7 +1815,7 @@ private HaloSaveFileMetadata GetSaveFileMetadata(string saveFilePath, HaloGame g
18141815 break ;
18151816 case HaloGame . Halo3 :
18161817 offsetLevelCode = 28 ;
1817- offsetStartTick = 0x2546C ;
1818+ offsetStartTick = 0x3E0220 ;
18181819 offsetDifficulty = 0x274 ;
18191820 offsetSeed = 0 ;
18201821 break ;
0 commit comments