fixed a bunch of includes

This commit is contained in:
otavepto 2023-12-27 09:21:59 +02:00
parent 5f18ac67e0
commit 440d8335e2
42 changed files with 59 additions and 59 deletions

View File

@ -11,7 +11,7 @@
#include <malloc.h> #include <malloc.h>
#define GAMEPAD_EXPORT 1 #define GAMEPAD_EXPORT 1
#include "gamepad.h" #include "controller/gamepad.h"
/* Platform-specific includes */ /* Platform-specific includes */
#if defined(_WIN32) #if defined(_WIN32)

View File

@ -1,4 +1,4 @@
#include "auth.h" #include "dll/auth.h"
static inline int generate_random_int() { static inline int generate_random_int() {
int a; int a;

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "base.h" #include "dll/base.h"
#ifdef __WINDOWS__ #ifdef __WINDOWS__
@ -481,7 +481,7 @@ static void load_dll()
} }
} }
#include "local_storage.h" #include "dll/local_storage.h"
static void load_dlls() static void load_dlls()
{ {
std::string path = Local_Storage::get_game_settings_path(); std::string path = Local_Storage::get_game_settings_path();

View File

@ -16,7 +16,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#define STEAM_API_FUNCTIONS_IMPL #define STEAM_API_FUNCTIONS_IMPL
#include "dll.h" #include "dll/dll.h"
static char old_client[128] = STEAMCLIENT_INTERFACE_VERSION; //"SteamClient017"; static char old_client[128] = STEAMCLIENT_INTERFACE_VERSION; //"SteamClient017";

View File

@ -51,7 +51,7 @@
#include "steam_gameserverstats.h" #include "steam_gameserverstats.h"
#include "steam_masterserver_updater.h" #include "steam_masterserver_updater.h"
#include "overlay_experimental/steam_overlay.h" #include "overlay/steam_overlay.h"
enum Steam_Pipe { enum Steam_Pipe {
NO_USER, NO_USER,

View File

@ -19,7 +19,7 @@
#define __INCLUDED_STEAM_FRIENDS_H__ #define __INCLUDED_STEAM_FRIENDS_H__
#include "base.h" #include "base.h"
#include "overlay_experimental/steam_overlay.h" #include "overlay/steam_overlay.h"
#define SEND_FRIEND_RATE 4.0 #define SEND_FRIEND_RATE 4.0

View File

@ -20,7 +20,7 @@
#include <limits> #include <limits>
#include "base.h" #include "base.h"
#include "overlay_experimental/steam_overlay.h" #include "overlay/steam_overlay.h"
struct Steam_Leaderboard_Score { struct Steam_Leaderboard_Score {
CSteamID steam_id; CSteamID steam_id;

View File

@ -17,7 +17,7 @@
#include "base.h" #include "base.h"
#include "local_storage.h" #include "local_storage.h"
#include "overlay_experimental/steam_overlay.h" #include "overlay/steam_overlay.h"
static std::chrono::time_point<std::chrono::steady_clock> app_initialized_time = std::chrono::steady_clock::now(); static std::chrono::time_point<std::chrono::steady_clock> app_initialized_time = std::chrono::steady_clock::now();

View File

@ -17,8 +17,8 @@
#ifndef STEAMCLIENT_DLL #ifndef STEAMCLIENT_DLL
#define STEAM_API_FUNCTIONS_IMPL #define STEAM_API_FUNCTIONS_IMPL
#include "dll.h" #include "dll/dll.h"
#include "sdk_includes/steam_api_flat.h" #include "steam/steam_api_flat.h"
STEAMAPI_API HSteamPipe SteamAPI_ISteamClient_CreateSteamPipe( ISteamClient* self ) STEAMAPI_API HSteamPipe SteamAPI_ISteamClient_CreateSteamPipe( ISteamClient* self )
{ {

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "local_storage.h" #include "dll/local_storage.h"
#define STB_IMAGE_IMPLEMENTATION #define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_STATIC #define STB_IMAGE_STATIC
@ -24,14 +24,14 @@
#if defined(__WINDOWS__) #if defined(__WINDOWS__)
#define STBI_WINDOWS_UTF8 #define STBI_WINDOWS_UTF8
#endif #endif
#include "../stb/stb_image.h" #include "stb/stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION #define STB_IMAGE_WRITE_IMPLEMENTATION
#define STB_IMAGE_WRITE_STATIC #define STB_IMAGE_WRITE_STATIC
#include "../stb/stb_image_write.h" #include "stb/stb_image_write.h"
#define STB_IMAGE_RESIZE_IMPLEMENTATION #define STB_IMAGE_RESIZE_IMPLEMENTATION
#include "../stb/stb_image_resize.h" #include "stb/stb_image_resize.h"
struct File_Data { struct File_Data {
std::string name; std::string name;

View File

@ -15,8 +15,8 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "network.h" #include "dll/network.h"
#include "dll.h" #include "dll/dll.h"
#define MAX_BROADCASTS 16 #define MAX_BROADCASTS 16
static int number_broadcasts = -1; static int number_broadcasts = -1;

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "settings.h" #include "dll/settings.h"
std::string Settings::sanitize(std::string name) std::string Settings::sanitize(std::string name)

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "settings_parser.h" #include "dll/settings_parser.h"
static void consume_bom(std::ifstream &input) static void consume_bom(std::ifstream &input)
{ {

View File

@ -15,8 +15,8 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "source_query.h" #include "dll/source_query.h"
#include "dll.h" #include "dll/dll.h"
using lock_t = std::lock_guard<std::mutex>; using lock_t = std::lock_guard<std::mutex>;

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "steam_applist.h" #include "dll/steam_applist.h"
uint32 Steam_Applist::GetNumInstalledApps() uint32 Steam_Applist::GetNumInstalledApps()
{ {

View File

@ -15,8 +15,8 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "steam_apps.h" #include "dll/steam_apps.h"
#include "../sha/sha1.hpp" #include "sha/sha1.hpp"
Steam_Apps::Steam_Apps(Settings *settings, class SteamCallResults *callback_results) Steam_Apps::Steam_Apps(Settings *settings, class SteamCallResults *callback_results)
{ {

View File

@ -15,8 +15,8 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "steam_client.h" #include "dll/steam_client.h"
#include "settings_parser.h" #include "dll/settings_parser.h"
static std::mutex kill_background_thread_mutex; static std::mutex kill_background_thread_mutex;
static std::condition_variable kill_background_thread_cv; static std::condition_variable kill_background_thread_cv;

View File

@ -15,8 +15,8 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "steam_gameserver.h" #include "dll/steam_gameserver.h"
#include "source_query.h" #include "dll/source_query.h"
#define SEND_SERVER_RATE 5.0 #define SEND_SERVER_RATE 5.0

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "steam_gameserverstats.h" #include "dll/steam_gameserverstats.h"
Steam_GameServerStats::Steam_GameServerStats(class Settings *settings, class Networking *network, class SteamCallResults *callback_results, class SteamCallBacks *callbacks) Steam_GameServerStats::Steam_GameServerStats(class Settings *settings, class Networking *network, class SteamCallResults *callback_results, class SteamCallBacks *callbacks)
{ {

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "steam_http.h" #include "dll/steam_http.h"
Steam_HTTP::Steam_HTTP(class Settings *settings, class Networking *network, class SteamCallResults *callback_results, class SteamCallBacks *callbacks) Steam_HTTP::Steam_HTTP(class Settings *settings, class Networking *network, class SteamCallResults *callback_results, class SteamCallBacks *callbacks)
{ {

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "steam_matchmaking_servers.h" #include "dll/steam_matchmaking_servers.h"
static void network_callback(void *object, Common_Message *msg) static void network_callback(void *object, Common_Message *msg)

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "steam_music.h" #include "dll/steam_music.h"
Steam_Music::Steam_Music(class SteamCallBacks *callbacks) Steam_Music::Steam_Music(class SteamCallBacks *callbacks)
{ {

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "steam_musicremote.h" #include "dll/steam_musicremote.h"
// Service Definition // Service Definition
bool Steam_MusicRemote::RegisterSteamMusicRemote( const char *pchName ) bool Steam_MusicRemote::RegisterSteamMusicRemote( const char *pchName )

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "steam_parental.h" #include "dll/steam_parental.h"
bool Steam_Parental::BIsParentalLockEnabled() bool Steam_Parental::BIsParentalLockEnabled()
{ {

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "steam_screenshots.h" #include "dll/steam_screenshots.h"
Steam_Screenshots::Steam_Screenshots(class Local_Storage* local_storage, class SteamCallBacks* callbacks) : Steam_Screenshots::Steam_Screenshots(class Local_Storage* local_storage, class SteamCallBacks* callbacks) :
local_storage(local_storage), local_storage(local_storage),

View File

@ -15,7 +15,7 @@
License along with the Goldberg Emulator; if not, see License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "steam_video.h" #include "dll/steam_video.h"
// Get a URL suitable for streaming the given Video app ID's video // Get a URL suitable for streaming the given Video app ID's video
void Steam_Video::GetVideoURL( AppId_t unVideoAppID ) void Steam_Video::GetVideoURL( AppId_t unVideoAppID )

View File

@ -26,8 +26,8 @@
#else #else
#define STEAM_API_FUNCTIONS_IMPL #define STEAM_API_FUNCTIONS_IMPL
#include "base.h" #include "dll/base.h"
#include "dll.h" #include "dll/dll.h"
#define PATH_SEPARATOR_CHAR '/' #define PATH_SEPARATOR_CHAR '/'
#define STEAM_PATH_CACHE_SIZE 4096 #define STEAM_PATH_CACHE_SIZE 4096

View File

@ -1,11 +1,11 @@
#include "Base_Hook.h" #include "overlay/Base_Hook.h"
#include <algorithm> #include <algorithm>
#ifdef EMU_OVERLAY #ifdef EMU_OVERLAY
#ifdef STEAM_WIN32 #ifdef STEAM_WIN32
#include "../detours/detours.h" #include "detours/detours.h"
Base_Hook::Base_Hook(): Base_Hook::Base_Hook():
_library(nullptr) _library(nullptr)

View File

@ -19,7 +19,7 @@
#include <cassert> #include <cassert>
#include "Renderer_Detector.h" #include "overlay/Renderer_Detector.h"
#include "System/Encoding.hpp" #include "System/Encoding.hpp"
#include "System/String.hpp" #include "System/String.hpp"

View File

@ -21,7 +21,7 @@
#include <ingame_overlay/Renderer_Hook.h> #include <ingame_overlay/Renderer_Hook.h>
#include "../internal_includes.h" #include "overlay/internal_includes.h"
#include <GL/glx.h> #include <GL/glx.h>

View File

@ -21,7 +21,7 @@
#include <ingame_overlay/Renderer_Hook.h> #include <ingame_overlay/Renderer_Hook.h>
#include "../internal_includes.h" #include "overlay/internal_includes.h"
#include <X11/X.h> // XEvent types #include <X11/X.h> // XEvent types
#include <X11/Xlib.h> // XEvent structure #include <X11/Xlib.h> // XEvent structure

View File

@ -1,5 +1,5 @@
#include "steam_overlay.h" #include "overlay/steam_overlay.h"
#include "steam_overlay_translations.h" #include "overlay/steam_overlay_translations.h"
#ifdef EMU_OVERLAY #ifdef EMU_OVERLAY
@ -9,10 +9,10 @@
#include <cctype> #include <cctype>
#include <imgui.h> #include <imgui.h>
#include "../dll/dll.h" #include "dll/dll.h"
#include "../dll/settings_parser.h" #include "dll/settings_parser.h"
#include "Renderer_Detector.h" #include "overlay/Renderer_Detector.h"
static constexpr int max_window_id = 10000; static constexpr int max_window_id = 10000;
static constexpr int base_notif_window_id = 0 * max_window_id; static constexpr int base_notif_window_id = 0 * max_window_id;
@ -100,7 +100,7 @@ int find_free_notification_id(std::vector<Notification> const& notifications)
#include "windows/Windows_Hook.h" #include "windows/Windows_Hook.h"
#endif #endif
#include "notification.h" #include "overlay/notification.h"
char *notif_achievement_wav_custom; char *notif_achievement_wav_custom;
char *notif_invite_wav_custom; char *notif_invite_wav_custom;
bool notif_achievement_wav_custom_inuse = false; bool notif_achievement_wav_custom_inuse = false;

View File

@ -19,7 +19,7 @@
#pragma once #pragma once
#include "../internal_includes.h" #include "overlay/internal_includes.h"
#include <d3d10.h> #include <d3d10.h>
#include <dxgi1_2.h> #include <dxgi1_2.h>

View File

@ -19,7 +19,7 @@
#pragma once #pragma once
#include "../internal_includes.h" #include "overlay/internal_includes.h"
#include <d3d11.h> #include <d3d11.h>
#include <dxgi1_2.h> #include <dxgi1_2.h>

View File

@ -19,7 +19,7 @@
#pragma once #pragma once
#include "../internal_includes.h" #include "overlay/internal_includes.h"
#include <d3d12.h> #include <d3d12.h>
#include <dxgi1_4.h> #include <dxgi1_4.h>

View File

@ -19,7 +19,7 @@
#pragma once #pragma once
#include "../internal_includes.h" #include "overlay/internal_includes.h"
#include <d3d9.h> #include <d3d9.h>

View File

@ -19,7 +19,7 @@
#pragma once #pragma once
#include "../internal_includes.h" #include "overlay/internal_includes.h"
class OpenGL_Hook : class OpenGL_Hook :
public ingame_overlay::Renderer_Hook, public ingame_overlay::Renderer_Hook,

View File

@ -19,7 +19,7 @@
#pragma once #pragma once
#include "../internal_includes.h" #include "overlay/internal_includes.h"
#include <vulkan/vulkan.h> #include <vulkan/vulkan.h>

View File

@ -19,7 +19,7 @@
#pragma once #pragma once
#include "../internal_includes.h" #include "overlay/internal_includes.h"
class Windows_Hook : class Windows_Hook :
public Base_Hook public Base_Hook

View File

@ -1,5 +1,5 @@
#include "Vulkan_Hook.h" #include "Vulkan_Hook.h"
#include "../vulkan/vulkan.h" #include "vulkan/vulkan.h"
#define VULKAN_DLL (Vulkan_Hook::DLL_NAME) #define VULKAN_DLL (Vulkan_Hook::DLL_NAME)
void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties( void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties(

View File

@ -1,7 +1,7 @@
#include <stdio.h> #include <stdio.h>
#define NETWORKSOCKETS_DLL #define NETWORKSOCKETS_DLL
#define STEAM_API_EXPORTS #define STEAM_API_EXPORTS
#include "sdk_includes/steam_gameserver.h" #include "steam/steam_gameserver.h"
#if defined(WIN32) || defined(_WIN32) #if defined(WIN32) || defined(_WIN32)
#include <Windows.h> #include <Windows.h>

View File

@ -18,7 +18,7 @@
/* /*
*/ */
#include "sdk_includes/steam_api.h" #include "steam/steam_api.h"
#include "dll/common_includes.h" #include "dll/common_includes.h"
#include <iostream> #include <iostream>