update to find goldberg_emulator's steam header files in the right spot

tested and working with Northgard
This commit is contained in:
thfr 2021-12-23 02:28:30 +00:00
parent 5f492ab61a
commit db0e7ec59a
3 changed files with 16 additions and 22 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2021/11/27 18:35:30 thfr Exp $
# $OpenBSD: Makefile,v 1.2 2021/12/23 02:28:30 thfr Exp $
COMMENT = Steam API wrapper for Hashlink
@ -7,6 +7,7 @@ DISTNAME = hlsteam-${V}
GH_ACCOUNT = HeapsIO
GH_PROJECT = hlsteam
GH_COMMIT = 24265f62c0499a0c4f37d42b33548c24061c2bd7
REVISION = 0
CATEGORIES = games
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
@ -22,6 +23,8 @@ LIB_DEPENDS = games/goldberg_emulator \
lang/hashlink
USE_GMAKE = Yes
NO_TEST = Yes
CFLAGS += -I${LOCALBASE}/include/goldberg_emulator
SUBST_VARS += CFLAGS LDFLAGS
do-gen:

View File

@ -1,10 +1,21 @@
$OpenBSD: patch-native_gameserver_cpp,v 1.1.1.1 2021/11/27 18:35:30 thfr Exp $
$OpenBSD: patch-native_gameserver_cpp,v 1.2 2021/12/23 02:28:30 thfr Exp $
stub EnableHeartbeats; changing function names and anyway not
implemented in goldberg_emulator
GetPublicIP returns a struct; return its IPv4 member as int cast
Index: native/gameserver.cpp
--- native/gameserver.cpp.orig
+++ native/gameserver.cpp
@@ -101,7 +101,7 @@ void HL_NAME(gameserver_logon_anonymous)() {
}
void HL_NAME(gameserver_enable_heartbeats)( bool b ) {
- SteamGameServer()->EnableHeartbeats(b);
+ /* empty; not implemented in goldberg_emulator anyway */
}
void HL_NAME(gameserver_config)( char *modDir, char *product, char *desc ) {
@@ -124,7 +124,7 @@ vuid HL_NAME(gameserver_get_steam_id)() {
}

View File

@ -1,20 +0,0 @@
$OpenBSD: patch-native_steamwrap_h,v 1.1.1.1 2021/11/27 18:35:30 thfr Exp $
correct path to header files
Index: native/steamwrap.h
--- native/steamwrap.h.orig
+++ native/steamwrap.h
@@ -11,9 +11,9 @@
#include <iostream>
#include <map>
-#include <steam/steam_api.h>
-#include <steam/steam_gameserver.h>
-#include <steam/isteamappticket.h>
+#include <goldberg_emulator/sdk_includes/steam_api.h>
+#include <goldberg_emulator/sdk_includes/steam_gameserver.h>
+#include <goldberg_emulator/sdk_includes/isteamappticket.h>
typedef vbyte * vuid;
#define _UID _BYTES