mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 22:34:24 +02:00
V1.0.3 (to/from json convert)
This commit is contained in:
parent
625baa03f1
commit
1523b6341d
@ -18,6 +18,10 @@
|
|||||||
//refresh to recalculate offsets
|
//refresh to recalculate offsets
|
||||||
tableBlock.refresh();
|
tableBlock.refresh();
|
||||||
|
|
||||||
|
//convert to json object
|
||||||
|
JSONObject jsonObject=tableBlock.toJson();
|
||||||
|
System.out.println(jsonObject.toString(4));
|
||||||
|
|
||||||
//save the edited table
|
//save the edited table
|
||||||
File outFile=new File("resources_out.arsc");
|
File outFile=new File("resources_out.arsc");
|
||||||
tableBlock.writeBytes(outFile);
|
tableBlock.writeBytes(outFile);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user