mirror of
https://github.com/kurikomoe/L4D2Fix.git
synced 2026-10-11 09:58:01 +08:00
lints
This commit is contained in:
7 files changed
+222
-4
No files matched your search
+7
-1
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "hooks_indices.h"
|
||||
#include "hooks_dvb.h"
|
||||
#include "hooks_indexbuffer.h"
|
||||
#include "hooks_vertexbuffer.h"
|
||||
|
||||
|
||||
void InitConsole() {
|
||||
@@ -115,7 +117,7 @@ DWORD __stdcall Main(void*) {
|
||||
auto absPath = std::filesystem::absolute(relPath);
|
||||
|
||||
std::wcout << absPath << std::endl;
|
||||
spdlog::info(L"Loading Dll fromg {}", absPath.wstring());
|
||||
spdlog::info(L"Loading Dll from {}", absPath.wstring());
|
||||
|
||||
HMODULE hDll = LoadLibraryExW(absPath.c_str(), nullptr, LOAD_WITH_ALTERED_SEARCH_PATH);
|
||||
|
||||
@@ -138,6 +140,10 @@ DWORD __stdcall Main(void*) {
|
||||
ret += PatchIndices(hDll, dllName);
|
||||
ret += hooks_dvb(hDll, dllName);
|
||||
|
||||
// Experiments
|
||||
// ret += hooks_indexbuffer(hDll, dllName);
|
||||
// ret += VertexBuffer::hooks_vertexbuffer(hDll, dllName);
|
||||
|
||||
if (ret != 0) {
|
||||
MessageBoxW(NULL, L"未能正常应用补丁,patch 未生效,请联系开发者\n这只是一个警告,可能不影响游戏运行", L"L4D2 Fix", MB_OK);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user