mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Completely re-wrote the DirectX creation and hooks. * Using spdlog mostly everywhere now. * Added prints for when compiled in debug. * Using LockCursor now to prevent input to the game while in the gui. * Patched the game to call CMatSystemSurface::LockCursor instead of it calling the inlined version. * Added rebuild CHostState::FrameUpdate (Not finished yet) * Added option to print to command prompt again. * Added log Auto-Clear. * Added scan for NetChan Encryption Key Pointer. * Added more error handling when loading gui config.
27 lines
1.1 KiB
C
27 lines
1.1 KiB
C
#pragma once
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Initialization
|
|
void SetupDXSwapChain();
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Internals
|
|
void PrintDXAddress();
|
|
void InstallDXHooks();
|
|
void RemoveDXHooks();
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Handlers
|
|
extern LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
|
extern HRESULT __stdcall Present(IDXGISwapChain* pSwapChain, UINT nSyncInterval, UINT nFlags);
|
|
extern HRESULT __stdcall GetResizeBuffers(IDXGISwapChain* pSwapChain, UINT nBufferCount, UINT nWidth, UINT nHeight, DXGI_FORMAT dxFormat, UINT nSwapChainFlags);
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Globals
|
|
extern DWORD g_dThreadId;
|
|
extern bool g_bShowConsole;
|
|
extern bool g_bShowBrowser;
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Utils
|
|
bool LoadTextureFromByteArray(unsigned char* image_data, const int& image_width, const int& image_height, ID3D11ShaderResourceView** out_srv); |