Skip to content
This repository was archived by the owner on Oct 5, 2019. It is now read-only.

Commit 6470d10

Browse files
author
Zaczero
committed
Fixed value proxy for hex values
1 parent 30ddcf6 commit 6470d10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SharpLoader/Core/SourceRandomizer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Diagnostics;
34
using System.Globalization;
45
using System.Linq;
56
using System.Text;
@@ -967,7 +968,7 @@ private void Proxy(ref string str)
967968
continue;
968969
}
969970
// Value proxy
970-
if (argStr.ToCharArray().All(char.IsDigit))
971+
if (argStr.ToCharArray().All(char.IsDigit) || argStr.StartsWith("0x", StringComparison.OrdinalIgnoreCase))
971972
{
972973
int arg;
973974

0 commit comments

Comments
 (0)