2018-01-31 15:03:53 +00:00
|
|
|
package the.bytecode.club.bytecodeviewer;
|
|
|
|
|
|
|
|
import javax.swing.JFrame;
|
|
|
|
import me.konloch.kontainer.io.DiskReader;
|
|
|
|
import me.konloch.kontainer.io.DiskWriter;
|
|
|
|
|
2021-06-21 09:45:31 +00:00
|
|
|
import static the.bytecode.club.bytecodeviewer.Constants.*;
|
|
|
|
|
2018-01-31 15:03:53 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite *
|
|
|
|
* Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com *
|
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Used to handle loading/saving the GUI (options).
|
|
|
|
*
|
2018-01-31 15:41:24 +00:00
|
|
|
* @author Konloch
|
2018-01-31 15:03:53 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public class Settings {
|
|
|
|
|
2019-04-17 06:45:15 +00:00
|
|
|
public static void saveSettings() {
|
2018-01-31 15:41:24 +00:00
|
|
|
try {
|
2021-06-21 10:04:24 +00:00
|
|
|
DiskWriter.replaceFile(settingsName,
|
|
|
|
"BCV: " + VERSION, false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.rbr.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.rsy.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.din.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.dc4.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.das.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.hes.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.hdc.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.dgs.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.ner.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.den.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.rgn.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.bto.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.nns.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.uto.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.udv.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.rer.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.fdi.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.asc.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.decodeenumswitch.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.sugarenums.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.decodestringswitch.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.arrayiter.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.collectioniter.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.innerclasses.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.removeboilerplate.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.removeinnerclasssynthetics.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.decodelambdas.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.hidebridgemethods.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.liftconstructorinit.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.removedeadmethods.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.removebadgenerics.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.sugarasserts.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.sugarboxing.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.showversion.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.decodefinally.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.tidymonitors.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.lenient.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.dumpclasspath.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.comments.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.forcetopsort.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.forcetopsortaggress.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.stringbuffer.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.stringbuilder.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.silent.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.recover.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.eclipse.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.override.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.showinferrable.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.aexagg.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.forcecondpropagate.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.hideutf.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.hidelongstrings.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.commentmonitor.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.allowcorrecting.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.labelledblocks.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.j14classobj.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.hidelangimports.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.recoverytypeclash.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.recoverytypehints.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.forceturningifs.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.forloopaggcapture.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.forceexceptionprune.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmShowDebugLine.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmSimplifyMemberReferences.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.mnMergeVariables.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmNewCheckItem_1.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmNewCheckItem_2.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmNewCheckItem_3.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmNewCheckItem_4.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmNewCheckItem_5.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmNewCheckItem_6.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmNewCheckItem_7.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmNewCheckItem_8.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmNewCheckItem_9.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmNewCheckItem_10.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmNewCheckItem_11.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmAppendBrackets.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.debugHelpers.isSelected()), false);
|
2021-06-21 10:04:24 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
|
|
|
"deprecated", false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.chckbxmntmNewCheckItem_12.isSelected()), false);
|
2021-06-21 10:04:24 +00:00
|
|
|
|
2018-01-31 15:41:24 +00:00
|
|
|
if (BytecodeViewer.viewer.panelGroup1.isSelected(BytecodeViewer.viewer.panel1None.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "0", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup1.isSelected(BytecodeViewer.viewer.panel1Proc.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "1", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup1.isSelected(BytecodeViewer.viewer.panel1CFR.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "2", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup1.isSelected(BytecodeViewer.viewer.panel1Fern.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "3", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup1.isSelected(BytecodeViewer.viewer.panel1Bytecode.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "4", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup1.isSelected(BytecodeViewer.viewer.panel1Hexcode.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "5", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup1.isSelected(BytecodeViewer.viewer.panel1Smali.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "6", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup1.isSelected(BytecodeViewer.viewer.panel1Krakatau.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "7", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup1.isSelected(BytecodeViewer.viewer.panel1KrakatauBytecode.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "8", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup1.isSelected(BytecodeViewer.viewer.panel1JDGUI.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "9", false);
|
2019-08-11 03:30:49 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup1.isSelected(BytecodeViewer.viewer.jadxJ1.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "10", false);
|
2019-08-11 03:25:37 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup1.isSelected(BytecodeViewer.viewer.asmText1.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "11", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
|
|
|
|
if (BytecodeViewer.viewer.panelGroup2.isSelected(BytecodeViewer.viewer.panel2None.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "0", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup2.isSelected(BytecodeViewer.viewer.panel2Proc.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "1", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup2.isSelected(BytecodeViewer.viewer.panel2CFR.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "2", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup2.isSelected(BytecodeViewer.viewer.panel2Fern.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "3", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup2.isSelected(BytecodeViewer.viewer.panel2Bytecode.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "4", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup2.isSelected(BytecodeViewer.viewer.panel2Hexcode.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "5", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup2.isSelected(BytecodeViewer.viewer.panel2Smali.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "6", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup2.isSelected(BytecodeViewer.viewer.panel2Krakatau.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "7", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup2.isSelected(BytecodeViewer.viewer.panel2KrakatauBytecode.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "8", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup2.isSelected(BytecodeViewer.viewer.panel2JDGUI.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "9", false);
|
2019-08-11 03:30:49 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup2.isSelected(BytecodeViewer.viewer.jadxJ2.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "10", false);
|
2019-08-11 03:25:37 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup2.isSelected(BytecodeViewer.viewer.asmText2.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "11", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
|
|
|
|
if (BytecodeViewer.viewer.panelGroup3.isSelected(BytecodeViewer.viewer.panel3None.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "0", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup3.isSelected(BytecodeViewer.viewer.panel3Proc.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "1", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup3.isSelected(BytecodeViewer.viewer.panel3CFR.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "2", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup3.isSelected(BytecodeViewer.viewer.panel3Fern.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "3", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup3.isSelected(BytecodeViewer.viewer.panel3Bytecode.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "4", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup3.isSelected(BytecodeViewer.viewer.panel3Hexcode.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "5", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup3.isSelected(BytecodeViewer.viewer.panel3Smali.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "6", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup3.isSelected(BytecodeViewer.viewer.panel3Krakatau.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "7", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup3.isSelected(BytecodeViewer.viewer.panel3KrakatauBytecode.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "8", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup3.isSelected(BytecodeViewer.viewer.panel3JDGUI.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "9", false);
|
2019-08-11 03:30:49 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup3.isSelected(BytecodeViewer.viewer.jadxJ3.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "10", false);
|
2019-08-11 03:25:37 +00:00
|
|
|
else if (BytecodeViewer.viewer.panelGroup3.isSelected(BytecodeViewer.viewer.asmText3.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "11", false);
|
2021-06-21 10:04:24 +00:00
|
|
|
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.refreshOnChange.isSelected()), false);
|
2021-06-21 10:04:24 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
|
|
|
String.valueOf(BytecodeViewer.viewer.isMaximized), false);
|
|
|
|
DiskWriter.writeNewLine(settingsName,
|
|
|
|
"deprecated", false);
|
|
|
|
DiskWriter.writeNewLine(settingsName,
|
|
|
|
"deprecated", false);
|
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-06-21 11:13:11 +00:00
|
|
|
Configuration.lastDirectory, false);
|
2021-06-21 10:04:24 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-06-21 11:13:11 +00:00
|
|
|
Configuration.python, false);
|
2021-06-21 10:04:24 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-06-21 11:13:11 +00:00
|
|
|
Configuration.rt, false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel1Proc_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel1CFR_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel1Fern_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel1Krakatau_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel1Smali_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel2Proc_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel2CFR_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel2Fern_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel2Krakatau_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel2Smali_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel3Proc_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel3CFR_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel3Fern_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel3Krakatau_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel3Smali_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.decodeAPKResources.isSelected()), false);
|
2021-06-21 10:04:24 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-06-21 11:13:11 +00:00
|
|
|
Configuration.library, false);
|
2021-06-21 10:04:24 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-06-21 11:13:11 +00:00
|
|
|
String.valueOf(Configuration.pingback), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel1JDGUI_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel2JDGUI_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.panel3JDGUI_E.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.fontSpinner.getValue()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-06-21 11:13:11 +00:00
|
|
|
String.valueOf(Configuration.deleteForeignLibraries), false);
|
2021-06-21 10:04:24 +00:00
|
|
|
|
2018-01-31 15:41:24 +00:00
|
|
|
if (BytecodeViewer.viewer.apkConversionGroup.isSelected(BytecodeViewer.viewer.apkConversionDex.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "0", false);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (BytecodeViewer.viewer.apkConversionGroup.isSelected(BytecodeViewer.viewer.apkConversionEnjarify.getModel()))
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName, "1", false);
|
2021-06-21 10:04:24 +00:00
|
|
|
|
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-06-21 11:13:11 +00:00
|
|
|
Configuration.python3, false);
|
2021-06-21 10:04:24 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-06-21 11:13:11 +00:00
|
|
|
Configuration.javac, false);
|
2021-06-21 10:04:24 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-06-21 11:13:11 +00:00
|
|
|
Configuration.java, false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.compileOnSave.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.autoCompileOnRefresh.isSelected()), false);
|
2021-06-21 10:04:24 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-06-21 11:13:11 +00:00
|
|
|
String.valueOf(Configuration.warnForEditing), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.showFileInTabTitle.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.forcePureAsciiAsText.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.synchronizedViewing.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.showClassMethods.isSelected()), false);
|
2021-06-21 09:45:31 +00:00
|
|
|
DiskWriter.writeNewLine(settingsName,
|
2021-04-12 20:19:12 +00:00
|
|
|
String.valueOf(BytecodeViewer.viewer.ren.isSelected()), false);
|
2018-01-31 15:41:24 +00:00
|
|
|
} catch (Exception e) {
|
|
|
|
new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-17 06:45:15 +00:00
|
|
|
public static void loadSettings() { //utilizes the Disk Reader's caching system.
|
2018-01-31 15:41:24 +00:00
|
|
|
try {
|
2021-06-21 09:45:31 +00:00
|
|
|
BytecodeViewer.viewer.rbr.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 1, true)));
|
|
|
|
BytecodeViewer.viewer.rsy.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 2, false)));
|
|
|
|
BytecodeViewer.viewer.din.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 3, false)));
|
|
|
|
BytecodeViewer.viewer.dc4.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 4, false)));
|
|
|
|
BytecodeViewer.viewer.das.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 5, false)));
|
|
|
|
BytecodeViewer.viewer.hes.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 6, false)));
|
|
|
|
BytecodeViewer.viewer.hdc.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 7, false)));
|
|
|
|
BytecodeViewer.viewer.dgs.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 8, false)));
|
|
|
|
BytecodeViewer.viewer.ner.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 9, false)));
|
|
|
|
BytecodeViewer.viewer.den.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 10, false)));
|
|
|
|
BytecodeViewer.viewer.rgn.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 11, false)));
|
|
|
|
BytecodeViewer.viewer.bto.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 12, false)));
|
|
|
|
BytecodeViewer.viewer.nns.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 13, false)));
|
|
|
|
BytecodeViewer.viewer.uto.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 14, false)));
|
|
|
|
BytecodeViewer.viewer.udv.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 15, false)));
|
|
|
|
BytecodeViewer.viewer.rer.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 16, false)));
|
|
|
|
BytecodeViewer.viewer.fdi.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 17, false)));
|
|
|
|
BytecodeViewer.viewer.asc.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 18, false)));
|
|
|
|
BytecodeViewer.viewer.decodeenumswitch.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 19, false)));
|
|
|
|
BytecodeViewer.viewer.sugarenums.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 20, false)));
|
|
|
|
BytecodeViewer.viewer.decodestringswitch.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 21, false)));
|
|
|
|
BytecodeViewer.viewer.arrayiter.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 22, false)));
|
|
|
|
BytecodeViewer.viewer.collectioniter.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 23, false)));
|
|
|
|
BytecodeViewer.viewer.innerclasses.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 24, false)));
|
|
|
|
BytecodeViewer.viewer.removeboilerplate.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 25, false)));
|
|
|
|
BytecodeViewer.viewer.removeinnerclasssynthetics.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 26, false)));
|
|
|
|
BytecodeViewer.viewer.decodelambdas.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 27, false)));
|
|
|
|
BytecodeViewer.viewer.hidebridgemethods.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 28, false)));
|
|
|
|
BytecodeViewer.viewer.liftconstructorinit.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 29, false)));
|
|
|
|
BytecodeViewer.viewer.removedeadmethods.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 30, false)));
|
|
|
|
BytecodeViewer.viewer.removebadgenerics.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 31, false)));
|
|
|
|
BytecodeViewer.viewer.sugarasserts.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 32, false)));
|
|
|
|
BytecodeViewer.viewer.sugarboxing.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 33, false)));
|
|
|
|
BytecodeViewer.viewer.showversion.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 34, false)));
|
|
|
|
BytecodeViewer.viewer.decodefinally.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 35, false)));
|
|
|
|
BytecodeViewer.viewer.tidymonitors.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 36, false)));
|
|
|
|
BytecodeViewer.viewer.lenient.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 37, false)));
|
|
|
|
BytecodeViewer.viewer.dumpclasspath.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 38, false)));
|
|
|
|
BytecodeViewer.viewer.comments.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 39, false)));
|
|
|
|
BytecodeViewer.viewer.forcetopsort.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 40, false)));
|
|
|
|
BytecodeViewer.viewer.forcetopsortaggress.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 41, false)));
|
|
|
|
BytecodeViewer.viewer.stringbuffer.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 42, false)));
|
|
|
|
BytecodeViewer.viewer.stringbuilder.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 43, false)));
|
|
|
|
BytecodeViewer.viewer.silent.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 44, false)));
|
|
|
|
BytecodeViewer.viewer.recover.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 45, false)));
|
|
|
|
BytecodeViewer.viewer.eclipse.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 46, false)));
|
|
|
|
BytecodeViewer.viewer.override.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 47, false)));
|
|
|
|
BytecodeViewer.viewer.showinferrable.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 48, false)));
|
|
|
|
BytecodeViewer.viewer.aexagg.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 49, false)));
|
|
|
|
BytecodeViewer.viewer.forcecondpropagate.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 50, false)));
|
|
|
|
BytecodeViewer.viewer.hideutf.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 51, false)));
|
|
|
|
BytecodeViewer.viewer.hidelongstrings.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 52, false)));
|
|
|
|
BytecodeViewer.viewer.commentmonitor.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 53, false)));
|
|
|
|
BytecodeViewer.viewer.allowcorrecting.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 54, false)));
|
|
|
|
BytecodeViewer.viewer.labelledblocks.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 55, false)));
|
|
|
|
BytecodeViewer.viewer.j14classobj.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 56, false)));
|
|
|
|
BytecodeViewer.viewer.hidelangimports.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 57, false)));
|
|
|
|
BytecodeViewer.viewer.recoverytypeclash.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 58, false)));
|
|
|
|
BytecodeViewer.viewer.recoverytypehints.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 59, false)));
|
|
|
|
BytecodeViewer.viewer.forceturningifs.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 60, false)));
|
|
|
|
BytecodeViewer.viewer.forloopaggcapture.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 61, false)));
|
|
|
|
BytecodeViewer.viewer.forceexceptionprune.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 62, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmShowDebugLine.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 63, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmSimplifyMemberReferences.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 64, false)));
|
|
|
|
BytecodeViewer.viewer.mnMergeVariables.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 65, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmNewCheckItem_1.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 66, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmNewCheckItem_2.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 67, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmNewCheckItem_3.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 68, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmNewCheckItem_4.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 69, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmNewCheckItem_5.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 70, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmNewCheckItem_6.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 71, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmNewCheckItem_7.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 72, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmNewCheckItem_8.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 73, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmNewCheckItem_9.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 74, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmNewCheckItem_10.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 75, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmNewCheckItem_11.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 76, false)));
|
|
|
|
BytecodeViewer.viewer.chckbxmntmAppendBrackets.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 77, false)));
|
|
|
|
BytecodeViewer.viewer.debugHelpers.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 78, false)));
|
2018-01-31 15:41:24 +00:00
|
|
|
//79 is deprecated
|
2021-06-21 09:45:31 +00:00
|
|
|
BytecodeViewer.viewer.chckbxmntmNewCheckItem_12.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 80, false)));
|
|
|
|
int decompiler = Integer.parseInt(DiskReader.loadString(settingsName, 81, false));
|
2018-01-31 15:41:24 +00:00
|
|
|
if (decompiler == 0)
|
|
|
|
BytecodeViewer.viewer.panelGroup1.setSelected(BytecodeViewer.viewer.panel1None.getModel(), true);
|
|
|
|
else if (decompiler == 1)
|
|
|
|
BytecodeViewer.viewer.panelGroup1.setSelected(BytecodeViewer.viewer.panel1Proc.getModel(), true);
|
|
|
|
else if (decompiler == 2)
|
|
|
|
BytecodeViewer.viewer.panelGroup1.setSelected(BytecodeViewer.viewer.panel1CFR.getModel(), true);
|
|
|
|
else if (decompiler == 3)
|
|
|
|
BytecodeViewer.viewer.panelGroup1.setSelected(BytecodeViewer.viewer.panel1Fern.getModel(), true);
|
|
|
|
else if (decompiler == 4)
|
|
|
|
BytecodeViewer.viewer.panelGroup1.setSelected(BytecodeViewer.viewer.panel1Bytecode.getModel(), true);
|
|
|
|
else if (decompiler == 5)
|
|
|
|
BytecodeViewer.viewer.panelGroup1.setSelected(BytecodeViewer.viewer.panel1Hexcode.getModel(), true);
|
|
|
|
else if (decompiler == 6)
|
|
|
|
BytecodeViewer.viewer.panelGroup1.setSelected(BytecodeViewer.viewer.panel1Smali.getModel(), true);
|
|
|
|
else if (decompiler == 7)
|
|
|
|
BytecodeViewer.viewer.panelGroup1.setSelected(BytecodeViewer.viewer.panel1Krakatau.getModel(), true);
|
|
|
|
else if (decompiler == 8)
|
2021-06-21 10:04:24 +00:00
|
|
|
BytecodeViewer.viewer.panelGroup1.setSelected(BytecodeViewer.viewer.panel1KrakatauBytecode.getModel(), true);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (decompiler == 9)
|
|
|
|
BytecodeViewer.viewer.panelGroup1.setSelected(BytecodeViewer.viewer.panel1JDGUI.getModel(), true);
|
2019-04-25 21:27:35 +00:00
|
|
|
else if (decompiler == 10)
|
|
|
|
BytecodeViewer.viewer.panelGroup1.setSelected(BytecodeViewer.viewer.jadxJ1.getModel(), true);
|
2019-08-11 03:25:37 +00:00
|
|
|
else if (decompiler == 11)
|
|
|
|
BytecodeViewer.viewer.panelGroup1.setSelected(BytecodeViewer.viewer.asmText1.getModel(), true);
|
2018-01-31 15:41:24 +00:00
|
|
|
|
2021-06-21 09:45:31 +00:00
|
|
|
decompiler = Integer.parseInt(DiskReader.loadString(settingsName, 82, false));
|
2018-01-31 15:41:24 +00:00
|
|
|
if (decompiler == 0)
|
|
|
|
BytecodeViewer.viewer.panelGroup2.setSelected(BytecodeViewer.viewer.panel2None.getModel(), true);
|
|
|
|
else if (decompiler == 1)
|
|
|
|
BytecodeViewer.viewer.panelGroup2.setSelected(BytecodeViewer.viewer.panel2Proc.getModel(), true);
|
|
|
|
else if (decompiler == 2)
|
|
|
|
BytecodeViewer.viewer.panelGroup2.setSelected(BytecodeViewer.viewer.panel2CFR.getModel(), true);
|
|
|
|
else if (decompiler == 3)
|
|
|
|
BytecodeViewer.viewer.panelGroup2.setSelected(BytecodeViewer.viewer.panel2Fern.getModel(), true);
|
|
|
|
else if (decompiler == 4)
|
|
|
|
BytecodeViewer.viewer.panelGroup2.setSelected(BytecodeViewer.viewer.panel2Bytecode.getModel(), true);
|
|
|
|
else if (decompiler == 5)
|
|
|
|
BytecodeViewer.viewer.panelGroup2.setSelected(BytecodeViewer.viewer.panel2Hexcode.getModel(), true);
|
|
|
|
else if (decompiler == 6)
|
|
|
|
BytecodeViewer.viewer.panelGroup2.setSelected(BytecodeViewer.viewer.panel2Smali.getModel(), true);
|
|
|
|
else if (decompiler == 7)
|
|
|
|
BytecodeViewer.viewer.panelGroup2.setSelected(BytecodeViewer.viewer.panel2Krakatau.getModel(), true);
|
|
|
|
else if (decompiler == 8)
|
2021-06-21 10:04:24 +00:00
|
|
|
BytecodeViewer.viewer.panelGroup2.setSelected(BytecodeViewer.viewer.panel2KrakatauBytecode.getModel(), true);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (decompiler == 9)
|
|
|
|
BytecodeViewer.viewer.panelGroup2.setSelected(BytecodeViewer.viewer.panel2JDGUI.getModel(), true);
|
2019-04-25 21:27:35 +00:00
|
|
|
else if (decompiler == 10)
|
2019-08-11 03:26:54 +00:00
|
|
|
BytecodeViewer.viewer.panelGroup2.setSelected(BytecodeViewer.viewer.jadxJ2.getModel(), true);
|
2019-08-11 03:25:37 +00:00
|
|
|
else if (decompiler == 11)
|
|
|
|
BytecodeViewer.viewer.panelGroup2.setSelected(BytecodeViewer.viewer.asmText2.getModel(), true);
|
2018-01-31 15:41:24 +00:00
|
|
|
|
2021-06-21 09:45:31 +00:00
|
|
|
decompiler = Integer.parseInt(DiskReader.loadString(settingsName, 83, false));
|
2018-01-31 15:41:24 +00:00
|
|
|
if (decompiler == 0)
|
|
|
|
BytecodeViewer.viewer.panelGroup3.setSelected(BytecodeViewer.viewer.panel3None.getModel(), true);
|
|
|
|
else if (decompiler == 1)
|
|
|
|
BytecodeViewer.viewer.panelGroup3.setSelected(BytecodeViewer.viewer.panel3Proc.getModel(), true);
|
|
|
|
else if (decompiler == 2)
|
|
|
|
BytecodeViewer.viewer.panelGroup3.setSelected(BytecodeViewer.viewer.panel3CFR.getModel(), true);
|
|
|
|
else if (decompiler == 3)
|
|
|
|
BytecodeViewer.viewer.panelGroup3.setSelected(BytecodeViewer.viewer.panel3Fern.getModel(), true);
|
|
|
|
else if (decompiler == 4)
|
|
|
|
BytecodeViewer.viewer.panelGroup3.setSelected(BytecodeViewer.viewer.panel3Bytecode.getModel(), true);
|
|
|
|
else if (decompiler == 5)
|
|
|
|
BytecodeViewer.viewer.panelGroup3.setSelected(BytecodeViewer.viewer.panel3Hexcode.getModel(), true);
|
|
|
|
else if (decompiler == 6)
|
|
|
|
BytecodeViewer.viewer.panelGroup3.setSelected(BytecodeViewer.viewer.panel3Smali.getModel(), true);
|
|
|
|
else if (decompiler == 7)
|
|
|
|
BytecodeViewer.viewer.panelGroup3.setSelected(BytecodeViewer.viewer.panel3Krakatau.getModel(), true);
|
|
|
|
else if (decompiler == 8)
|
2021-06-21 10:04:24 +00:00
|
|
|
BytecodeViewer.viewer.panelGroup3.setSelected(BytecodeViewer.viewer.panel3KrakatauBytecode.getModel(), true);
|
2018-01-31 15:41:24 +00:00
|
|
|
else if (decompiler == 9)
|
|
|
|
BytecodeViewer.viewer.panelGroup3.setSelected(BytecodeViewer.viewer.panel3JDGUI.getModel(), true);
|
2019-04-25 21:27:35 +00:00
|
|
|
else if (decompiler == 10)
|
2019-08-11 03:26:54 +00:00
|
|
|
BytecodeViewer.viewer.panelGroup3.setSelected(BytecodeViewer.viewer.jadxJ3.getModel(), true);
|
2019-08-11 03:25:37 +00:00
|
|
|
else if (decompiler == 11)
|
|
|
|
BytecodeViewer.viewer.panelGroup3.setSelected(BytecodeViewer.viewer.asmText3.getModel(), true);
|
2018-01-31 15:03:53 +00:00
|
|
|
|
2021-06-21 09:45:31 +00:00
|
|
|
BytecodeViewer.viewer.refreshOnChange.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 84, false)));
|
2018-01-31 15:03:53 +00:00
|
|
|
|
2021-06-21 09:45:31 +00:00
|
|
|
boolean bool = Boolean.parseBoolean(DiskReader.loadString(settingsName, 85, false));
|
2018-01-31 15:41:24 +00:00
|
|
|
if (bool) {
|
|
|
|
BytecodeViewer.viewer.setExtendedState(JFrame.MAXIMIZED_BOTH);
|
|
|
|
BytecodeViewer.viewer.isMaximized = true;
|
|
|
|
}
|
2019-04-14 03:45:40 +00:00
|
|
|
//86 is deprecated
|
|
|
|
//87 is deprecated
|
2021-06-21 11:13:11 +00:00
|
|
|
Configuration.lastDirectory = DiskReader.loadString(settingsName, 88, false);
|
|
|
|
Configuration.python = DiskReader.loadString(settingsName, 89, false);
|
|
|
|
Configuration.rt = DiskReader.loadString(settingsName, 90, false);
|
2021-06-21 09:45:31 +00:00
|
|
|
BytecodeViewer.viewer.panel1Proc_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 91, false)));
|
|
|
|
BytecodeViewer.viewer.panel1CFR_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 92, false)));
|
|
|
|
BytecodeViewer.viewer.panel1Fern_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 93, false)));
|
|
|
|
BytecodeViewer.viewer.panel1Krakatau_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 94, false)));
|
|
|
|
BytecodeViewer.viewer.panel1Smali_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 95, false)));
|
|
|
|
BytecodeViewer.viewer.panel2Proc_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 96, false)));
|
|
|
|
BytecodeViewer.viewer.panel2CFR_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 97, false)));
|
|
|
|
BytecodeViewer.viewer.panel2Fern_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 98, false)));
|
|
|
|
BytecodeViewer.viewer.panel2Krakatau_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 99, false)));
|
|
|
|
BytecodeViewer.viewer.panel2Smali_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 100, false)));
|
|
|
|
BytecodeViewer.viewer.panel3Proc_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 101, false)));
|
|
|
|
BytecodeViewer.viewer.panel3CFR_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 101, false)));
|
|
|
|
BytecodeViewer.viewer.panel3Fern_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 103, false)));
|
|
|
|
BytecodeViewer.viewer.panel3Krakatau_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 104, false)));
|
|
|
|
BytecodeViewer.viewer.panel3Smali_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 105, false)));
|
|
|
|
BytecodeViewer.viewer.decodeAPKResources.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 106, false)));
|
2021-06-21 11:13:11 +00:00
|
|
|
Configuration.library = DiskReader.loadString(settingsName, 107, false);
|
|
|
|
Configuration.pingback = Boolean.parseBoolean(DiskReader.loadString(settingsName, 108, false));
|
2021-06-21 09:45:31 +00:00
|
|
|
BytecodeViewer.viewer.panel1JDGUI_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 109, false)));
|
|
|
|
BytecodeViewer.viewer.panel2JDGUI_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 110, false)));
|
|
|
|
BytecodeViewer.viewer.panel3JDGUI_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 111, false)));
|
|
|
|
BytecodeViewer.viewer.fontSpinner.setValue(Integer.parseInt(DiskReader.loadString(settingsName, 112, false)));
|
2021-06-21 11:13:11 +00:00
|
|
|
Configuration.deleteForeignLibraries = Boolean.parseBoolean(DiskReader.loadString(settingsName, 113, false));
|
2021-06-21 09:45:31 +00:00
|
|
|
decompiler = Integer.parseInt(DiskReader.loadString(settingsName, 114, false));
|
2021-06-21 10:04:24 +00:00
|
|
|
|
2018-01-31 15:41:24 +00:00
|
|
|
if (decompiler == 0)
|
|
|
|
BytecodeViewer.viewer.apkConversionGroup.setSelected(BytecodeViewer.viewer.apkConversionDex.getModel(), true);
|
|
|
|
else if (decompiler == 1)
|
|
|
|
BytecodeViewer.viewer.apkConversionGroup.setSelected(BytecodeViewer.viewer.apkConversionEnjarify.getModel(), true);
|
2021-06-21 11:13:11 +00:00
|
|
|
|
|
|
|
Configuration.python3 = DiskReader.loadString(settingsName, 115, false);
|
|
|
|
Configuration.javac = DiskReader.loadString(settingsName, 116, false);
|
|
|
|
Configuration.java = DiskReader.loadString(settingsName, 117, false);
|
2021-06-21 09:45:31 +00:00
|
|
|
BytecodeViewer.viewer.compileOnSave.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 118, false)));
|
|
|
|
BytecodeViewer.viewer.autoCompileOnRefresh.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 119, false)));
|
2021-06-21 11:13:11 +00:00
|
|
|
Configuration.warnForEditing = Boolean.parseBoolean(DiskReader.loadString(settingsName, 120, false));
|
2021-06-21 09:45:31 +00:00
|
|
|
BytecodeViewer.viewer.showFileInTabTitle.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 121, false)));
|
2021-06-21 11:13:11 +00:00
|
|
|
Configuration.displayParentInTab = BytecodeViewer.viewer.showFileInTabTitle.isSelected();
|
2021-06-21 09:45:31 +00:00
|
|
|
BytecodeViewer.viewer.forcePureAsciiAsText.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 122, false)));
|
|
|
|
BytecodeViewer.viewer.synchronizedViewing.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 123, false)));
|
|
|
|
BytecodeViewer.viewer.showClassMethods.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 124, false)));
|
|
|
|
BytecodeViewer.viewer.ren.setSelected(Boolean.parseBoolean(DiskReader.loadString(settingsName, 125, false)));
|
2018-01-31 15:41:24 +00:00
|
|
|
} catch (Exception e) {
|
|
|
|
//ignore because errors are expected, first start up and outdated settings.
|
|
|
|
//e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
2018-01-31 15:03:53 +00:00
|
|
|
}
|