libtwrpgui: convert gui to use new ziparchive library
Change-Id: Iea94855257c6d02c2f663c25d390cb1cfb91a727
This commit is contained in:
+1
-40
@@ -55,7 +55,7 @@ extern "C" {
|
||||
#include "twinstall/adb_install.h"
|
||||
};
|
||||
#include "set_metadata.h"
|
||||
#include "../minuitwrp/minui.h"
|
||||
#include "minuitwrp/minui.h"
|
||||
|
||||
#include "rapidxml.hpp"
|
||||
#include "objects.hpp"
|
||||
@@ -221,9 +221,6 @@ GUIAction::GUIAction(xml_node<>* node)
|
||||
ADD_ACTION(fixpermissions);
|
||||
ADD_ACTION(dd);
|
||||
ADD_ACTION(partitionsd);
|
||||
ADD_ACTION(installhtcdumlock);
|
||||
ADD_ACTION(htcdumlockrestoreboot);
|
||||
ADD_ACTION(htcdumlockreflashrecovery);
|
||||
ADD_ACTION(cmd);
|
||||
ADD_ACTION(terminalcommand);
|
||||
ADD_ACTION(reinjecttwrp);
|
||||
@@ -1362,42 +1359,6 @@ int GUIAction::partitionsd(std::string arg __unused)
|
||||
|
||||
}
|
||||
|
||||
int GUIAction::installhtcdumlock(std::string arg __unused)
|
||||
{
|
||||
operation_start("Install HTC Dumlock");
|
||||
if (simulate) {
|
||||
simulate_progress_bar();
|
||||
} else
|
||||
TWFunc::install_htc_dumlock();
|
||||
|
||||
operation_end(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int GUIAction::htcdumlockrestoreboot(std::string arg __unused)
|
||||
{
|
||||
operation_start("HTC Dumlock Restore Boot");
|
||||
if (simulate) {
|
||||
simulate_progress_bar();
|
||||
} else
|
||||
TWFunc::htc_dumlock_restore_original_boot();
|
||||
|
||||
operation_end(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int GUIAction::htcdumlockreflashrecovery(std::string arg __unused)
|
||||
{
|
||||
operation_start("HTC Dumlock Reflash Recovery");
|
||||
if (simulate) {
|
||||
simulate_progress_bar();
|
||||
} else
|
||||
TWFunc::htc_dumlock_reflash_recovery_to_boot();
|
||||
|
||||
operation_end(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int GUIAction::cmd(std::string arg)
|
||||
{
|
||||
int op_status = 0;
|
||||
|
||||
Reference in New Issue
Block a user