mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
A few improvements to the overlay merge request.
NO_OVERLAY define becomes EMU_OVERLAY which enables the overlay instead of disabling it. disable_overlay.txt moved to steam_settings.
This commit is contained in:
parent
ffdaf72597
commit
db2a803cf7
42 changed files with 857 additions and 1107 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <algorithm>
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
#ifdef STEAM_WIN32
|
||||
|
||||
#include "../detours/detours.h"
|
||||
|
|
@ -85,4 +85,4 @@ void Base_Hook::UnhookAll()
|
|||
|
||||
#endif
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef __INCLUDED_BASE_HOOK_H__
|
||||
#define __INCLUDED_BASE_HOOK_H__
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
|
|
@ -45,6 +45,6 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
||||
#endif//__INCLUDED_BASE_HOOK_H__
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#include "../dll/dll.h"
|
||||
#include "Hook_Manager.h"
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
Hook_Manager::Hook_Manager()
|
||||
{}
|
||||
|
|
@ -33,4 +33,4 @@ void Hook_Manager::RemoveHook(Base_Hook* hook)
|
|||
}
|
||||
}
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "Base_Hook.h"
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <set>
|
||||
|
||||
|
|
@ -24,6 +24,6 @@ public:
|
|||
void RemoveHook(Base_Hook* hook);
|
||||
};
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
||||
#endif//__INCLUDED_HOOK_BASE_H__
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
#include "Base_Hook.h"
|
||||
#include <thread>
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
#ifdef __WINDOWS__
|
||||
|
||||
struct IDXGISwapChain;
|
||||
|
|
@ -101,5 +101,5 @@ public:
|
|||
};
|
||||
|
||||
#endif//__WINDOWS__
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
#endif//__INCLUDED_RENDERER_DETECTOR_H__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include "../dll/dll.h"
|
||||
|
||||
#ifdef __LINUX__
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <imgui.h>
|
||||
#include <impls/imgui_impl_opengl3.h>
|
||||
|
|
@ -171,5 +171,5 @@ void OpenGLX_Hook::loadFunctions(decltype(glXSwapBuffers)* pfnglXSwapBuffers)
|
|||
_glXSwapBuffers = pfnglXSwapBuffers;
|
||||
}
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
#endif//__LINUX__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include "../Base_Hook.h"
|
||||
|
||||
#ifdef __LINUX__
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
#include <GL/glew.h>
|
||||
#include <GL/glx.h>
|
||||
|
||||
|
|
@ -44,6 +44,6 @@ public:
|
|||
void loadFunctions(decltype(glXSwapBuffers)* pfnglXSwapBuffers);
|
||||
};
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
#endif//__LINUX__
|
||||
#endif//__INCLUDED_OPENGLX_HOOK_H__
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include "../dll/dll.h"
|
||||
|
||||
#ifdef __LINUX__
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <imgui.h>
|
||||
#include <impls/linux/imgui_impl_x11.h>
|
||||
|
|
@ -201,5 +201,5 @@ const char* X11_Hook::get_lib_name() const
|
|||
return DLL_NAME;
|
||||
}
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
#endif//#__LINUX__
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include "../Base_Hook.h"
|
||||
|
||||
#ifdef __LINUX__
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <X11/X.h> // XEvent types
|
||||
#include <X11/Xlib.h> // XEvent structure
|
||||
|
|
@ -58,6 +58,6 @@ public:
|
|||
virtual const char* get_lib_name() const;
|
||||
};
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
#endif//__LINUX__
|
||||
#endif//__INCLUDED_X11_HOOK_H__
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "steam_overlay.h"
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <thread>
|
||||
#include <string>
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ struct Notification
|
|||
std::pair<const Friend, friend_window_state>* frd;
|
||||
};
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
class Steam_Overlay
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include "../Renderer_Detector.h"
|
||||
#include "../../dll/dll.h"
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <imgui.h>
|
||||
#include <impls/windows/imgui_impl_dx10.h>
|
||||
|
|
@ -169,4 +169,4 @@ void DX10_Hook::loadFunctions(IDXGISwapChain *pSwapChain)
|
|||
#undef LOAD_FUNC
|
||||
}
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
#define __INCLUDED_DX10_HOOK_H__
|
||||
|
||||
#include "../Base_Hook.h"
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <d3d10.h>
|
||||
#include "DirectX_VTables.h"
|
||||
|
|
@ -46,6 +46,6 @@ public:
|
|||
void loadFunctions(IDXGISwapChain *pSwapChain);
|
||||
};
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
||||
#endif//__INCLUDED_DX10_HOOK_H__
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include "../Renderer_Detector.h"
|
||||
#include "../../dll/dll.h"
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <imgui.h>
|
||||
#include <impls/windows/imgui_impl_dx11.h>
|
||||
|
|
@ -183,4 +183,4 @@ void DX11_Hook::loadFunctions(IDXGISwapChain *pSwapChain)
|
|||
#undef LOAD_FUNC
|
||||
}
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
#define __INCLUDED_DX11_HOOK_H__
|
||||
|
||||
#include "../Base_Hook.h"
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <d3d11.h>
|
||||
#include "DirectX_VTables.h"
|
||||
|
|
@ -46,6 +46,6 @@ public:
|
|||
void loadFunctions(IDXGISwapChain *pSwapChain);
|
||||
};
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
||||
#endif//__INCLUDED_DX11_HOOK_H__
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include "../Renderer_Detector.h"
|
||||
#include "../../dll/dll.h"
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <imgui.h>
|
||||
#include <impls/windows/imgui_impl_dx12.h>
|
||||
|
|
@ -316,4 +316,4 @@ void DX12_Hook::loadFunctions(ID3D12CommandQueue* pCommandQueue, IDXGISwapChain
|
|||
#undef LOAD_FUNC
|
||||
}
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
#define __INCLUDED_DX12_HOOK_H__
|
||||
|
||||
#include "../Base_Hook.h"
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <d3d12.h>
|
||||
#include <dxgi1_4.h>
|
||||
|
|
@ -56,5 +56,5 @@ public:
|
|||
void loadFunctions(ID3D12CommandQueue* pCommandQueue, IDXGISwapChain* pSwapChain);
|
||||
};
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
#endif//__INCLUDED_DX12_HOOK_H__
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include "../Renderer_Detector.h"
|
||||
#include "../../dll/dll.h"
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <imgui.h>
|
||||
#include <impls/windows/imgui_impl_dx9.h>
|
||||
|
|
@ -169,4 +169,4 @@ void DX9_Hook::loadFunctions(IDirect3DDevice9* pDevice, bool ex)
|
|||
#undef LOAD_FUNC
|
||||
}
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
#define __INCLUDED_DX9_HOOK_H__
|
||||
|
||||
#include "../Base_Hook.h"
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <d3d9.h>
|
||||
#include "DirectX_VTables.h"
|
||||
|
|
@ -47,6 +47,6 @@ public:
|
|||
void loadFunctions(IDirect3DDevice9 *pDevice, bool ex);
|
||||
};
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
||||
#endif//__INCLUDED_DX9_HOOK_H__
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include "../Renderer_Detector.h"
|
||||
#include "../../dll/dll.h"
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <imgui.h>
|
||||
#include <impls/imgui_impl_opengl3.h>
|
||||
|
|
@ -144,4 +144,4 @@ void OpenGL_Hook::loadFunctions(wglSwapBuffers_t pfnwglSwapBuffers)
|
|||
wglSwapBuffers = pfnwglSwapBuffers;
|
||||
}
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
#define __INCLUDED_OPENGL_HOOK_H__
|
||||
|
||||
#include "../Base_Hook.h"
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
class OpenGL_Hook : public Base_Hook
|
||||
{
|
||||
|
|
@ -38,5 +38,5 @@ public:
|
|||
void loadFunctions(wglSwapBuffers_t pfnwglSwapBuffers);
|
||||
};
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
#endif//__INCLUDED_OPENGL_HOOK_H__
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#include "../Renderer_Detector.h"
|
||||
#include "../../dll/dll.h"
|
||||
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
#include <imgui.h>
|
||||
#include <impls/windows/imgui_impl_win32.h>
|
||||
|
|
@ -206,4 +206,4 @@ const char* Windows_Hook::get_lib_name() const
|
|||
return DLL_NAME;
|
||||
}
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
#include "../Base_Hook.h"
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
#ifndef NO_OVERLAY
|
||||
#ifdef EMU_OVERLAY
|
||||
|
||||
class Windows_Hook : public Base_Hook
|
||||
{
|
||||
|
|
@ -45,6 +45,6 @@ public:
|
|||
virtual const char* get_lib_name() const;
|
||||
};
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
#endif//EMU_OVERLAY
|
||||
#endif//__WINDOWS__
|
||||
#endif//__INCLUDED_WINDOWS_HOOK_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue