Usunięto resztę makr
This commit is contained in:
parent
bfc6c1811d
commit
336e12d8c0
3 changed files with 13 additions and 13 deletions
14
DataStruct.h
14
DataStruct.h
|
|
@ -22,15 +22,15 @@
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
//Prgoram title
|
namespace ui
|
||||||
#define PROGRAM_TITLE "eXtendet PAK"
|
{
|
||||||
#define PROGRAM_VERSION "v0.5"
|
inline constexpr std::string_view title = "exPak";
|
||||||
#define PROGRAM_AUTHOR "Yanczi"
|
inline constexpr std::string_view ver = "0.5";
|
||||||
#define PROGRAM_COMPILING "19 December 2025"
|
}
|
||||||
#define PROGRAM_LICENSE "GNU LGPL v3"
|
|
||||||
|
|
||||||
// Pliki
|
// Pliki
|
||||||
namespace fl {
|
namespace fl
|
||||||
|
{
|
||||||
inline constexpr std::string_view sigpak = "XPAK";
|
inline constexpr std::string_view sigpak = "XPAK";
|
||||||
inline constexpr std::string_view sigkey = "XKEY";
|
inline constexpr std::string_view sigkey = "XKEY";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ void EncryptionManager::saveCppHeadFile(const std::string& path)
|
||||||
|
|
||||||
std::ofstream file(path + ".hpp");
|
std::ofstream file(path + ".hpp");
|
||||||
|
|
||||||
file << "// Plik wygenerowany przez " << PROGRAM_TITLE << " " << PROGRAM_VERSION << std::endl;
|
file << "// Plik wygenerowany przez " << ui::title << " " << ui::ver << std::endl;
|
||||||
file << std::endl;
|
file << std::endl;
|
||||||
file << std::endl;
|
file << std::endl;
|
||||||
file << "#pragma once" << std::endl;
|
file << "#pragma once" << std::endl;
|
||||||
|
|
|
||||||
10
voidcmd.cpp
10
voidcmd.cpp
|
|
@ -80,16 +80,16 @@ static bool EmptyPath(std::string path)
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
std::string path = "";
|
std::cout << ui::title << std::endl << "ver. " << ui::ver << std::endl;
|
||||||
|
std::cout << "Author: Yanczi" << std::endl;
|
||||||
std::cout << PROGRAM_VERSION << " Release " << PROGRAM_COMPILING << std::endl;
|
std::cout << "License: GNU LGPL v3" << "\n" << std::endl;
|
||||||
std::cout << "Author: " << PROGRAM_AUTHOR << std::endl;
|
|
||||||
std::cout << "License: " << PROGRAM_LICENSE << "\n" << std::endl;
|
|
||||||
|
|
||||||
CreateCargo cargo;
|
CreateCargo cargo;
|
||||||
ExtractCargo extract;
|
ExtractCargo extract;
|
||||||
ViewCargo viewCargo;
|
ViewCargo viewCargo;
|
||||||
|
|
||||||
|
std::string path = "";
|
||||||
|
|
||||||
for (int i = 0; i < argc; ++i)
|
for (int i = 0; i < argc; ++i)
|
||||||
{
|
{
|
||||||
std::string arg = argv[i];
|
std::string arg = argv[i];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue