Skip to content

Commit

Permalink
1.59
Browse files Browse the repository at this point in the history
  • Loading branch information
julianxhokaxhiu committed Mar 18, 2024
1 parent f42b975 commit 29e12bd
Show file tree
Hide file tree
Showing 46 changed files with 212 additions and 426 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: SteamworksSDK

run-name: 1.58.${{ github.run_number }}
run-name: 1.59.${{ github.run_number }}

on:
workflow_dispatch:
Expand All @@ -19,7 +19,7 @@ env:
_RELEASE_NAME: SteamworksSDK
_RELEASE_VERSION: v0
_BUILD_BRANCH: "${{ github.ref }}"
_BUILD_VERSION: "1.58.${{ github.run_number }}"
_BUILD_VERSION: "1.59.${{ github.run_number }}"
# GIT: Fix reporting from stderr to stdout
GIT_REDIRECT_STDERR: 2>&1

Expand All @@ -31,13 +31,13 @@ jobs:
max-parallel: 1
steps:
- name: Checkout
uses: actions/checkout@v4.1.0
uses: actions/checkout@v4
- name: Build and Package
run: ".github/workflows/build.ps1"
shell: powershell
- name: Publish PR artifacts
if: env._IS_GITHUB_RELEASE == 'false' && success()
uses: actions/upload-artifact@v4.0.0
uses: actions/upload-artifact@v4
with:
name: "${{ env._RELEASE_NAME }}-${{ env._RELEASE_VERSION }}"
path: ".dist/*.zip"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Overall Downloads](https://img.shields.io/github/downloads/julianxhokaxhiu/SteamworksSDKCI/total?label=Overall%20Downloads) ![GitHub Actions Workflow Status](https://github.com/julianxhokaxhiu/SteamworksSDKCI/actions/workflows/main.yml/badge.svg?branch=master)
![Overall Downloads](https://img.shields.io/github/downloads/julianxhokaxhiu/SteamworksSDKCI/total?label=Overall%20Downloads) ![GitHub Actions Workflow Status](https://github.com/julianxhokaxhiu/SteamworksSDKCI/actions/workflows/main-1.59.yml/badge.svg?branch=master)

# SteamworksSDKCI
CI builds of Steamworks SDK for CMake build systems
Expand Down
12 changes: 12 additions & 0 deletions steamworks_sdk/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ Copyright
Welcome to the Steamworks SDK. For documentation please see our partner
website at: http://partner.steamgames.com

----------------------------------------------------------------
v1.59 9th February 2024
----------------------------------------------------------------
General
* Added new initialization method, SteamAPI_InitFlat

ISteamUtils
* Added DismissGamepadTextInput

ISteamAppList
* This interface has been removed from the SDK

----------------------------------------------------------------
v1.58a 26th October 2023
----------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions steamworks_sdk/SteamworksExample/gameengineosx.mm
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
return s_pGameEngine;
}

inline uint64_t GetTickCount()
uint64_t GetTickCount()
{
timeval time;
gettimeofday(&time, NULL);
return (time.tv_sec * 1000ULL) + (time.tv_usec / 1000ULL);
timeval time;
gettimeofday(&time, NULL);
return (time.tv_sec * 1000ULL) + (time.tv_usec / 1000ULL);
}

void OutputDebugString( const char *pchMsg )
Expand Down
4 changes: 4 additions & 0 deletions steamworks_sdk/SteamworksExample/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ extern void OutputDebugString( const char *pchMsg );
extern int Alert( const char *lpCaption, const char *lpText );
extern const char *GetUserSaveDataPath();

#ifdef OSX
extern uint64_t GetTickCount();
#endif // OSX

#define V_ARRAYSIZE(a) sizeof(a)/sizeof(a[0])

#endif // POSIX
Expand Down
4 changes: 4 additions & 0 deletions steamworks_sdk/glmgr/cglmprogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
#include "cglmprogram.h"
#include "dxabstract.h"

#ifdef __clang__
#pragma clang diagnostic ignored "-Wunused-variable"
#endif

#ifdef OSX
// Debugger - 10.8
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
Expand Down
3 changes: 1 addition & 2 deletions steamworks_sdk/glmgr/cglmquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,7 @@ void CGLMQuery::Complete( uint *result )

uint resultval = 0;
GLint available = 0;
bool bogus_available = false;


// blocking call if not done
Assert(m_started);
Assert(m_stopped);
Expand Down
4 changes: 4 additions & 0 deletions steamworks_sdk/glmgr/cglmtex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
#include "cglmtex.h"
#include "dxabstract.h"

#ifdef __clang__
#pragma clang diagnostic ignored "-Wunused-variable"
#endif

#ifdef OSX
// Debugger - 10.8
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
Expand Down
3 changes: 2 additions & 1 deletion steamworks_sdk/glmgr/dx9asmtogl2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ void Error( const char *fmt, ... )
static const char *g_szVecZeros[] = { NULL, "0.0", "vec2( 0.0, 0.0 )", "vec3( 0.0, 0.0, 0.0 )", "vec4( 0.0, 0.0, 0.0, 0.0 )" };
static const char *g_szVecOnes[] = { NULL, "1.0", "vec2( 1.0, 1.0 )", "vec3( 1.0, 1.0, 1.0 )", "vec4( 1.0, 1.0, 1.0, 1.0 )" };
static const char *g_szDefaultSwizzle = "xyzw";
static const char *g_szDefaultSwizzleStrings[] = { "x", "y", "z", "w" };
static const char *g_szSamplerStrings[] = { "2D", "CUBE", "3D" };

static const char *g_pAtomicTempVarName = "atomic_temp_var";
Expand Down Expand Up @@ -77,6 +76,8 @@ void PrintToBuf( CUtlBuffer &buf, const char *pFormat, ... )

void PrintToBuf( char *pOut, int nOutSize, const char *pFormat, ... )
{
(void)nOutSize;

int nStrlen = V_strlen( pOut );
pOut += nStrlen;
nOutSize -= nStrlen;
Expand Down
7 changes: 6 additions & 1 deletion steamworks_sdk/glmgr/dxabstract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

#endif

#ifdef __clang__
#pragma clang diagnostic ignored "-Wunused-variable"
#endif

#ifdef USE_ACTUAL_DX

#pragma comment( lib, "../../dx9sdk/lib/d3d9.lib" )
Expand Down Expand Up @@ -5545,7 +5549,8 @@ void IDirect3DDevice9::SetGammaRamp(UINT iSwapChain,DWORD Flags,CONST D3DGAMMARA
// just slam it directly for the time being
// this code is OS X specific

CGDisplayErr cgErr;
CGDisplayErr cgErr;
(void)cgErr;

CGGammaValue redt[256];
CGGammaValue grnt[256];
Expand Down
18 changes: 18 additions & 0 deletions steamworks_sdk/glmgr/glmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ extern CGameEngineGL *g_engine; // so glmgr (which is C++) can call up to the g

#ifdef __clang__
#pragma clang diagnostic warning "-Wint-to-pointer-cast"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif

#ifdef OSX
Expand Down Expand Up @@ -1272,6 +1273,8 @@ void GLMContext::ResolveTex( CGLMTex *tex, bool forceDirty )

// for resolve, only handle a modest subset of the possible formats
EGLMFBOAttachment attachIndex = (EGLMFBOAttachment)0;
(void)attachIndex;

GLenum attachIndexGL = 0;
GLuint blitMask = 0;
switch( tex->m_layout->m_format->m_glDataFormat )
Expand Down Expand Up @@ -2823,6 +2826,9 @@ void GLMContext::BindBufferToCtx( EGLMBufferType type, CGLMBuffer *buff, bool fo

bool wasBound = false;
bool isBound = false;

(void)wasBound;
(void)isBound;

if (m_lastKnownBufferBinds[type])
{
Expand Down Expand Up @@ -3231,6 +3237,12 @@ void GLMContext::FlushDrawStates( bool shadersOn ) // shadersOn = true for draw
#if GLMDEBUG
static uint paramsPushed=0,paramsSkipped=0,callsPushed=0; // things that happened on pushed param trips
static uint callsSkipped=0,paramsSkippedByCallSkip=0; // on unpushed param trips (zero dirty)

(void)paramsPushed;
(void)paramsSkipped;
(void)callsPushed;
(void)callsSkipped;
(void)paramsSkippedByCallSkip;
#endif

int slotCountToPush = 0;
Expand Down Expand Up @@ -3448,6 +3460,12 @@ void GLMContext::FlushDrawStates( bool shadersOn ) // shadersOn = true for draw
#if GLMDEBUG
static uint paramsPushed=0,paramsSkipped=0,callsPushed=0; // things that happened on pushed param trips
static uint callsSkipped=0,paramsSkippedByCallSkip=0; // on unpushed param trips (zero dirty)

(void)paramsPushed;
(void)paramsSkipped;
(void)callsPushed;
(void)callsSkipped;
(void)paramsSkippedByCallSkip;
#endif

int slotCountToPush = 0;
Expand Down
1 change: 0 additions & 1 deletion steamworks_sdk/glmgr/glmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@ template<typename T, int COUNT> class GLStateArray

bool Check( void )
{
T temp;
bool result = false;

for( int i=0; i<COUNT; i++)
Expand Down
14 changes: 7 additions & 7 deletions steamworks_sdk/glmgr/glmgrbasics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2652,7 +2652,6 @@ int s_glmStrCursor = 0;
const char * GLMDecode( GLMThing_t thingtype, unsigned long value )
{
GLMValueEntry_t *table = NULL;
char isflags = 0;

switch( thingtype )
{
Expand Down Expand Up @@ -3203,8 +3202,7 @@ void GLMPrintText( const char *str, EGLMDebugFlavor flavor, uint options )
// walk the text and treat each newline as an indentation opportunity..
const char *mark = buf;
const char *end = mark + strlen(buf);
const char *next = NULL;


while(mark < end)
{
// starting at mark, see if there is a newline between there and end
Expand Down Expand Up @@ -3404,6 +3402,8 @@ bool CGLMFileMirror::PollForChanges( void )
// snapshot old stat
bool old_exists = m_exists;
struct stat old_stat = m_stat;

(void)old_exists;

UpdateStatInfo();

Expand Down Expand Up @@ -3676,11 +3676,11 @@ void CGLMEditableTextItem::GenHashOfOrigText( void )

void CGLMEditableTextItem::GenBaseNameAndFullPath( char *prefix, char *suffix )
{
// base name is hash digest in hex, plus the suffix.
char temp[5000];

// bring this code back if you need the live shader edit/debug mode.
#if 0
#if 0
// base name is hash digest in hex, plus the suffix.
char temp[5000];

V_binarytohex( m_origDigest, sizeof(m_origDigest), temp, sizeof( temp ) );
if (suffix)
{
Expand Down
11 changes: 7 additions & 4 deletions steamworks_sdk/glmgr/glmgrcocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,6 @@ bool operator ()(GLMRendererInfo *A, GLMRendererInfo *B)
// gather more info from IOKit
// cribbed from http://developer.apple.com/mac/library/samplecode/VideoHardwareInfo/listing3.html

CFTypeRef typeCode;
CFDataRef vendorID, deviceID, model;
io_registry_entry_t dspPort;

Expand All @@ -1022,7 +1021,7 @@ bool operator ()(GLMRendererInfo *A, GLMRendererInfo *B)
if(vendorID)
{
fields.m_pciVendorID = *((UInt32*)CFDataGetBytePtr(vendorID));
CFRelease( vendorID );
CFRelease( vendorID );
vendorID = NULL;
}
else
Expand All @@ -1033,7 +1032,7 @@ bool operator ()(GLMRendererInfo *A, GLMRendererInfo *B)
if(deviceID)
{
fields.m_pciDeviceID = *((UInt32*)CFDataGetBytePtr(deviceID));
CFRelease( deviceID );
CFRelease( deviceID );
deviceID = NULL;
}
else
Expand All @@ -1044,9 +1043,11 @@ bool operator ()(GLMRendererInfo *A, GLMRendererInfo *B)
if(model)
{
int length = CFDataGetLength(model);
(void)length;

char *data = (char*)CFDataGetBytePtr(model);
strncpy( fields.m_pciModelString, data, sizeof(fields.m_pciModelString) );
CFRelease( model );
CFRelease( model );
model = NULL;
}
else
Expand Down Expand Up @@ -1503,6 +1504,8 @@ bool operator ()(GLMRendererInfo *A, GLMRendererInfo *B)

// now match
int foundIndex = -1;
(void)foundIndex;

int i=0;
for( std::vector< GLMDisplayMode * >::iterator p = (*dispinfo).m_modes->begin(); p != (*dispinfo).m_modes->end(); p++ )
{
Expand Down
1 change: 0 additions & 1 deletion steamworks_sdk/glmgr/mathlite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const Vector vec3_origin(0,0,0);
const QAngle vec3_angle(0,0,0);
const Quaternion quat_identity(0,0,0,1);
const Vector vec3_invalid( FLT_MAX, FLT_MAX, FLT_MAX );
const int nanmask = 255<<23;

#ifndef VECTOR_NO_SLOW_OPERATIONS

Expand Down
68 changes: 0 additions & 68 deletions steamworks_sdk/public/steam/isteamapplist.h

This file was deleted.

Loading

0 comments on commit 29e12bd

Please sign in to comment.