Fixed second DLL not patching properly.
This commit is contained in:
parent
619d774ad1
commit
efa6fd29bc
@ -350,7 +350,7 @@ public class Controller {
|
||||
*/
|
||||
private void setUpCreamApi() throws IOException {
|
||||
Path path = Paths.get(steamApiPathString);
|
||||
copyDllFile(path);
|
||||
copyDllFile(path, isSameFile);
|
||||
findAdditionalDll(path);
|
||||
}
|
||||
|
||||
@ -363,14 +363,11 @@ public class Controller {
|
||||
InputStream is = Files.newInputStream(secondDll);
|
||||
String md5 = DigestUtils.md5Hex(is);
|
||||
boolean isSameFile1 = Objects.equals(md5, handler.getDllMd5(!is64Bit));
|
||||
if (isSameFile1) {
|
||||
System.out.println("Alternative DLL not patched! Patching...");
|
||||
copyDllFile(secondDll);
|
||||
}
|
||||
copyDllFile(secondDll, isSameFile1);
|
||||
}
|
||||
}
|
||||
|
||||
private void copyDllFile(Path path) throws IOException {
|
||||
private void copyDllFile(Path path, boolean isSameFile) throws IOException {
|
||||
if (!isSameFile) {
|
||||
String pathOrigString = steamApiPathString;
|
||||
pathOrigString =
|
||||
|
Loading…
Reference in New Issue
Block a user