summaryrefslogtreecommitdiffstats
path: root/src/test/TestRapc.java
blob: 1e5c171e526910f5057a421c4b3250f34886c66b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package test;

import java.io.File;
import java.util.Date;
import java.util.HashMap;

import com.vladium.utils.timing.TimerFactory;

import de.fernflower.main.decompiler.ConsoleDecompiler;


public class TestRapc {

	public static void main(String[] args) {

		try {
			
			TimerFactory.initialize(new File(".").getCanonicalPath()+"/lib/timer/hrtlib.dll");
			
			Date start = new Date();
			
			
			ConsoleDecompiler decompiler = new ConsoleDecompiler(new HashMap<String, Object>(){{put("log", "warn");put("ren", "1");}});
			
			decompiler.addSpace(new File("C:\\Temp\\fernflower\\rapc\\"), true);

			decompiler.decompileContext(new File("C:\\Temp\\fernflower\\rapc_ff\\"));

			
			System.out.println("\n\nTime elapsed " + (new Date().getTime() - start.getTime())/1000);
			
		} catch(Exception ex) {
			ex.printStackTrace();
		}
		
	}
	
}