View Single Post
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-08-2014 , 05:31   Re: [ANY] SteamWorks
Reply With Quote #27

If anyone's feeling brave, here's a WIP. I lied, there are a few natives, and forwards.

Steam_IsVACEnabled();
Steam_GetPublicIP(addr[4]);
Steam_GetPublicIPCell();
Steam_IsLoaded();
Steam_SetGameDescription(const String:sDesc[]);
Steam_IsConnected();
Steam_SetRule(const String:sKey[], const String:sValue[]);
Steam_ClearRules();
Steam_ForceHeartbeat();

And Forwards
Steam_SteamServersConnected
Steam_SteamServersConnectFailure(EResult);
Steam_SteamServersDisconnected(EResult);

If you have anything legacy from SteamTools and use it, let me know. If there's anything on ISteamClient, ISteamGameServer, ISteamUtils, ISteamNetworking, ISteamGameServerStats or ISteamHTTP again let me know. Things that require callbacks (like most stat functions / http) will come later. I'd say they wont, but at this point; might as well jump in and splash around. Natives are a bit strange in this, everything not explicit is a bool and will return false on failure.

Current Source is available: https://github.com/KyleSanderson/SteamWorks
Compiled From: https://github.com/KyleSanderson/Ste...90b0d2d7b2af85

Pull requests are definitely welcome; try to match the style

If you encounter a crash or something equally bizarre. It's a debug build; so if you attach a debugger and type `bt full` without back-ticks we can probably figure it out.
Attached Files
File Type: xz SteamWorks.ext.so.xz (45.7 KB, 596 views)

Last edited by KyleS; 01-08-2014 at 05:49.
KyleS is offline