From dc8fc09ad8ce0ed886d57d39f65b49ac9b40d9b4 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Tue, 31 Jan 2023 10:00:38 +0200 Subject: [PATCH] tools : added sample pkgextract project for unpacking pkg without gui first --- tools/pkg extractor/pkgextract.cpp | 20 +++ tools/pkg extractor/pkgextract.sln | 31 ++++ tools/pkg extractor/pkgextract.vcxproj | 135 ++++++++++++++++++ .../pkg extractor/pkgextract.vcxproj.filters | 22 +++ 4 files changed, 208 insertions(+) create mode 100644 tools/pkg extractor/pkgextract.cpp create mode 100644 tools/pkg extractor/pkgextract.sln create mode 100644 tools/pkg extractor/pkgextract.vcxproj create mode 100644 tools/pkg extractor/pkgextract.vcxproj.filters diff --git a/tools/pkg extractor/pkgextract.cpp b/tools/pkg extractor/pkgextract.cpp new file mode 100644 index 00000000..17a2481f --- /dev/null +++ b/tools/pkg extractor/pkgextract.cpp @@ -0,0 +1,20 @@ +// pkgextract.cpp : This file contains the 'main' function. Program execution begins and ends there. +// + +#include + +int main() +{ + std::cout << "Hello World!\n"; +} + +// Run program: Ctrl + F5 or Debug > Start Without Debugging menu +// Debug program: F5 or Debug > Start Debugging menu + +// Tips for Getting Started: +// 1. Use the Solution Explorer window to add/manage files +// 2. Use the Team Explorer window to connect to source control +// 3. Use the Output window to see build output and other messages +// 4. Use the Error List window to view errors +// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project +// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file diff --git a/tools/pkg extractor/pkgextract.sln b/tools/pkg extractor/pkgextract.sln new file mode 100644 index 00000000..51345031 --- /dev/null +++ b/tools/pkg extractor/pkgextract.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33213.308 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pkgextract", "pkgextract.vcxproj", "{446E2603-4743-49E6-B4CB-56835155399E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {446E2603-4743-49E6-B4CB-56835155399E}.Debug|x64.ActiveCfg = Debug|x64 + {446E2603-4743-49E6-B4CB-56835155399E}.Debug|x64.Build.0 = Debug|x64 + {446E2603-4743-49E6-B4CB-56835155399E}.Debug|x86.ActiveCfg = Debug|Win32 + {446E2603-4743-49E6-B4CB-56835155399E}.Debug|x86.Build.0 = Debug|Win32 + {446E2603-4743-49E6-B4CB-56835155399E}.Release|x64.ActiveCfg = Release|x64 + {446E2603-4743-49E6-B4CB-56835155399E}.Release|x64.Build.0 = Release|x64 + {446E2603-4743-49E6-B4CB-56835155399E}.Release|x86.ActiveCfg = Release|Win32 + {446E2603-4743-49E6-B4CB-56835155399E}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3DFF47CF-BF9E-4143-A8C0-8ED0C43581CB} + EndGlobalSection +EndGlobal diff --git a/tools/pkg extractor/pkgextract.vcxproj b/tools/pkg extractor/pkgextract.vcxproj new file mode 100644 index 00000000..c2e4518a --- /dev/null +++ b/tools/pkg extractor/pkgextract.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {446e2603-4743-49e6-b4cb-56835155399e} + pkgextract + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/tools/pkg extractor/pkgextract.vcxproj.filters b/tools/pkg extractor/pkgextract.vcxproj.filters new file mode 100644 index 00000000..bec5b80e --- /dev/null +++ b/tools/pkg extractor/pkgextract.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + \ No newline at end of file