Skip to content

Commit

Permalink
use mingw-w64 instead of msvc++
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliony committed Jul 31, 2021
1 parent 6142808 commit 08fdde0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

*.exe
1 change: 1 addition & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
wsl x86_64-w64-mingw32-g++ -O3 -static -s -std=c++17 main.cpp -o genshin-144fps.exe
8 changes: 5 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
#error You must build in x64
#endif

#include <Windows.h>
#include <TlHelp32.h>
#define _WIN32_WINNT 0x0601

#include <windows.h>
#include <tlhelp32.h>
#include <vector>
#include <string>
#include <thread>
#include <Psapi.h>
#include <psapi.h>

bool bStop = false;

Expand Down

0 comments on commit 08fdde0

Please sign in to comment.