diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b8da77 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.exe +x64/ +x86/ +.vs/ \ No newline at end of file diff --git a/README.md b/README.md index 3ac8a41..939db5e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # SAOFB-Launcher + Launcher for Sword Art Online Fatal Bullet(Pirated Version) + +Easy to use mods, just compile and put it in your game root directory. diff --git a/Source Code/RunSAOFB.h b/Source Code/RunSAOFB.h index 3a1f1ab..31ccdf8 100644 --- a/Source Code/RunSAOFB.h +++ b/Source Code/RunSAOFB.h @@ -1,6 +1,7 @@ #pragma once #include #include + VOID startup(LPWSTR lpApplicationName) { // additional information @@ -12,23 +13,24 @@ VOID startup(LPWSTR lpApplicationName) ZeroMemory(&pi, sizeof(pi)); // start the program up - CreateProcessW(lpApplicationName, // the path - 0, // Command line - NULL, // Process handle not inheritable - NULL, // Thread handle not inheritable - FALSE, // Set handle inheritance to FALSE - 0, // No creation flags - NULL, // Use parent's environment block - NULL, // Use parent's starting directory - &si, // Pointer to STARTUPINFO structure - &pi // Pointer to PROCESS_INFORMATION structure (removed extra parentheses) + CreateProcessW(lpApplicationName, // the path + 0, // Command line + NULL, // Process handle not inheritable + NULL, // Thread handle not inheritable + FALSE, // Set handle inheritance to FALSE + 0, // No creation flags + NULL, // Use parent's environment block + NULL, // Use parent's starting directory + &si, // Pointer to STARTUPINFO structure + &pi // Pointer to PROCESS_INFORMATION structure (removed extra parentheses) ); - // Close process and thread handles. + // Close process and thread handles. CloseHandle(pi.hProcess); CloseHandle(pi.hThread); } -bool RunSAOFB() + +bool RunSAOFB() { - startup((LPWSTR)L"R:\\Games\\Sword Art Online Fatal Bullet Dissonance of the Nexus\\SAOFB\\Binaries\\Win64\\SAOFB-Win64-Shipping.exe"); //Sword Art Online Fatal Bullet Auto Launcher + startup((LPWSTR)L".\\SAOFB\\Binaries\\Win64\\SAOFB-Win64-Shipping.exe"); // Sword Art Online Fatal Bullet Auto Launcher return GetLastError(); } diff --git a/Source Code/SAOFB-Launcher.vcxproj b/Source Code/SAOFB-Launcher.vcxproj index 188bf58..5fcf6f4 100644 --- a/Source Code/SAOFB-Launcher.vcxproj +++ b/Source Code/SAOFB-Launcher.vcxproj @@ -29,26 +29,26 @@ Application true - v142 + v143 Unicode Application false - v142 + v143 true Unicode Application true - v142 + v143 Unicode Application false - v142 + v143 true Unicode