Skip to content

Commit d87bc60

Browse files
committed
Update Steamworks.NET to 3cfb06a163b592849dbf354552a32823ffae07f8
1 parent ec61e04 commit d87bc60

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Assets/Plugins/Steamworks.NET/autogen/NativeMethods.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,10 +1654,10 @@ internal static class NativeMethods {
16541654

16551655
[DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetAvailableBeaconLocations", CallingConvention = CallingConvention.Cdecl)]
16561656
[return: MarshalAs(UnmanagedType.I1)]
1657-
public static extern bool ISteamParties_GetAvailableBeaconLocations(IntPtr instancePtr, out SteamPartyBeaconLocation_t pLocationList, uint uMaxNumLocations);
1657+
public static extern bool ISteamParties_GetAvailableBeaconLocations(IntPtr instancePtr, [In, Out] SteamPartyBeaconLocation_t[] pLocationList, uint uMaxNumLocations);
16581658

16591659
[DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_CreateBeacon", CallingConvention = CallingConvention.Cdecl)]
1660-
public static extern ulong ISteamParties_CreateBeacon(IntPtr instancePtr, uint unOpenSlots, out SteamPartyBeaconLocation_t pBeaconLocation, InteropHelp.UTF8StringHandle pchConnectString, InteropHelp.UTF8StringHandle pchMetadata);
1660+
public static extern ulong ISteamParties_CreateBeacon(IntPtr instancePtr, uint unOpenSlots, ref SteamPartyBeaconLocation_t pBeaconLocation, InteropHelp.UTF8StringHandle pchConnectString, InteropHelp.UTF8StringHandle pchMetadata);
16611661

16621662
[DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_OnReservationCompleted", CallingConvention = CallingConvention.Cdecl)]
16631663
public static extern void ISteamParties_OnReservationCompleted(IntPtr instancePtr, PartyBeaconID_t ulBeacon, CSteamID steamIDUser);

Assets/Plugins/Steamworks.NET/autogen/isteammatchmaking.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,9 +819,9 @@ public static bool GetNumAvailableBeaconLocations(out uint puNumLocations) {
819819
return NativeMethods.ISteamParties_GetNumAvailableBeaconLocations(CSteamAPIContext.GetSteamParties(), out puNumLocations);
820820
}
821821

822-
public static bool GetAvailableBeaconLocations(out SteamPartyBeaconLocation_t pLocationList, uint uMaxNumLocations) {
822+
public static bool GetAvailableBeaconLocations(SteamPartyBeaconLocation_t[] pLocationList, uint uMaxNumLocations) {
823823
InteropHelp.TestIfAvailableClient();
824-
return NativeMethods.ISteamParties_GetAvailableBeaconLocations(CSteamAPIContext.GetSteamParties(), out pLocationList, uMaxNumLocations);
824+
return NativeMethods.ISteamParties_GetAvailableBeaconLocations(CSteamAPIContext.GetSteamParties(), pLocationList, uMaxNumLocations);
825825
}
826826

827827
/// <summary>
@@ -830,11 +830,11 @@ public static bool GetAvailableBeaconLocations(out SteamPartyBeaconLocation_t pL
830830
/// <para> When people begin responding to your beacon, Steam will send you</para>
831831
/// <para> PartyReservationCallback_t callbacks to let you know who is on the way.</para>
832832
/// </summary>
833-
public static SteamAPICall_t CreateBeacon(uint unOpenSlots, out SteamPartyBeaconLocation_t pBeaconLocation, string pchConnectString, string pchMetadata) {
833+
public static SteamAPICall_t CreateBeacon(uint unOpenSlots, ref SteamPartyBeaconLocation_t pBeaconLocation, string pchConnectString, string pchMetadata) {
834834
InteropHelp.TestIfAvailableClient();
835835
using (var pchConnectString2 = new InteropHelp.UTF8StringHandle(pchConnectString))
836836
using (var pchMetadata2 = new InteropHelp.UTF8StringHandle(pchMetadata)) {
837-
return (SteamAPICall_t)NativeMethods.ISteamParties_CreateBeacon(CSteamAPIContext.GetSteamParties(), unOpenSlots, out pBeaconLocation, pchConnectString2, pchMetadata2);
837+
return (SteamAPICall_t)NativeMethods.ISteamParties_CreateBeacon(CSteamAPIContext.GetSteamParties(), unOpenSlots, ref pBeaconLocation, pchConnectString2, pchMetadata2);
838838
}
839839
}
840840

0 commit comments

Comments
 (0)