pmt: Minor changes.

- Add build instruction.
 - Improve function lambdas.
This commit is contained in:
2025-08-29 13:40:03 +03:00
parent 1a9b4ff5ad
commit d19343d644
4 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,8 @@ PMT is designed for developers, technicians, and Android enthusiasts who need fi
For all information about PMT, see the [wiki](https://github.com/ShawkTeam/pmt-renovated/wiki).\ For all information about PMT, see the [wiki](https://github.com/ShawkTeam/pmt-renovated/wiki).\
Read [Wiki - Using PMT via Termux or ADB](https://github.com/ShawkTeam/pmt-renovated/wiki/Using-PMT-via-Termux-or-ADB) for learn how to use PMT via Termux or ADB.\ Read [Wiki - Using PMT via Termux or ADB](https://github.com/ShawkTeam/pmt-renovated/wiki/Using-PMT-via-Termux-or-ADB) for learn how to use PMT via Termux or ADB.\
Detailed usage instructions and option references can be found in the [Wiki - Usage](https://github.com/ShawkTeam/pmt-renovated/wiki/Usage). Detailed usage instructions and option references can be found in the [Wiki - Usage](https://github.com/ShawkTeam/pmt-renovated/wiki/Usage).\
See [Wiki - How To Build](https://github.com/ShawkTeam/pmt-renovated/wiki/How-To-Build) to learn how to build.
## Bug Reporting ## Bug Reporting
Please submit bugs at [Issues](https://github.com/ShawkTeam/pmt-renovated/issues) page. Please submit bugs at [Issues](https://github.com/ShawkTeam/pmt-renovated/issues) page.

View File

@@ -58,9 +58,7 @@ INIT(infoFunction) {
RUN(infoFunction) { RUN(infoFunction) {
std::vector<PartitionMap::Partition_t> jParts; std::vector<PartitionMap::Partition_t> jParts;
auto func = [this, auto func = [this, &jParts] COMMON_LAMBDA_PARAMS -> bool {
&jParts](std::string partition,
const PartitionMap::Map_t::BasicInf props) -> bool {
if (Variables->onLogical && !props.isLogical) { if (Variables->onLogical && !props.isLogical) {
if (Variables->forceProcess) if (Variables->forceProcess)
LOGN(IFUN, WARNING) LOGN(IFUN, WARNING)

View File

@@ -60,8 +60,7 @@ INIT(partitionSizeFunction) {
} }
RUN(partitionSizeFunction) { RUN(partitionSizeFunction) {
auto func = [this](std::string partition, auto func = [this] COMMON_LAMBDA_PARAMS -> bool {
PartitionMap::Map_t::BasicInf props) -> bool {
if (Variables->onLogical && !props.isLogical) { if (Variables->onLogical && !props.isLogical) {
if (Variables->forceProcess) if (Variables->forceProcess)
LOGN(SFUN, WARNING) LOGN(SFUN, WARNING)

View File

@@ -29,6 +29,8 @@
bool cls::isUsed() const { return cmd->parsed(); } bool cls::isUsed() const { return cmd->parsed(); }
#define NAME(cls) const char *cls::name() const #define NAME(cls) const char *cls::name() const
#define COMMON_LAMBDA_PARAMS \
(std::string partition, const PartitionMap::Map_t::BasicInf props)
#define COMMON_FUNCTION_BODY() \ #define COMMON_FUNCTION_BODY() \
CLI::App *cmd = nullptr; \ CLI::App *cmd = nullptr; \
bool init(CLI::App &_app) override; \ bool init(CLI::App &_app) override; \