Skip to content

Commit

Permalink
[tool] 코드 및 바이너리를 추출할 때 파일 헤더의 정보를 변경할 수 있는 옵션 추가 버그 수정
Browse files Browse the repository at this point in the history
--replace-revision 옵션이 없는 경우 --replace-hashvalue 가 동작하지 않는 버그 수정
  • Loading branch information
powerumc committed Jun 19, 2019
1 parent d300589 commit d9a8c9e
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ public static Tuple<GenerationSet, SerializationSet> Process(Tuple<GenerationSet

public static GenerationSet Process(GenerationSet generationSet)
{
if (ReplaceSettings.ReplaceHashValue != null)
if (ReplaceSettings.ReplaceRevision != long.MinValue)
{
generationSet.Revision = ReplaceSettings.ReplaceRevision;
}

if (ReplaceSettings.ReplaceHashValue != null)
{
generationSet.TablesHashValue = ReplaceSettings.ReplaceHashValue;
generationSet.TypesHashValue = ReplaceSettings.ReplaceHashValue;
}
Expand All @@ -55,6 +59,10 @@ public static SerializationSet Process(SerializationSet serializationSet)
if (ReplaceSettings.ReplaceRevision != long.MinValue)
{
serializationSet.Revision = ReplaceSettings.ReplaceRevision;
}

if (ReplaceSettings.ReplaceHashValue != null)
{
serializationSet.TablesHashValue = ReplaceSettings.ReplaceHashValue;
serializationSet.TypesHashValue = ReplaceSettings.ReplaceHashValue;
}
Expand Down

0 comments on commit d9a8c9e

Please sign in to comment.