X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=steam.h;h=977f77d47844fa9b2294158cc3e178f6334cfb86;hb=a109f126d8adab622e38fbcc2d4281e75255246a;hp=dadcd90309e6ace26db0dc668d5f7c9b29fda0a1;hpb=f965094faed4f1828c7a6a6b3ca856bd5f1e5248;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/steam.h b/steam.h index dadcd90..977f77d 100644 --- a/steam.h +++ b/steam.h @@ -1,12 +1,8 @@ /* - * Copyright (C) 2021-2023 Mt.ZERO Software, Harry Godden - All Rights Reserved + * Copyright (C) 2021-2024 Mt.ZERO Software, Harry Godden - All Rights Reserved * All trademarks are property of their respective owners */ - -#ifndef STEAM_H -#define STEAM_H - -#define VG_GAME +#pragma once #include "vg/vg_steam.h" #include "vg/vg_steam_utils.h" #include "vg/vg_steam_networking.h" @@ -246,7 +242,6 @@ static u32 str_utf8_collapse( const char *str, char *buf, u32 length ){ static int steam_init(void){ const char *username = "offline player"; -#ifdef SR_NETWORKED vg_info( "Initializing steamworks\n" ); if( !SteamAPI_Init() ){ @@ -287,8 +282,6 @@ static int steam_init(void){ vg_console_reg_cmd( "ach", steam_achievement_ccmd, NULL ); -#endif - /* TODO: On username update callback */ str_utf8_collapse( username, steam_username_at_startup, vg_list_size(steam_username_at_startup) ); @@ -310,5 +303,3 @@ static void steam_end(void) SteamAPI_Shutdown(); } } - -#endif /* STEAM_H */