mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-03 09:18:43 -04:00
* Updated SteamWorks to latest remove client binaries Should also give use latest GameNetworkingSockets which include a bunch of fixes * Remove remaining unix ffmpeg libraries * Remove outdated api from bindings * Add some new API to bindings * Launch steam with no authentication, if auth fails Some Steam SDK version seems to have introduced explicit failure when authentication is failing (e.g. steam nor running). If auth fails we now fallback to no auth (e.g. for local developement, CI). * Set registry entry to steamcmd install dir
22 lines
496 B
C#
22 lines
496 B
C#
using NativeEngine;
|
|
using Steamworks.Data;
|
|
|
|
namespace Engine;
|
|
|
|
[TestClass]
|
|
public class SteamServerTest
|
|
{
|
|
[TestMethod]
|
|
public void CreateServerAndShutdown()
|
|
{
|
|
Steam.SteamGameServer_Init( 27015, Defines.STEAMGAMESERVER_QUERY_PORT_SHARED, "1.0.0.0" );
|
|
|
|
var sgs = Steam.SteamGameServer();
|
|
Assert.IsTrue( sgs.IsValid, "SteamGameServer interface is null after init - Steam redistributables may not be present" );
|
|
|
|
sgs.SetMapName( "gm_construct" );
|
|
|
|
Steam.SteamGameServer_Shutdown();
|
|
}
|
|
}
|