From ee6ed0461eeefad9155d96cbfb01ca05310aab7e Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Thu, 25 Jul 2019 20:07:08 -0400 Subject: [PATCH] More rarc fixes --- .vs/Toolbox/v15/.suo | Bin 277504 -> 277504 bytes .../FileFormats/Archives/RARC.cs | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.vs/Toolbox/v15/.suo b/.vs/Toolbox/v15/.suo index a005a969c47c23b7965fcafe2ce665f9aa668aa9..61c7c7a7a8354e1dd1d231fe2b1e9a8f2c5e45ca 100644 GIT binary patch delta 2024 zcmd5+du)_N5Z{^EUa!4tdshoqo_8QvjBwQe9tQ1E3PjRi1Ee4lBef+^36@e6PhyWi zc$L()AKpMjR4{FY3Z+-N5lA_R5kibSA_W24Vl)vbDCqI1p}5~kYmATh4~d)1Z)azJ zv-{hbd|%*}BXG-6zW@_ox_GT~!uV65gb)F*;YUAQFe11D-$)4g>AEJYZM<$0hWwRa z_{k5yh9a?#pwVx1s-x@f-MepVT7@>#H?rbuxuXzLWprh=WpVZ^@H_9E=A75|jW#3O z)~|9|QI)*}+KnalQfMyQcVCdcLi#^WNI%a4$>fk3#6Z=;+$Ls0Wv`p5)+Kqb)*oyz<~nrae4vtQD@gV z;sM>+k%Ar5X*XwV!Z>aVVr!4Li*vHbgR792zegc;U;{pgYT-s49iz&&VBz3s9*pGW zr*W^+)Mvn%rw_b0!i%&Mr{14HbL~psuo|4hb;K3j9uyv>XS;%_)Co?Pu2*+_i1ss8 z`sX+lcz-6XG~sZ{+Gv&ugTmW1W@=;SXLyrm`6%Cn{T!D~b$s<4W+=|3`A)uZ1uv;f zh1A=|jt?-Fi@MOt72DCnMV;EKSxIx0hUfK85JzwYQnvC3wN7sT1V^){1?~J!BR-~H z-At9lj?K7~yR7sad$!R$6Hai>CfvZ`ujwJqu+b=<^f48f@M*A_W~e|pmdJmozOA*V z`rq?~0#aPg*#4g@4}TZ|&GMPpI9OHA6owag#G&dWHReJ$ir`&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n ziQ^Qh%(K$D@4qppzd4VjmKvDGI}ty{_u21(;$Ok_%8e|oIGsNK3_bYli%6{Y?*gDLT`-gjsOo?|Yeyr0_Yy8c>aySj`5kR2 z*LC6nR(l0ihdZvJyDgS3+f#p3eNNWn3TK2bHQ9YtJE24KhxSuf_LGlo#Grz(N&s#O}E5vIBg110_o)@E(Q diff --git a/File_Format_Library/FileFormats/Archives/RARC.cs b/File_Format_Library/FileFormats/Archives/RARC.cs index e5c3150c..1beb922d 100644 --- a/File_Format_Library/FileFormats/Archives/RARC.cs +++ b/File_Format_Library/FileFormats/Archives/RARC.cs @@ -291,10 +291,10 @@ namespace FirstPlugin if (entry.Flags == 0x02) { - writer.Write((int)TotalList.IndexOf(entry)); - writer.Write((int)0); //Fixed data size + writer.Write((int)TotalList.IndexOf(entry) + 1); + writer.Write((int)0); } - if (entry.Flags == 0x11) + else { uint dataOffset = 0; foreach (var data in _savedFileData)