From 7b432b24a19167ef043c59c3792f806c1cbe2044 Mon Sep 17 00:00:00 2001 From: thfr Date: Sun, 18 Dec 2022 18:39:05 +0000 Subject: [PATCH] add patch-* files missed in last commit --- .../steamworks-nosteam/patches/patch-Makefile | 22 +++++++++ .../patches/patch-hlsteam_native_common_cpp | 46 +++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 games/steamworks-nosteam/patches/patch-Makefile create mode 100644 games/steamworks-nosteam/patches/patch-hlsteam_native_common_cpp diff --git a/games/steamworks-nosteam/patches/patch-Makefile b/games/steamworks-nosteam/patches/patch-Makefile new file mode 100644 index 00000000000..91c79f198a2 --- /dev/null +++ b/games/steamworks-nosteam/patches/patch-Makefile @@ -0,0 +1,22 @@ +remove build of Steamworks.NET.dll + +Index: Makefile +--- Makefile.orig ++++ Makefile +@@ -1,6 +1,6 @@ + PREFIX ?= /usr/local + +-all: Steamworks.NET/bin/Steamworks.NET.dll native wrapper cestub hlsteam ++all: native wrapper cestub hlsteam + + Steamworks.NET/bin/Steamworks.NET.dll: Steamworks.NET/*.cs \ + Steamworks.NET/*.csproj \ +@@ -29,8 +29,6 @@ Steamworks.NET/bin/Steamworks.NET.dll: Steamworks.NET/ + + install: all + install -d $(PREFIX)/lib/steamworks-nosteam/ +- install Steamworks.NET/bin/Steamworks.NET.dll \ +- $(PREFIX)/lib/steamworks-nosteam/ + install native/libSteamworksNative.so.* \ + $(PREFIX)/lib/steamworks-nosteam/ + install wrapper/libsteamwrapper.so.* \ diff --git a/games/steamworks-nosteam/patches/patch-hlsteam_native_common_cpp b/games/steamworks-nosteam/patches/patch-hlsteam_native_common_cpp new file mode 100644 index 00000000000..6c37d0f84d6 --- /dev/null +++ b/games/steamworks-nosteam/patches/patch-hlsteam_native_common_cpp @@ -0,0 +1,46 @@ +add stubs to steam.hdll + +Index: hlsteam/native/common.cpp +--- hlsteam/native/common.cpp.orig ++++ hlsteam/native/common.cpp +@@ -141,6 +141,31 @@ HL_PRIM bool HL_NAME(is_steam_running)(){ + return false; + } + ++HL_PRIM bool HL_NAME(delete_item)(){ ++ printf("%s\n", __func__); ++ return false; ++} ++ ++HL_PRIM bool HL_NAME(get_app_dependencies)(){ ++ printf("%s\n", __func__); ++ return false; ++} ++ ++HL_PRIM bool HL_NAME(is_subscribed_from_family_sharing)(){ ++ printf("%s\n", __func__); ++ return false; ++} ++ ++HL_PRIM bool HL_NAME(remove_app_dependency)(){ ++ printf("%s\n", __func__); ++ return false; ++} ++ ++HL_PRIM void HL_NAME(add_app_dependency)(){ ++ printf("%s\n", __func__); ++ return; ++} ++ + HL_PRIM vbyte *HL_NAME(get_current_game_language)(){ + printf("%s\n", __func__); + if (!CheckInit()) return NULL; +@@ -191,3 +216,8 @@ DEFINE_PRIM(_BYTES, get_current_game_language, _NO_ARG + DEFINE_PRIM(_BYTES, get_auth_ticket, _REF(_I32) _REF(_I32)); + DEFINE_PRIM(_VOID, cancel_call_result, _CRESULT); + DEFINE_PRIM(_BYTES, get_current_beta_name, _NO_ARG); ++DEFINE_PRIM(_BOOL, delete_item, _NO_ARG); ++DEFINE_PRIM(_BOOL, get_app_dependencies, _NO_ARG); ++DEFINE_PRIM(_BOOL, is_subscribed_from_family_sharing, _NO_ARG); ++DEFINE_PRIM(_BOOL, remove_app_dependency, _NO_ARG); ++DEFINE_PRIM(_VOID, add_app_dependency, _NO_ARG);