diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-03 15:05:19 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-03 15:05:19 +0100 |
| commit | e2c2361f335a45d1268481c17fea6f50aa03bbff (patch) | |
| tree | e2fd2c4fd8cfe0b26277f64e975fbbf756f8a3c8 /tools/src/MakeFramework.cc | |
| parent | 140d983c55e0f9a2d1829c997d7751f234703fb6 (diff) | |
IMP: MakeFramework tool, (Alpha)
- This tool is used to make frameworks and apps.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'tools/src/MakeFramework.cc')
| -rw-r--r-- | tools/src/MakeFramework.cc | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tools/src/MakeFramework.cc b/tools/src/MakeFramework.cc deleted file mode 100644 index af4ed0cb..00000000 --- a/tools/src/MakeFramework.cc +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Created on Thu Oct 17 08:00:42 CEST 2024 - * - * Copyright (c) 2024 EL Mahrouss Logic - */ - -#include <filesystem> -#include <framework.h> - -/// @brief This program converts a PE32+ driver, into a custom format, the ZXD. -/// @note ZXD is a format for ZKA signed drivers. -int main(int argc, char* argv[]) -{ - for (size_t i = 1ul; i < argc; ++i) - { - if (strcmp(argv[i], "-h") == 0) - { - std::cout << "make_framework: Framework Creation Tool.\n"; - std::cout << "make_framework: © EL Mahrouss Logic, all rights reserved.\n"; - - return 0; - } - } - - auto path = std::string(argv[1]); - - if (!path.ends_with(kFKExtension)) - return 1; - - std::filesystem::path path_arg = path; - - if (std::filesystem::create_directory(path_arg)) - { - std::filesystem::create_directory(path_arg / kFKRootDirectory); - std::filesystem::create_directory(path_arg / kFKManifestDirectory); - std::filesystem::create_directory(path_arg / kFKDLLDirectory); - - return 0; - } - - return 1; -} |
