chore: CRLF to LF

This commit is contained in:
smpn2
2022-12-16 23:18:35 +09:00
parent b7a60638a4
commit 6c914266d9
725 changed files with 131020 additions and 131020 deletions
+34 -34
View File
@@ -1,34 +1,34 @@
#include "rf3d.h"
#include "avs/game.h"
#include "hooks/devicehook.h"
#include "util/detour.h"
games::rf3d::RF3DGame::RF3DGame() : Game("Road Fighters 3D") {
}
static decltype(GetFileAttributesA)* GetFileAttributesA_orig;
static DWORD __stdcall GetFileAttributesA_hook(LPCSTR lpFileName) {
if (strcmp(lpFileName, "C:\\WERUNTIME.INI") == 0) {
return INVALID_FILE_ATTRIBUTES;
}
return GetFileAttributesA_orig(lpFileName);
}
void games::rf3d::RF3DGame::attach() {
Game::attach();
// device hook for JGT-001 redirection
devicehook_init();
// game changes power configurations if C:\WERUNTIME.INI exists
GetFileAttributesA_orig = detour::iat_try("GetFileAttributesA", GetFileAttributesA_hook, avs::game::DLL_INSTANCE);
}
void games::rf3d::RF3DGame::detach() {
Game::detach();
devicehook_dispose();
}
#include "rf3d.h"
#include "avs/game.h"
#include "hooks/devicehook.h"
#include "util/detour.h"
games::rf3d::RF3DGame::RF3DGame() : Game("Road Fighters 3D") {
}
static decltype(GetFileAttributesA)* GetFileAttributesA_orig;
static DWORD __stdcall GetFileAttributesA_hook(LPCSTR lpFileName) {
if (strcmp(lpFileName, "C:\\WERUNTIME.INI") == 0) {
return INVALID_FILE_ATTRIBUTES;
}
return GetFileAttributesA_orig(lpFileName);
}
void games::rf3d::RF3DGame::attach() {
Game::attach();
// device hook for JGT-001 redirection
devicehook_init();
// game changes power configurations if C:\WERUNTIME.INI exists
GetFileAttributesA_orig = detour::iat_try("GetFileAttributesA", GetFileAttributesA_hook, avs::game::DLL_INSTANCE);
}
void games::rf3d::RF3DGame::detach() {
Game::detach();
devicehook_dispose();
}