File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,10 +157,11 @@ private void ParseImplementation() {
157157 if ( RelPath . Contains ( "trophy_crimsonbalrog" ) ) {
158158 using var md5 = System . Security . Cryptography . MD5 . Create ( ) ;
159159 byte [ ] hash = md5 . ComputeHash ( fileData ) ;
160- Console . Error . WriteLine ( $ "[NIF DEBUG] { RelPath } : dataLen={ fileData . Length } md5={ Convert . ToHexString ( hash ) } " +
160+ string dbg = $ "[NIF DEBUG] { RelPath } : dataLen={ fileData . Length } md5={ Convert . ToHexString ( hash ) } " +
161161 $ "headerLen={ index - 4 } endianByte=0x{ fileData [ index ] : X2} isLittleEndian={ isLittleEndian } " +
162- $ "swap={ isLittleEndian != BitConverter . IsLittleEndian } BitConverter.IsLittleEndian={ BitConverter . IsLittleEndian } ") ;
163- Console . Error . WriteLine ( $ "[NIF DEBUG] bytes around endian flag [{ index - 2 } ..{ index + 3 } ]: { Convert . ToHexString ( fileData , index - 2 , 5 ) } ") ;
162+ $ "swap={ isLittleEndian != BitConverter . IsLittleEndian } BitConverter.IsLittleEndian={ BitConverter . IsLittleEndian } \n " +
163+ $ "[NIF DEBUG] bytes around endian flag [{ index - 2 } ..{ index + 3 } ]: { Convert . ToHexString ( fileData , index - 2 , 5 ) } \n ";
164+ System . IO . File . AppendAllText ( Path . Combine ( Path . GetTempPath ( ) , "nif_debug.log" ) , dbg ) ;
164165 }
165166
166167 MemoryStream stream = new MemoryStream ( fileData ) ;
You can’t perform that action at this time.
0 commit comments