24 lines
703 B
C++
Raw Permalink Normal View History

2025-06-02 01:41:20 +02:00
#include <filesystem>
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");
}
}