Rev 508 | Rev 510 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 508 | Rev 509 | ||
---|---|---|---|
Line 545... | Line 545... | ||
545 | 545 | ||
546 | // First try with alignment "4" (this should be the usual case), |
546 | // First try with alignment "4" (this should be the usual case), |
547 | // and if that failed, try without alignment ("1"). |
547 | // and if that failed, try without alignment ("1"). |
548 | // We only need to set maxamount to "1", because "const volatile" makes sure that |
548 | // We only need to set maxamount to "1", because "const volatile" makes sure that |
549 | // the compiler won't place (inline) it at several locations in the code. |
549 | // the compiler won't place (inline) it at several locations in the code. |
- | 550 | // TODO: This is very slow |
|
550 | if ((binary_replace_file(dst, GetObfuscSeed(), obfuscseed, /*align to 1*/0, /*maxamount=*/1) == 0) || |
551 | if ((binary_replace_file(dst, GetObfuscSeed(), obfuscseed, /*0 means "align to 1"*/0, /*maxamount=*/1) == 0) || |
551 | (binary_replace_file(dst, GetObfuscSeed2(), obfuscseed2, /*align to 1*/0, /*maxamount=*/1) == 0)) |
552 | (binary_replace_file(dst, GetObfuscSeed2(), obfuscseed2, /*0 means "align to 1"*/0, /*maxamount=*/1) == 0)) |
552 | { |
553 | { |
553 | simplewarning((TCHAR*)TEXT("binary_replace_file failed")); // TODO (Not so important): TRANSLATE |
554 | simplewarning((TCHAR*)TEXT("binary_replace_file failed")); // TODO (Not so important): TRANSLATE |
554 | discard = true; |
555 | discard = true; |
555 | } |
556 | } |
556 | } |
557 | } |