From 6bd91573df74e356f50b629010aa1c4725c16a07 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Mon, 2 Jun 2025 01:41:20 +0200 Subject: [PATCH] Initial commit --- .gitignore | 4 ++++ .sun | 3 +++ main.cpp | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 .sun create mode 100644 main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2b4639d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +int/ +OpenWF/ +*.exe +*.dll diff --git a/.sun b/.sun new file mode 100644 index 0000000..ff05f2c --- /dev/null +++ b/.sun @@ -0,0 +1,3 @@ ++*.cpp +name Bootstrapper Setup +arg -O3 diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..8bc5f3e --- /dev/null +++ b/main.cpp @@ -0,0 +1,23 @@ +#include + +int main() +{ + if (std::filesystem::exists("Warframe.x64.exe")) + { + { + std::error_code ec; + std::filesystem::create_directory("OpenWF", ec); + } + + if (!std::filesystem::exists("OpenWF/Download Latest DLL.ps1")) + { + system(R"(powershell -Command "Invoke-WebRequest https://openwf.io/supplementals/Download%20Latest%20DLL.ps1 -OutFile 'OpenWF/Download Latest DLL.ps1'")"); + } + system(R"(cd OpenWF && powershell -executionpolicy bypass -File "Download Latest DLL.ps1")"); + } + else + { + printf("Please put this program into your Warframe installation folder (the one where Warframe.x64.exe is in) before running it.\n"); + system("pause > nul"); + } +}