Skip to content

Commit 4f48500

Browse files
committed
Remove dead CFileSystemHook code
1 parent 459f6a8 commit 4f48500

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Client/core/CCore.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ CCore::CCore()
136136
m_pMouseControl = new CMouseControl();
137137

138138
// Create our hook objects.
139-
// m_pFileSystemHook = new CFileSystemHook ( );
140139
m_pDirect3DHookManager = new CDirect3DHookManager();
141140
m_pDirectInputHookManager = new CDirectInputHookManager();
142141
m_pMessageLoopHook = new CMessageLoopHook();
@@ -210,7 +209,6 @@ CCore::~CCore()
210209

211210
// Delete hooks.
212211
delete m_pSetCursorPosHook;
213-
// delete m_pFileSystemHook;
214212
delete m_pDirect3DHookManager;
215213
delete m_pDirectInputHookManager;
216214

@@ -839,12 +837,8 @@ void CCore::ApplyHooks()
839837
// Create our hooks.
840838
m_pDirectInputHookManager->ApplyHook();
841839
// m_pDirect3DHookManager->ApplyHook ( );
842-
// m_pFileSystemHook->ApplyHook ( );
843840
m_pSetCursorPosHook->ApplyHook();
844841

845-
// Redirect basic files.
846-
// m_pFileSystemHook->RedirectFile ( "main.scm", "../../mta/gtafiles/main.scm" );
847-
848842
// Remove useless DirectPlay dependency (dpnhpast.dll) @ 0x745701
849843
// We have to patch here as multiplayer_sa and game_sa are loaded too late
850844
DetourLibraryFunction("kernel32.dll", "LoadLibraryA", Win32LoadLibraryA, SkipDirectPlay_LoadLibraryA);

Client/core/CCore.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,7 @@ class CCore : public CCoreInterface, public CSingleton<CCore>
314314
CMessageLoopHook* m_pMessageLoopHook;
315315
CDirectInputHookManager* m_pDirectInputHookManager;
316316
CDirect3DHookManager* m_pDirect3DHookManager;
317-
// CFileSystemHook * m_pFileSystemHook;
318-
CSetCursorPosHook* m_pSetCursorPosHook;
317+
CSetCursorPosHook* m_pSetCursorPosHook;
319318

320319
bool m_bLastFocused;
321320
int m_iUnminimizeFrameCounter;

0 commit comments

Comments
 (0)