Hi, I was asked to create an anticheatprogra m for a game of the medal of honor series. The code i post is a thread that should start medal of honor and read it's STDOUT.
But, when i execute this script, medal of honor tries to start, but fails. A windows message pops up; Launch MFC application does not work anymore...you can search online for a solution, blahblah..
However when I use the executable of medal of honor to start it it works.
Any suggestions?
But, when i execute this script, medal of honor tries to start, but fails. A windows message pops up; Launch MFC application does not work anymore...you can search online for a solution, blahblah..
However when I use the executable of medal of honor to start it it works.
Any suggestions?
Code:
package antiCheat;
import java.io.*;
public class MohReader extends Thread {
public static String path = "C:\\Program Files\\EA Games\\Medal of Honor Allied Assault Breakthrough Demo\\moh_breakthrough_demo.exe";
@Override
public void run() {
loadMoh();
}
private static void loadMoh() {
try {
String line;
Process p = Runtime.getRuntime().exec(path);
BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
while ((line = input.readLine()) != null)
System.out.println(line);
input.close();
} catch (Exception err){
System.err.println(err.getMessage());
}
}
}
Comment