This commit is contained in:
niko(depressedTWM) 2026-07-14 12:50:39 -04:00
parent e14614a7a9
commit 2425301611
2 changed files with 6 additions and 11 deletions

View File

@ -259,8 +259,7 @@ static AppId_t GAppID = 0;
static uint64 GUserID = 0; static uint64 GUserID = 0;
static SteamBridge *GSteamBridge = NULL; static SteamBridge *GSteamBridge = NULL;
class SteamBridge class SteamBridge{
{
public: public:
SteamBridge(PipeType _fd); SteamBridge(PipeType _fd);
STEAM_CALLBACK(SteamBridge, OnUserStatsReceived, UserStatsReceived_t, m_CallbackUserStatsReceived); STEAM_CALLBACK(SteamBridge, OnUserStatsReceived, UserStatsReceived_t, m_CallbackUserStatsReceived);
@ -270,8 +269,7 @@ private:
PipeType fd; PipeType fd;
}; };
typedef enum ShimCmd typedef enum ShimCmd{
{
SHIMCMD_BYE, SHIMCMD_BYE,
SHIMCMD_PUMP, SHIMCMD_PUMP,
SHIMCMD_REQUESTSTATS, SHIMCMD_REQUESTSTATS,
@ -287,8 +285,7 @@ typedef enum ShimCmd
SHIMCMD_GETCURRENTGAMELANGUAGE, SHIMCMD_GETCURRENTGAMELANGUAGE,
} ShimCmd; } ShimCmd;
typedef enum ShimEvent typedef enum ShimEvent{
{
SHIMEVENT_BYE, SHIMEVENT_BYE,
SHIMEVENT_STATSRECEIVED, SHIMEVENT_STATSRECEIVED,
SHIMEVENT_STATSSTORED, SHIMEVENT_STATSSTORED,
@ -454,8 +451,7 @@ static bool processCommand(const uint8 *buf, unsigned int buflen, PipeType fd){
else printf("Parent got unknown shimcmd %d.\n", (int) cmd); else printf("Parent got unknown shimcmd %d.\n", (int) cmd);
#endif #endif
switch (cmd) switch (cmd){
{
case SHIMCMD_PUMP: case SHIMCMD_PUMP:
SteamAPI_RunCallbacks(); SteamAPI_RunCallbacks();
break; break;
@ -598,11 +594,11 @@ static void processCommands(PipeType pipeParentRead, PipeType pipeParentWrite){
static bool setEnvironmentVars(PipeType pipeChildRead, PipeType pipeChildWrite){ static bool setEnvironmentVars(PipeType pipeChildRead, PipeType pipeChildWrite){
char buf[64]; char buf[64];
SDL_snprintf(buf, sizeof (buf), LLUFMT, (unsigned long long) pipeChildRead); SDL_snprintf(buf, sizeof(buf), LLUFMT, (unsigned long long) pipeChildRead);
if (!setEnvVar("STEAMSHIM_READHANDLE", buf)) if (!setEnvVar("STEAMSHIM_READHANDLE", buf))
return false; return false;
SDL_snprintf(buf, sizeof (buf), LLUFMT, (unsigned long long) pipeChildWrite); SDL_snprintf(buf, sizeof(buf), LLUFMT, (unsigned long long) pipeChildWrite);
if (!setEnvVar("STEAMSHIM_WRITEHANDLE", buf)) if (!setEnvVar("STEAMSHIM_WRITEHANDLE", buf))
return false; return false;

1
third_party/mruby vendored

@ -1 +0,0 @@
Subproject commit 31ea49319abaaf656e038f33053948e29e7e75f9