mirror of
https://github.com/Neo-Desktop/WindowsXPKg
synced 2025-12-08 19:25:13 +02:00
duh
This commit is contained in:
@@ -71,7 +71,7 @@ void CLI::showHelp(char *argv[]) {
|
|||||||
fmt::print("\t-u --upgrade\tspecifies the Product Key will be an \"Upgrade\" version\n");
|
fmt::print("\t-u --upgrade\tspecifies the Product Key will be an \"Upgrade\" version\n");
|
||||||
fmt::print("\t-V --validate\tproduct key to validate signature\n");
|
fmt::print("\t-V --validate\tproduct key to validate signature\n");
|
||||||
fmt::print("\t-N --nonewlines\tdisables newlines (for easier embedding in other apps)\n");
|
fmt::print("\t-N --nonewlines\tdisables newlines (for easier embedding in other apps)\n");
|
||||||
fmt::print("\t-o --override\tDisables version check for confirmation IDs, if you need this send an issue on GitHub");
|
fmt::print("\t-o --override\tDisables version check for confirmation IDs, if you need this send an issue on GitHub\n");
|
||||||
fmt::print("\t-D --nodashes\tDisables dashes in product keys (for easier copy-pasting)");
|
fmt::print("\t-D --nodashes\tDisables dashes in product keys (for easier copy-pasting)");
|
||||||
fmt::print("\n");
|
fmt::print("\n");
|
||||||
}
|
}
|
||||||
@@ -332,12 +332,13 @@ void CLI::printID(DWORD *pid) {
|
|||||||
void CLI::printKey(char *pk) {
|
void CLI::printKey(char *pk) {
|
||||||
assert(strlen(pk) >= PK_LENGTH);
|
assert(strlen(pk) >= PK_LENGTH);
|
||||||
std::string keyFormat = "{}-{}-{}-{}-{}";
|
std::string keyFormat = "{}-{}-{}-{}-{}";
|
||||||
|
|
||||||
if (this->options.nodashes == true) {
|
if (this->options.nodashes == true) {
|
||||||
keyFormat = "{}{}{}{}{}";
|
keyFormat = "{}{}{}{}{}";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string spk = pk;
|
std::string spk = pk;
|
||||||
fmt::print("{}-{}-{}-{}-{}",
|
fmt::print(keyFormat,
|
||||||
spk.substr(0,5),
|
spk.substr(0,5),
|
||||||
spk.substr(5,5),
|
spk.substr(5,5),
|
||||||
spk.substr(10,5),
|
spk.substr(10,5),
|
||||||
|
|||||||
Reference in New Issue
Block a user