mirror of
https://github.com/sirjonasxx/G-Wasm.git
synced 2024-11-23 00:40:51 +01:00
delete
This commit is contained in:
parent
d0b17c6a5f
commit
9d81bf0ac8
@ -1,31 +0,0 @@
|
|||||||
import disassembly.InvalidOpCodeException;
|
|
||||||
import disassembly.modules.Module;
|
|
||||||
|
|
||||||
import java.io.*;
|
|
||||||
|
|
||||||
public class Main {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static void main(String[] args) throws IOException, InvalidOpCodeException {
|
|
||||||
File unityWasmCode = new File("C:\\Users\\jonas\\Desktop\\Projects\\Jznnp\\S\\habbo2020\\rawfiles\\0.5.2_(1)\\habbo2020-global-prod.wasm.code.unityweb");
|
|
||||||
InputStream targetStream = new FileInputStream(unityWasmCode);
|
|
||||||
BufferedInputStream in = new BufferedInputStream(targetStream);
|
|
||||||
|
|
||||||
long time_before = System.currentTimeMillis();
|
|
||||||
Module module = new Module(in);
|
|
||||||
long time_after = System.currentTimeMillis();
|
|
||||||
|
|
||||||
System.out.println(String.format("disassemble time: %d", time_after - time_before));
|
|
||||||
|
|
||||||
|
|
||||||
FileOutputStream habAssembled = new FileOutputStream("C:\\Users\\jonas\\Desktop\\Projects\\Jznnp\\S\\habbo2020\\rawfiles\\0.5.2_(1)\\out\\GWASM-global-prod.wasm.code.unityweb");
|
|
||||||
|
|
||||||
time_before = System.currentTimeMillis();
|
|
||||||
module.assemble(habAssembled);
|
|
||||||
time_after = System.currentTimeMillis();
|
|
||||||
|
|
||||||
System.out.println(String.format("assemble time: %d", time_after - time_before));
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user