Update
This commit is contained in:
+15
-15
@@ -205,62 +205,62 @@ void BlitzCallback::UnregisterResult() {
|
||||
//-----------------------------------------------------------------------------
|
||||
// C-Callables
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(BlitzCallback*) BS_Callback_New(BP_BlitzFunction3_t pFunctionPointer) {
|
||||
DLL(BlitzCallback*) BS_Callback_New(BP_BlitzFunction3_t pFunctionPointer) {
|
||||
return new BlitzCallback(pFunctionPointer);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Callback_Destroy(BlitzCallback* pCallback) {
|
||||
DLL(void) BS_Callback_Destroy(BlitzCallback* pCallback) {
|
||||
delete pCallback;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_Callback_GetCallbackSizeBytes(BlitzCallback* pCallback) {
|
||||
DLL(int32_t) BS_Callback_GetCallbackSizeBytes(BlitzCallback* pCallback) {
|
||||
return pCallback->GetCallbackSizeBytes();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Callback_SetCallback(BlitzCallback* pCallback, int32_t iCallback) {
|
||||
DLL(void) BS_Callback_SetCallback(BlitzCallback* pCallback, int32_t iCallback) {
|
||||
pCallback->SetCallback(iCallback);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_Callback_GetCallback(BlitzCallback* pCallback) {
|
||||
DLL(int32_t) BS_Callback_GetCallback(BlitzCallback* pCallback) {
|
||||
return pCallback->GetCallback();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Callback_SetFunction(BlitzCallback* pCallback, BP_BlitzFunction3_t pFunction) {
|
||||
DLL(void) BS_Callback_SetFunction(BlitzCallback* pCallback, BP_BlitzFunction3_t pFunction) {
|
||||
pCallback->SetFunction(pFunction);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(BP_BlitzFunction3_t) BS_Callback_GetFunction(BlitzCallback* pCallback) {
|
||||
DLL(BP_BlitzFunction3_t) BS_Callback_GetFunction(BlitzCallback* pCallback) {
|
||||
return pCallback->GetFunction();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_Callback_IsRegistered(BlitzCallback* pCallback) {
|
||||
DLL(int32_t) BS_Callback_IsRegistered(BlitzCallback* pCallback) {
|
||||
return pCallback->IsRegistered();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Callback_SetRegistered(BlitzCallback* pCallback, int32_t bIsRegistered) {
|
||||
DLL(void) BS_Callback_SetRegistered(BlitzCallback* pCallback, int32_t bIsRegistered) {
|
||||
pCallback->SetRegistered(!!bIsRegistered);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_Callback_IsGameServer(BlitzCallback* pCallback) {
|
||||
DLL(int32_t) BS_Callback_IsGameServer(BlitzCallback* pCallback) {
|
||||
return pCallback->IsGameServer();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Callback_SetGameServer(BlitzCallback* pCallback, int32_t bIsGameServer) {
|
||||
DLL(void) BS_Callback_SetGameServer(BlitzCallback* pCallback, int32_t bIsGameServer) {
|
||||
pCallback->SetGameServer(!!bIsGameServer);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Callback_Register(BlitzCallback* pCallback, uint32_t iCallback) {
|
||||
DLL(void) BS_Callback_Register(BlitzCallback* pCallback, uint32_t iCallback) {
|
||||
pCallback->Register(iCallback);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Callback_Unregister(BlitzCallback* pCallback) {
|
||||
DLL(void) BS_Callback_Unregister(BlitzCallback* pCallback) {
|
||||
pCallback->Unregister();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Callback_RegisterResult(BlitzCallback* pCallback, SteamAPICall_t* pSteamAPICall, uint32_t iCallback) {
|
||||
DLL(void) BS_Callback_RegisterResult(BlitzCallback* pCallback, SteamAPICall_t* pSteamAPICall, uint32_t iCallback) {
|
||||
pCallback->RegisterResult(*pSteamAPICall, iCallback);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Callback_UnregisterResult(BlitzCallback* pCallback) {
|
||||
DLL(void) BS_Callback_UnregisterResult(BlitzCallback* pCallback) {
|
||||
pCallback->UnregisterResult();
|
||||
}
|
||||
+15
-15
@@ -77,20 +77,20 @@ class BlitzCallback : public CCallbackBase {
|
||||
//-----------------------------------------------------------------------------
|
||||
// C-Callables
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(BlitzCallback*) BS_Callback_New(BP_BlitzFunction3_t pFunctionPointer);
|
||||
DLL_FUNCTION(void) BS_Callback_Destroy(BlitzCallback* pCallback);
|
||||
DLL(BlitzCallback*) BS_Callback_New(BP_BlitzFunction3_t pFunctionPointer);
|
||||
DLL(void) BS_Callback_Destroy(BlitzCallback* pCallback);
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_Callback_GetCallbackSizeBytes(BlitzCallback* pCallback);
|
||||
DLL_FUNCTION(void) BS_Callback_SetCallback(BlitzCallback* pCallback, int32_t iCallback);
|
||||
DLL_FUNCTION(int32_t) BS_Callback_GetCallback(BlitzCallback* pCallback);
|
||||
DLL_FUNCTION(void) BS_Callback_SetFunction(BlitzCallback* pCallback, BP_BlitzFunction3_t pFunction);
|
||||
DLL_FUNCTION(BP_BlitzFunction3_t) BS_Callback_GetFunction(BlitzCallback* pCallback);
|
||||
DLL_FUNCTION(void) BS_Callback_SetRegistered(BlitzCallback* pCallback, int32_t bIsRegistered);
|
||||
DLL_FUNCTION(int32_t) BS_Callback_IsRegistered(BlitzCallback* pCallback);
|
||||
DLL_FUNCTION(void) BS_Callback_SetGameServer(BlitzCallback* pCallback, int32_t bIsGameServer);
|
||||
DLL_FUNCTION(int32_t) BS_Callback_IsGameServer(BlitzCallback* pCallback);
|
||||
DLL(int32_t) BS_Callback_GetCallbackSizeBytes(BlitzCallback* pCallback);
|
||||
DLL(void) BS_Callback_SetCallback(BlitzCallback* pCallback, int32_t iCallback);
|
||||
DLL(int32_t) BS_Callback_GetCallback(BlitzCallback* pCallback);
|
||||
DLL(void) BS_Callback_SetFunction(BlitzCallback* pCallback, BP_BlitzFunction3_t pFunction);
|
||||
DLL(BP_BlitzFunction3_t) BS_Callback_GetFunction(BlitzCallback* pCallback);
|
||||
DLL(void) BS_Callback_SetRegistered(BlitzCallback* pCallback, int32_t bIsRegistered);
|
||||
DLL(int32_t) BS_Callback_IsRegistered(BlitzCallback* pCallback);
|
||||
DLL(void) BS_Callback_SetGameServer(BlitzCallback* pCallback, int32_t bIsGameServer);
|
||||
DLL(int32_t) BS_Callback_IsGameServer(BlitzCallback* pCallback);
|
||||
|
||||
DLL_FUNCTION(void) BS_Callback_Register(BlitzCallback* pCallback, uint32_t iCallback);
|
||||
DLL_FUNCTION(void) BS_Callback_Unregister(BlitzCallback* pCallback);
|
||||
DLL_FUNCTION(void) BS_Callback_RegisterResult(BlitzCallback* pCallback, SteamAPICall_t* pSteamAPICall, uint32_t iCallback);
|
||||
DLL_FUNCTION(void) BS_Callback_UnregisterResult(BlitzCallback* pCallback);
|
||||
DLL(void) BS_Callback_Register(BlitzCallback* pCallback, uint32_t iCallback);
|
||||
DLL(void) BS_Callback_Unregister(BlitzCallback* pCallback);
|
||||
DLL(void) BS_Callback_RegisterResult(BlitzCallback* pCallback, SteamAPICall_t* pSteamAPICall, uint32_t iCallback);
|
||||
DLL(void) BS_Callback_UnregisterResult(BlitzCallback* pCallback);
|
||||
+37
-37
@@ -16,151 +16,151 @@
|
||||
|
||||
#include "CSteamID.h"
|
||||
|
||||
DLL_FUNCTION(CSteamID*) BS_CSteamID_New() {
|
||||
DLL(CSteamID*) BS_CSteamID_New() {
|
||||
return new CSteamID();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(CSteamID*) BS_CSteamID_Copy(CSteamID* pOther) {
|
||||
DLL(CSteamID*) BS_CSteamID_Copy(CSteamID* pOther) {
|
||||
return new CSteamID(*pOther);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_Destroy(CSteamID* pThis) {
|
||||
DLL(void) BS_CSteamID_Destroy(CSteamID* pThis) {
|
||||
delete pThis;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(CSteamID*) BS_CSteamID_New_IdUniverseType(AccountID_t iAccountId, EUniverse eUniverse, EAccountType eAccountType) {
|
||||
DLL(CSteamID*) BS_CSteamID_New_IdUniverseType(AccountID_t iAccountId, EUniverse eUniverse, EAccountType eAccountType) {
|
||||
return new CSteamID(iAccountId, eUniverse, eAccountType);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(CSteamID*) BS_CSteamID_New_IdInstanceUniverseType(AccountID_t iAccountId, uint32_t iInstance, EUniverse eUniverse, EAccountType eAccountType) {
|
||||
DLL(CSteamID*) BS_CSteamID_New_IdInstanceUniverseType(AccountID_t iAccountId, uint32_t iInstance, EUniverse eUniverse, EAccountType eAccountType) {
|
||||
return new CSteamID(iAccountId, iInstance, eUniverse, eAccountType);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(CSteamID*) BS_CSteamID_FromL(int64_t* pOther) {
|
||||
DLL(CSteamID*) BS_CSteamID_FromL(int64_t* pOther) {
|
||||
return new CSteamID((uint64_t)*pOther);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_CSteamID_ToL(CSteamID* pThis) {
|
||||
DLL(int64_t*) BS_CSteamID_ToL(CSteamID* pThis) {
|
||||
return new int64_t(pThis->ConvertToUint64());
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_Set(CSteamID* pThis, AccountID_t iAccountID, EUniverse eUniverse, EAccountType eAccountType) {
|
||||
DLL(void) BS_CSteamID_Set(CSteamID* pThis, AccountID_t iAccountID, EUniverse eUniverse, EAccountType eAccountType) {
|
||||
pThis->Set(iAccountID, eUniverse, eAccountType);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_InstancedSet(CSteamID* pThis, AccountID_t iAccountId, uint32_t iInstance, EUniverse eUniverse, EAccountType eAccountType) {
|
||||
DLL(void) BS_CSteamID_InstancedSet(CSteamID* pThis, AccountID_t iAccountId, uint32_t iInstance, EUniverse eUniverse, EAccountType eAccountType) {
|
||||
pThis->InstancedSet(iAccountId, iInstance, eUniverse, eAccountType);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_FullSet(CSteamID* pThis, int64_t* plIdentifier, EUniverse eUniverse, EAccountType eAccountType) {
|
||||
DLL(void) BS_CSteamID_FullSet(CSteamID* pThis, int64_t* plIdentifier, EUniverse eUniverse, EAccountType eAccountType) {
|
||||
pThis->FullSet(*plIdentifier, eUniverse, eAccountType);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_SetFromLong(CSteamID* pThis, int64_t* plSteamID) {
|
||||
DLL(void) BS_CSteamID_SetFromLong(CSteamID* pThis, int64_t* plSteamID) {
|
||||
pThis->SetFromUint64(*plSteamID);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_Clear(CSteamID* pThis) {
|
||||
DLL(void) BS_CSteamID_Clear(CSteamID* pThis) {
|
||||
pThis->Clear();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_CSteamID_GetStaticAccountKey(CSteamID* pThis) {
|
||||
DLL(int64_t*) BS_CSteamID_GetStaticAccountKey(CSteamID* pThis) {
|
||||
return new int64_t(pThis->GetStaticAccountKey());
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_CreateBlankAnonLogon(CSteamID* pThis, EUniverse eUniverse) {
|
||||
DLL(void) BS_CSteamID_CreateBlankAnonLogon(CSteamID* pThis, EUniverse eUniverse) {
|
||||
pThis->CreateBlankAnonLogon(eUniverse);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_CreateBlankAnonUserLogon(CSteamID* pThis, EUniverse eUniverse) {
|
||||
DLL(void) BS_CSteamID_CreateBlankAnonUserLogon(CSteamID* pThis, EUniverse eUniverse) {
|
||||
pThis->CreateBlankAnonUserLogon(eUniverse);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsBlankAnonAccount(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_IsBlankAnonAccount(CSteamID* pThis) {
|
||||
return pThis->BBlankAnonAccount();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsGameServerAccount(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_IsGameServerAccount(CSteamID* pThis) {
|
||||
return pThis->BGameServerAccount();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsPersistentGameServerAccount(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_IsPersistentGameServerAccount(CSteamID* pThis) {
|
||||
return pThis->BPersistentGameServerAccount();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsAnonGameServerAccount(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_IsAnonGameServerAccount(CSteamID* pThis) {
|
||||
return pThis->BAnonGameServerAccount();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsContentServerAccount(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_IsContentServerAccount(CSteamID* pThis) {
|
||||
return pThis->BContentServerAccount();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsClanAccount(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_IsClanAccount(CSteamID* pThis) {
|
||||
return pThis->BClanAccount();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsChatAccount(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_IsChatAccount(CSteamID* pThis) {
|
||||
return pThis->BChatAccount();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsLobby(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_IsLobby(CSteamID* pThis) {
|
||||
return pThis->IsLobby();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsIndividualAccount(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_IsIndividualAccount(CSteamID* pThis) {
|
||||
return pThis->BIndividualAccount();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsAnonAccount(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_IsAnonAccount(CSteamID* pThis) {
|
||||
return pThis->BAnonAccount();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsAnonUserAccount(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_IsAnonUserAccount(CSteamID* pThis) {
|
||||
return pThis->BAnonUserAccount();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsConsoleUserAccount(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_IsConsoleUserAccount(CSteamID* pThis) {
|
||||
return pThis->BConsoleUserAccount();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_SetAccountID(CSteamID* pThis, AccountID_t iAccountId) {
|
||||
DLL(void) BS_CSteamID_SetAccountID(CSteamID* pThis, AccountID_t iAccountId) {
|
||||
pThis->SetAccountID(iAccountId);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(AccountID_t) BS_CSteamID_GetAccountID(CSteamID* pThis) {
|
||||
DLL(AccountID_t) BS_CSteamID_GetAccountID(CSteamID* pThis) {
|
||||
return pThis->GetAccountID();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_SetAccountInstance(CSteamID* pThis, uint32_t iInstance) {
|
||||
DLL(void) BS_CSteamID_SetAccountInstance(CSteamID* pThis, uint32_t iInstance) {
|
||||
pThis->SetAccountInstance(iInstance);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_ClearIndividualInstance(CSteamID* pThis) {
|
||||
DLL(void) BS_CSteamID_ClearIndividualInstance(CSteamID* pThis) {
|
||||
pThis->ClearIndividualInstance();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_HasNoIndividualInstance(CSteamID* pThis) {
|
||||
DLL(int32_t) BS_CSteamID_HasNoIndividualInstance(CSteamID* pThis) {
|
||||
return pThis->HasNoIndividualInstance();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(uint32_t) BS_CSteamID_GetAccountInstance(CSteamID* pThis) {
|
||||
DLL(uint32_t) BS_CSteamID_GetAccountInstance(CSteamID* pThis) {
|
||||
return pThis->GetUnAccountInstance();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(EAccountType) BS_CSteamID_GetEAccountType(CSteamID* pThis) {
|
||||
DLL(EAccountType) BS_CSteamID_GetEAccountType(CSteamID* pThis) {
|
||||
return pThis->GetEAccountType();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_SetEUniverse(CSteamID* pThis, EUniverse eUniverse) {
|
||||
DLL(void) BS_CSteamID_SetEUniverse(CSteamID* pThis, EUniverse eUniverse) {
|
||||
pThis->SetEUniverse(eUniverse);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(EUniverse) BS_CSteamID_GetEUniverse(CSteamID* pThis) {
|
||||
DLL(EUniverse) BS_CSteamID_GetEUniverse(CSteamID* pThis) {
|
||||
return pThis->GetEUniverse();
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_Compare(CSteamID* pThis, CSteamID* pOther) {
|
||||
DLL(int32_t) BS_CSteamID_Compare(CSteamID* pThis, CSteamID* pOther) {
|
||||
return /* It can either be Equal (0) or Smaller or Greater. Easy to check. */
|
||||
/* Greater */
|
||||
(*pThis > *pOther ? 1 : 0) +
|
||||
|
||||
+37
-37
@@ -20,9 +20,9 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Constructor
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(CSteamID*) BS_CSteamID_New();
|
||||
DLL_FUNCTION(CSteamID*) BS_CSteamID_Copy(CSteamID* pOther);
|
||||
DLL_FUNCTION(void) BS_CSteamID_Destroy(CSteamID* pThis);
|
||||
DLL(CSteamID*) BS_CSteamID_New();
|
||||
DLL(CSteamID*) BS_CSteamID_Copy(CSteamID* pOther);
|
||||
DLL(void) BS_CSteamID_Destroy(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Constructor
|
||||
@@ -30,7 +30,7 @@ DLL_FUNCTION(void) BS_CSteamID_Destroy(CSteamID* pThis);
|
||||
// eUniverse - Universe this account belongs to
|
||||
// eAccountType - Type of account
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(CSteamID*) BS_CSteamID_New_IdUniverseType(AccountID_t iAccountId, EUniverse eUniverse, EAccountType eAccountType);
|
||||
DLL(CSteamID*) BS_CSteamID_New_IdUniverseType(AccountID_t iAccountId, EUniverse eUniverse, EAccountType eAccountType);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Constructor
|
||||
@@ -39,7 +39,7 @@ DLL_FUNCTION(CSteamID*) BS_CSteamID_New_IdUniverseType(AccountID_t iAccountId, E
|
||||
// eUniverse - Universe this account belongs to
|
||||
// eAccountType - Type of account
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(CSteamID*) BS_CSteamID_New_IdInstanceUniverseType(AccountID_t iAccountId, uint32_t iInstance, EUniverse eUniverse, EAccountType eAccountType);
|
||||
DLL(CSteamID*) BS_CSteamID_New_IdInstanceUniverseType(AccountID_t iAccountId, uint32_t iInstance, EUniverse eUniverse, EAccountType eAccountType);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Constructor
|
||||
@@ -47,8 +47,8 @@ DLL_FUNCTION(CSteamID*) BS_CSteamID_New_IdInstanceUniverseType(AccountID_t iAcco
|
||||
// Note: Will not accept a uint32 or int32 as input, as that is a probable mistake.
|
||||
// See the stubbed out overloads in the private: section for more info.
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(CSteamID*) BS_CSteamID_FromL(int64_t* pOther);
|
||||
DLL_FUNCTION(int64_t*) BS_CSteamID_ToL(CSteamID* pThis);
|
||||
DLL(CSteamID*) BS_CSteamID_FromL(int64_t* pOther);
|
||||
DLL(int64_t*) BS_CSteamID_ToL(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Sets parameters for steam ID
|
||||
@@ -56,7 +56,7 @@ DLL_FUNCTION(int64_t*) BS_CSteamID_ToL(CSteamID* pThis);
|
||||
// eUniverse - Universe this account belongs to
|
||||
// eAccountType - Type of account
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(void) BS_CSteamID_Set(CSteamID* pThis, AccountID_t iAccountID, EUniverse eUniverse, EAccountType eAccountType);
|
||||
DLL(void) BS_CSteamID_Set(CSteamID* pThis, AccountID_t iAccountID, EUniverse eUniverse, EAccountType eAccountType);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Sets parameters for steam ID
|
||||
@@ -64,24 +64,24 @@ DLL_FUNCTION(void) BS_CSteamID_Set(CSteamID* pThis, AccountID_t iAccountID, EUni
|
||||
// eUniverse - Universe this account belongs to
|
||||
// eAccountType - Type of account
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(void) BS_CSteamID_InstancedSet(CSteamID* pThis, AccountID_t iAccountId, uint32_t iInstance, EUniverse eUniverse, EAccountType eAccountType);
|
||||
DLL(void) BS_CSteamID_InstancedSet(CSteamID* pThis, AccountID_t iAccountId, uint32_t iInstance, EUniverse eUniverse, EAccountType eAccountType);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Initializes a steam ID from its 52 bit parts and universe/type
|
||||
// Input : ulIdentifier - 52 bits of goodness
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(void) BS_CSteamID_FullSet(CSteamID* pThis, int64_t* plIdentifier, EUniverse eUniverse, EAccountType eAccountType);
|
||||
DLL(void) BS_CSteamID_FullSet(CSteamID* pThis, int64_t* plIdentifier, EUniverse eUniverse, EAccountType eAccountType);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Initializes a steam ID from its 64-bit representation
|
||||
// Input : ulSteamID - 64-bit representation of a Steam ID
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(void) BS_CSteamID_SetFromLong(CSteamID* pThis, int64_t* plSteamID);
|
||||
DLL(void) BS_CSteamID_SetFromLong(CSteamID* pThis, int64_t* plSteamID);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Clear all fields, leaving an invalid ID.
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(void) BS_CSteamID_Clear(CSteamID* pThis);
|
||||
DLL(void) BS_CSteamID_Clear(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Converts the static parts of a steam ID to a 64-bit representation.
|
||||
@@ -90,90 +90,90 @@ DLL_FUNCTION(void) BS_CSteamID_Clear(CSteamID* pThis);
|
||||
// account key.
|
||||
// Output : 64-bit static account key
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int64_t*) BS_CSteamID_GetStaticAccountKey(CSteamID* pThis);
|
||||
DLL(int64_t*) BS_CSteamID_GetStaticAccountKey(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: create an anonymous game server login to be filled in by the AM
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(void) BS_CSteamID_CreateBlankAnonLogon(CSteamID* pThis, EUniverse eUniverse);
|
||||
DLL(void) BS_CSteamID_CreateBlankAnonLogon(CSteamID* pThis, EUniverse eUniverse);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: create an anonymous game server login to be filled in by the AM
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(void) BS_CSteamID_CreateBlankAnonUserLogon(CSteamID* pThis, EUniverse eUniverse);
|
||||
DLL(void) BS_CSteamID_CreateBlankAnonUserLogon(CSteamID* pThis, EUniverse eUniverse);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Is this an anonymous game server login that will be filled in?
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsBlankAnonAccount(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_IsBlankAnonAccount(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Is this a game server account id? (Either persistent or anonymous)
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsGameServerAccount(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_IsGameServerAccount(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Is this a persistent (not anonymous) game server account id?
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsPersistentGameServerAccount(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_IsPersistentGameServerAccount(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Is this an anonymous game server account id?
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsAnonGameServerAccount(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_IsAnonGameServerAccount(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Is this a content server account id?
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsContentServerAccount(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_IsContentServerAccount(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Is this a clan account id?
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsClanAccount(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_IsClanAccount(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Is this a chat account id?
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsChatAccount(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_IsChatAccount(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Is this a Lobby?
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsLobby(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_IsLobby(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Is this an individual user account id?
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsIndividualAccount(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_IsIndividualAccount(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Is this an anonymous account?
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsAnonAccount(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_IsAnonAccount(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Is this an anonymous user account? ( used to create an account or reset a password )
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsAnonUserAccount(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_IsAnonUserAccount(CSteamID* pThis);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Is this a faked up Steam ID for a PSN friend account?
|
||||
//-----------------------------------------------------------------------------
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_IsConsoleUserAccount(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_IsConsoleUserAccount(CSteamID* pThis);
|
||||
|
||||
// simple accessors
|
||||
DLL_FUNCTION(void) BS_CSteamID_SetAccountID(CSteamID* pThis, AccountID_t iAccountId);
|
||||
DLL_FUNCTION(AccountID_t) BS_CSteamID_GetAccountID(CSteamID* pThis);
|
||||
DLL(void) BS_CSteamID_SetAccountID(CSteamID* pThis, AccountID_t iAccountId);
|
||||
DLL(AccountID_t) BS_CSteamID_GetAccountID(CSteamID* pThis);
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_SetAccountInstance(CSteamID* pThis, uint32_t iInstance);
|
||||
DLL_FUNCTION(void) BS_CSteamID_ClearIndividualInstance(CSteamID* pThis);
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_HasNoIndividualInstance(CSteamID* pThis);
|
||||
DLL_FUNCTION(uint32_t) BS_CSteamID_GetAccountInstance(CSteamID* pThis);
|
||||
DLL(void) BS_CSteamID_SetAccountInstance(CSteamID* pThis, uint32_t iInstance);
|
||||
DLL(void) BS_CSteamID_ClearIndividualInstance(CSteamID* pThis);
|
||||
DLL(int32_t) BS_CSteamID_HasNoIndividualInstance(CSteamID* pThis);
|
||||
DLL(uint32_t) BS_CSteamID_GetAccountInstance(CSteamID* pThis);
|
||||
|
||||
DLL_FUNCTION(EAccountType) BS_CSteamID_GetEAccountType(CSteamID* pThis);
|
||||
DLL(EAccountType) BS_CSteamID_GetEAccountType(CSteamID* pThis);
|
||||
|
||||
DLL_FUNCTION(void) BS_CSteamID_SetEUniverse(CSteamID* pThis, EUniverse eUniverse);
|
||||
DLL_FUNCTION(EUniverse) BS_CSteamID_GetEUniverse(CSteamID* pThis);
|
||||
DLL(void) BS_CSteamID_SetEUniverse(CSteamID* pThis, EUniverse eUniverse);
|
||||
DLL(EUniverse) BS_CSteamID_GetEUniverse(CSteamID* pThis);
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_CSteamID_Compare(CSteamID* pThis, CSteamID* pOther);
|
||||
DLL(int32_t) BS_CSteamID_Compare(CSteamID* pThis, CSteamID* pOther);
|
||||
+24
-24
@@ -16,18 +16,18 @@
|
||||
|
||||
#include "Long.h"
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Double_New() {
|
||||
DLL(double_t*) BS_Double_New() {
|
||||
return new double_t;
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Double_Copy(double_t* pOther) {
|
||||
DLL(double_t*) BS_Double_Copy(double_t* pOther) {
|
||||
return new double_t(*pOther);
|
||||
}
|
||||
DLL_FUNCTION(void) BS_Double_Destroy(double_t* pThis) {
|
||||
DLL(void) BS_Double_Destroy(double_t* pThis) {
|
||||
delete pThis;
|
||||
}
|
||||
|
||||
char* BS_Double_Buffer = new char[32];
|
||||
DLL_FUNCTION(const char*) BS_Double_ToString(double_t* pThis) {
|
||||
DLL(const char*) BS_Double_ToString(double_t* pThis) {
|
||||
std::stringstream myStream;
|
||||
myStream << (*pThis);
|
||||
|
||||
@@ -35,35 +35,35 @@ DLL_FUNCTION(const char*) BS_Double_ToString(double_t* pThis) {
|
||||
strcpy_s(BS_Double_Buffer, 32, myBuffer);
|
||||
return BS_Double_Buffer;
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Double_FromString(const char* pString) {
|
||||
DLL(double_t*) BS_Double_FromString(const char* pString) {
|
||||
double_t* pThis = new double_t;
|
||||
std::stringstream myStream = std::stringstream(pString);
|
||||
myStream >> *pThis;
|
||||
return pThis;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Double_FromF(float_t fOther) {
|
||||
DLL(double_t*) BS_Double_FromF(float_t fOther) {
|
||||
return new double_t(fOther);
|
||||
}
|
||||
DLL_FUNCTION(float_t) BS_Double_ToF(double_t* pThis) {
|
||||
DLL(float_t) BS_Double_ToF(double_t* pThis) {
|
||||
return (float_t)*pThis;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Double_FromI(int32_t iOther) {
|
||||
DLL(double_t*) BS_Double_FromI(int32_t iOther) {
|
||||
return new double_t(iOther);
|
||||
}
|
||||
DLL_FUNCTION(int32_t) BS_Double_ToI(double_t* pThis) {
|
||||
DLL(int32_t) BS_Double_ToI(double_t* pThis) {
|
||||
return (int32_t)*pThis;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Double_FromL(int64_t* pOther) {
|
||||
DLL(double_t*) BS_Double_FromL(int64_t* pOther) {
|
||||
return new double_t((double_t)*pOther);
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Double_ToL(double_t* pThis) {
|
||||
DLL(int64_t*) BS_Double_ToL(double_t* pThis) {
|
||||
return new int64_t((int64_t)*pThis);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_Double_Compare(double_t* pThis, double_t* pOther) {
|
||||
DLL(int32_t) BS_Double_Compare(double_t* pThis, double_t* pOther) {
|
||||
return /* It can either be Equal (0) or Smaller or Greater. Easy to check. */
|
||||
/* Greater */
|
||||
(*pThis > *pOther ? 1 : 0) +
|
||||
@@ -71,52 +71,52 @@ DLL_FUNCTION(int32_t) BS_Double_Compare(double_t* pThis, double_t* pOther) {
|
||||
(*pThis < *pOther ? -1 : 0);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Double_Set(double_t* pThis, double_t* pOther) {
|
||||
DLL(double_t*) BS_Double_Set(double_t* pThis, double_t* pOther) {
|
||||
*pThis = *pOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Double_Add(double_t* pThis, double_t* pOther) {
|
||||
DLL(double_t*) BS_Double_Add(double_t* pThis, double_t* pOther) {
|
||||
*pThis += *pOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Double_Sub(double_t* pThis, double_t* pOther) {
|
||||
DLL(double_t*) BS_Double_Sub(double_t* pThis, double_t* pOther) {
|
||||
*pThis -= *pOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Double_Div(double_t* pThis, double_t* pOther) {
|
||||
DLL(double_t*) BS_Double_Div(double_t* pThis, double_t* pOther) {
|
||||
*pThis /= *pOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Double_Mul(double_t* pThis, double_t* pOther) {
|
||||
DLL(double_t*) BS_Double_Mul(double_t* pThis, double_t* pOther) {
|
||||
*pThis *= *pOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Double_Mod(double_t* pThis, double_t* pOther) {
|
||||
DLL(double_t*) BS_Double_Mod(double_t* pThis, double_t* pOther) {
|
||||
*pThis = fmod(*pThis, *pOther);
|
||||
return pThis;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Double_SetF(double_t* pThis, float_t fOther) {
|
||||
DLL(double_t*) BS_Double_SetF(double_t* pThis, float_t fOther) {
|
||||
*pThis = fOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Double_AddF(double_t* pThis, float_t fOther) {
|
||||
DLL(double_t*) BS_Double_AddF(double_t* pThis, float_t fOther) {
|
||||
*pThis += fOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Double_SubF(double_t* pThis, float_t fOther) {
|
||||
DLL(double_t*) BS_Double_SubF(double_t* pThis, float_t fOther) {
|
||||
*pThis -= fOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Double_DivF(double_t* pThis, float_t fOther) {
|
||||
DLL(double_t*) BS_Double_DivF(double_t* pThis, float_t fOther) {
|
||||
*pThis /= fOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Double_MulF(double_t* pThis, float_t fOther) {
|
||||
DLL(double_t*) BS_Double_MulF(double_t* pThis, float_t fOther) {
|
||||
*pThis *= fOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Double_ModF(double_t* pThis, float_t fOther) {
|
||||
DLL(double_t*) BS_Double_ModF(double_t* pThis, float_t fOther) {
|
||||
*pThis = fmod(*pThis, fOther);
|
||||
return pThis;
|
||||
}
|
||||
+24
-24
@@ -18,34 +18,34 @@
|
||||
#include "BlitzSteamInternal.h"
|
||||
#include <sstream>
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Double_New();
|
||||
DLL_FUNCTION(double_t*) BS_Double_Copy(double_t* pRight);
|
||||
DLL_FUNCTION(void) BS_Double_Destroy(double_t* pThis);
|
||||
DLL(double_t*) BS_Double_New();
|
||||
DLL(double_t*) BS_Double_Copy(double_t* pRight);
|
||||
DLL(void) BS_Double_Destroy(double_t* pThis);
|
||||
|
||||
DLL_FUNCTION(const char*) BS_Double_ToString(double_t* pThis);
|
||||
DLL_FUNCTION(double_t*) BS_Double_FromString(const char* pString);
|
||||
DLL(const char*) BS_Double_ToString(double_t* pThis);
|
||||
DLL(double_t*) BS_Double_FromString(const char* pString);
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Double_FromF(float_t fOther);
|
||||
DLL_FUNCTION(float_t) BS_Double_ToF(double_t* pThis);
|
||||
DLL(double_t*) BS_Double_FromF(float_t fOther);
|
||||
DLL(float_t) BS_Double_ToF(double_t* pThis);
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Double_FromI(int32_t iOther);
|
||||
DLL_FUNCTION(int32_t) BS_Double_ToI(double_t* pThis);
|
||||
DLL(double_t*) BS_Double_FromI(int32_t iOther);
|
||||
DLL(int32_t) BS_Double_ToI(double_t* pThis);
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Double_FromL(int64_t* pOther);
|
||||
DLL_FUNCTION(int64_t*) BS_Double_ToL(double_t* pThis);
|
||||
DLL(double_t*) BS_Double_FromL(int64_t* pOther);
|
||||
DLL(int64_t*) BS_Double_ToL(double_t* pThis);
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_Double_Compare(double_t* pThis, double_t* pOther);
|
||||
DLL(int32_t) BS_Double_Compare(double_t* pThis, double_t* pOther);
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Double_Set(double_t* pThis, double_t* pOther);
|
||||
DLL_FUNCTION(double_t*) BS_Double_Add(double_t* pThis, double_t* pOther);
|
||||
DLL_FUNCTION(double_t*) BS_Double_Sub(double_t* pThis, double_t* pOther);
|
||||
DLL_FUNCTION(double_t*) BS_Double_Div(double_t* pThis, double_t* pOther);
|
||||
DLL_FUNCTION(double_t*) BS_Double_Mul(double_t* pThis, double_t* pOther);
|
||||
DLL_FUNCTION(double_t*) BS_Double_Mod(double_t* pThis, double_t* pOther);
|
||||
DLL(double_t*) BS_Double_Set(double_t* pThis, double_t* pOther);
|
||||
DLL(double_t*) BS_Double_Add(double_t* pThis, double_t* pOther);
|
||||
DLL(double_t*) BS_Double_Sub(double_t* pThis, double_t* pOther);
|
||||
DLL(double_t*) BS_Double_Div(double_t* pThis, double_t* pOther);
|
||||
DLL(double_t*) BS_Double_Mul(double_t* pThis, double_t* pOther);
|
||||
DLL(double_t*) BS_Double_Mod(double_t* pThis, double_t* pOther);
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Double_SetF(double_t* pThis, float_t fOther);
|
||||
DLL_FUNCTION(double_t*) BS_Double_AddF(double_t* pThis, float_t fOther);
|
||||
DLL_FUNCTION(double_t*) BS_Double_SubF(double_t* pThis, float_t fOther);
|
||||
DLL_FUNCTION(double_t*) BS_Double_DivF(double_t* pThis, float_t fOther);
|
||||
DLL_FUNCTION(double_t*) BS_Double_MulF(double_t* pThis, float_t fOther);
|
||||
DLL_FUNCTION(double_t*) BS_Double_ModF(double_t* pThis, float_t fOther);
|
||||
DLL(double_t*) BS_Double_SetF(double_t* pThis, float_t fOther);
|
||||
DLL(double_t*) BS_Double_AddF(double_t* pThis, float_t fOther);
|
||||
DLL(double_t*) BS_Double_SubF(double_t* pThis, float_t fOther);
|
||||
DLL(double_t*) BS_Double_DivF(double_t* pThis, float_t fOther);
|
||||
DLL(double_t*) BS_Double_MulF(double_t* pThis, float_t fOther);
|
||||
DLL(double_t*) BS_Double_ModF(double_t* pThis, float_t fOther);
|
||||
|
||||
+34
-34
@@ -16,18 +16,18 @@
|
||||
|
||||
#include "Long.h"
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_New() {
|
||||
DLL(int64_t*) BS_Long_New() {
|
||||
return new int64_t;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Copy(int64_t* pOther) {
|
||||
DLL(int64_t*) BS_Long_Copy(int64_t* pOther) {
|
||||
return new int64_t(*pOther);
|
||||
}
|
||||
DLL_FUNCTION(void) BS_Long_Destroy(int64_t* pThis) {
|
||||
DLL(void) BS_Long_Destroy(int64_t* pThis) {
|
||||
delete pThis;
|
||||
}
|
||||
|
||||
char* BS_Long_Buffer = new char[32];
|
||||
DLL_FUNCTION(const char*) BS_Long_ToString(int64_t* pThis) {
|
||||
DLL(const char*) BS_Long_ToString(int64_t* pThis) {
|
||||
std::stringstream myStream;
|
||||
myStream << (*pThis);
|
||||
|
||||
@@ -35,47 +35,47 @@ DLL_FUNCTION(const char*) BS_Long_ToString(int64_t* pThis) {
|
||||
strcpy_s(BS_Long_Buffer, 32, myBuffer);
|
||||
return BS_Long_Buffer;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_FromString(const char* pString) {
|
||||
DLL(int64_t*) BS_Long_FromString(const char* pString) {
|
||||
int64_t* pThis = new int64_t;
|
||||
std::stringstream myStream = std::stringstream(pString);
|
||||
myStream >> *pThis;
|
||||
return pThis;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_FromI(int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_FromI(int32_t iRight) {
|
||||
return new int64_t(iRight);
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_FromII(int32_t iLeft, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_FromII(int32_t iLeft, int32_t iRight) {
|
||||
return new int64_t(((int64_t)(iLeft) << 32) + iRight);
|
||||
}
|
||||
DLL_FUNCTION(int32_t) BS_Long_ToI(int64_t* pThis, int32_t iShift) {
|
||||
DLL(int32_t) BS_Long_ToI(int64_t* pThis, int32_t iShift) {
|
||||
if (iShift >= 0)
|
||||
return (int32_t)(*pThis >> iShift);
|
||||
else
|
||||
return (int32_t)(*pThis << -iShift);
|
||||
}
|
||||
DLL_FUNCTION(int32_t) BS_Long_ToIH(int64_t* pThis) {
|
||||
DLL(int32_t) BS_Long_ToIH(int64_t* pThis) {
|
||||
return (int32_t)(*pThis >> 32);
|
||||
}
|
||||
DLL_FUNCTION(int32_t) BS_Long_ToIL(int64_t* pThis) {
|
||||
DLL(int32_t) BS_Long_ToIL(int64_t* pThis) {
|
||||
return (int32_t)*pThis;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_FromF(float_t fOther) {
|
||||
DLL(int64_t*) BS_Long_FromF(float_t fOther) {
|
||||
return new int64_t((int64_t)fOther);
|
||||
}
|
||||
DLL_FUNCTION(float_t) BS_Long_ToF(int64_t* pThis) {
|
||||
DLL(float_t) BS_Long_ToF(int64_t* pThis) {
|
||||
return (float_t)*pThis;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_FromD(double_t* pOther) {
|
||||
DLL(int64_t*) BS_Long_FromD(double_t* pOther) {
|
||||
return new int64_t((int64_t)*pOther);
|
||||
}
|
||||
DLL_FUNCTION(double_t*) BS_Long_ToD(int64_t* pThis) {
|
||||
DLL(double_t*) BS_Long_ToD(int64_t* pThis) {
|
||||
return new double_t((double_t)*pThis);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_Long_Compare(int64_t* pThis, int64_t* pOther) {
|
||||
DLL(int32_t) BS_Long_Compare(int64_t* pThis, int64_t* pOther) {
|
||||
return /* It can either be Equal (0) or Smaller or Greater. Easy to check. */
|
||||
/* Greater */
|
||||
(*pThis > *pOther ? 1 : 0) +
|
||||
@@ -83,82 +83,82 @@ DLL_FUNCTION(int32_t) BS_Long_Compare(int64_t* pThis, int64_t* pOther) {
|
||||
(*pThis < *pOther ? -1 : 0);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Set(int64_t* pThis, int64_t* pOther) {
|
||||
DLL(int64_t*) BS_Long_Set(int64_t* pThis, int64_t* pOther) {
|
||||
*pThis = *pOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Add(int64_t* pThis, int64_t* pOther) {
|
||||
DLL(int64_t*) BS_Long_Add(int64_t* pThis, int64_t* pOther) {
|
||||
*pThis += *pOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Sub(int64_t* pThis, int64_t* pOther) {
|
||||
DLL(int64_t*) BS_Long_Sub(int64_t* pThis, int64_t* pOther) {
|
||||
*pThis -= *pOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Div(int64_t* pThis, int64_t* pOther) {
|
||||
DLL(int64_t*) BS_Long_Div(int64_t* pThis, int64_t* pOther) {
|
||||
*pThis /= *pOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Mul(int64_t* pThis, int64_t* pOther) {
|
||||
DLL(int64_t*) BS_Long_Mul(int64_t* pThis, int64_t* pOther) {
|
||||
*pThis *= *pOther;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Mod(int64_t* pThis, int64_t* pOther) {
|
||||
DLL(int64_t*) BS_Long_Mod(int64_t* pThis, int64_t* pOther) {
|
||||
*pThis %= *pOther;
|
||||
return pThis;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_SetI(int64_t* pThis, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_SetI(int64_t* pThis, int32_t iRight) {
|
||||
*pThis = iRight;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_AddI(int64_t* pThis, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_AddI(int64_t* pThis, int32_t iRight) {
|
||||
*pThis += iRight;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_SubI(int64_t* pThis, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_SubI(int64_t* pThis, int32_t iRight) {
|
||||
*pThis -= iRight;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_DivI(int64_t* pThis, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_DivI(int64_t* pThis, int32_t iRight) {
|
||||
*pThis /= iRight;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_MulI(int64_t* pThis, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_MulI(int64_t* pThis, int32_t iRight) {
|
||||
*pThis *= iRight;
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_ModI(int64_t* pThis, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_ModI(int64_t* pThis, int32_t iRight) {
|
||||
*pThis %= iRight;
|
||||
return pThis;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_SetII(int64_t* pThis, int32_t iLeft, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_SetII(int64_t* pThis, int32_t iLeft, int32_t iRight) {
|
||||
*pThis = (((int64_t)iLeft << 32) + iRight);
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_AddII(int64_t* pThis, int32_t iLeft, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_AddII(int64_t* pThis, int32_t iLeft, int32_t iRight) {
|
||||
*pThis += (((int64_t)iLeft << 32) + iRight);
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_SubII(int64_t* pThis, int32_t iLeft, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_SubII(int64_t* pThis, int32_t iLeft, int32_t iRight) {
|
||||
*pThis -= (((int64_t)iLeft << 32) + iRight);
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_DivII(int64_t* pThis, int32_t iLeft, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_DivII(int64_t* pThis, int32_t iLeft, int32_t iRight) {
|
||||
*pThis /= (((int64_t)iLeft << 32) + iRight);
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_MulII(int64_t* pThis, int32_t iLeft, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_MulII(int64_t* pThis, int32_t iLeft, int32_t iRight) {
|
||||
*pThis *= (((int64_t)iLeft << 32) + iRight);
|
||||
return pThis;
|
||||
}
|
||||
DLL_FUNCTION(int64_t*) BS_Long_ModII(int64_t* pThis, int32_t iLeft, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_ModII(int64_t* pThis, int32_t iLeft, int32_t iRight) {
|
||||
*pThis %= (((int64_t)iLeft << 32) + iRight);
|
||||
return pThis;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Shift(int64_t* pThis, int32_t iRight) {
|
||||
DLL(int64_t*) BS_Long_Shift(int64_t* pThis, int32_t iRight) {
|
||||
if (iRight >= 0)
|
||||
*pThis >>= iRight;
|
||||
else
|
||||
|
||||
+34
-34
@@ -18,46 +18,46 @@
|
||||
#include "BlitzSteamInternal.h"
|
||||
#include <sstream>
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_New();
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Copy(int64_t* pRight);
|
||||
DLL_FUNCTION(void) BS_Long_Destroy(int64_t* pThis);
|
||||
DLL(int64_t*) BS_Long_New();
|
||||
DLL(int64_t*) BS_Long_Copy(int64_t* pRight);
|
||||
DLL(void) BS_Long_Destroy(int64_t* pThis);
|
||||
|
||||
DLL_FUNCTION(const char*) BS_Long_ToString(int64_t* pThis);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_FromString(const char* pString);
|
||||
DLL(const char*) BS_Long_ToString(int64_t* pThis);
|
||||
DLL(int64_t*) BS_Long_FromString(const char* pString);
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_FromI(int32_t iRight);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_FromII(int32_t iLeft, int32_t iRight);
|
||||
DLL_FUNCTION(int32_t) BS_Long_ToI(int64_t* pThis, int32_t iShift);
|
||||
DLL_FUNCTION(int32_t) BS_Long_ToIH(int64_t* pThis);
|
||||
DLL_FUNCTION(int32_t) BS_Long_ToIL(int64_t* pThis);
|
||||
DLL(int64_t*) BS_Long_FromI(int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_FromII(int32_t iLeft, int32_t iRight);
|
||||
DLL(int32_t) BS_Long_ToI(int64_t* pThis, int32_t iShift);
|
||||
DLL(int32_t) BS_Long_ToIH(int64_t* pThis);
|
||||
DLL(int32_t) BS_Long_ToIL(int64_t* pThis);
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_FromF(float_t fOther);
|
||||
DLL_FUNCTION(float_t) BS_Long_ToF(int64_t* pThis);
|
||||
DLL(int64_t*) BS_Long_FromF(float_t fOther);
|
||||
DLL(float_t) BS_Long_ToF(int64_t* pThis);
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_FromD(double_t* pOther);
|
||||
DLL_FUNCTION(double_t*) BS_Long_ToD(int64_t* pThis);
|
||||
DLL(int64_t*) BS_Long_FromD(double_t* pOther);
|
||||
DLL(double_t*) BS_Long_ToD(int64_t* pThis);
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_Long_Compare(int64_t* pThis, int64_t* pOther);
|
||||
DLL(int32_t) BS_Long_Compare(int64_t* pThis, int64_t* pOther);
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Set(int64_t* pThis, int64_t* pOther);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Add(int64_t* pThis, int64_t* pOther);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Sub(int64_t* pThis, int64_t* pOther);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Div(int64_t* pThis, int64_t* pOther);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Mul(int64_t* pThis, int64_t* pOther);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Mod(int64_t* pThis, int64_t* pOther);
|
||||
DLL(int64_t*) BS_Long_Set(int64_t* pThis, int64_t* pOther);
|
||||
DLL(int64_t*) BS_Long_Add(int64_t* pThis, int64_t* pOther);
|
||||
DLL(int64_t*) BS_Long_Sub(int64_t* pThis, int64_t* pOther);
|
||||
DLL(int64_t*) BS_Long_Div(int64_t* pThis, int64_t* pOther);
|
||||
DLL(int64_t*) BS_Long_Mul(int64_t* pThis, int64_t* pOther);
|
||||
DLL(int64_t*) BS_Long_Mod(int64_t* pThis, int64_t* pOther);
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_SetI(int64_t* pThis, int32_t iRight);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_AddI(int64_t* pThis, int32_t iRight);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_SubI(int64_t* pThis, int32_t iRight);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_DivI(int64_t* pThis, int32_t iRight);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_MulI(int64_t* pThis, int32_t iRight);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_ModI(int64_t* pThis, int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_SetI(int64_t* pThis, int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_AddI(int64_t* pThis, int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_SubI(int64_t* pThis, int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_DivI(int64_t* pThis, int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_MulI(int64_t* pThis, int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_ModI(int64_t* pThis, int32_t iRight);
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_SetII(int64_t* pThis, int32_t iLeft, int32_t iRight);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_AddII(int64_t* pThis, int32_t iLeft, int32_t iRight);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_SubII(int64_t* pThis, int32_t iLeft, int32_t iRight);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_DivII(int64_t* pThis, int32_t iLeft, int32_t iRight);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_MulII(int64_t* pThis, int32_t iLeft, int32_t iRight);
|
||||
DLL_FUNCTION(int64_t*) BS_Long_ModII(int64_t* pThis, int32_t iLeft, int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_SetII(int64_t* pThis, int32_t iLeft, int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_AddII(int64_t* pThis, int32_t iLeft, int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_SubII(int64_t* pThis, int32_t iLeft, int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_DivII(int64_t* pThis, int32_t iLeft, int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_MulII(int64_t* pThis, int32_t iLeft, int32_t iRight);
|
||||
DLL(int64_t*) BS_Long_ModII(int64_t* pThis, int32_t iLeft, int32_t iRight);
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Long_Shift(int64_t* pThis, int32_t iShift);
|
||||
DLL(int64_t*) BS_Long_Shift(int64_t* pThis, int32_t iShift);
|
||||
+15
-15
@@ -16,62 +16,62 @@
|
||||
|
||||
#include "Memory.h"
|
||||
|
||||
DLL_FUNCTION(void*) BS_Memory_Alloc(uint32_t iSize) {
|
||||
DLL(void*) BS_Memory_Alloc(uint32_t iSize) {
|
||||
return malloc(iSize);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void*) BS_Memory_ReAlloc(void* pMemory, uint32_t iNewSize) {
|
||||
DLL(void*) BS_Memory_ReAlloc(void* pMemory, uint32_t iNewSize) {
|
||||
return realloc(pMemory, iNewSize);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_Free(void* pMemory) {
|
||||
DLL(void) BS_Memory_Free(void* pMemory) {
|
||||
free(pMemory);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_PokeByte(void* pMemory, uint32_t offset, int8_t value) {
|
||||
DLL(void) BS_Memory_PokeByte(void* pMemory, uint32_t offset, int8_t value) {
|
||||
*((reinterpret_cast<uint8_t*>(pMemory) + offset)) = value;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_Memory_PeekByte(void* pMemory, uint32_t offset) {
|
||||
DLL(int32_t) BS_Memory_PeekByte(void* pMemory, uint32_t offset) {
|
||||
return *(reinterpret_cast<uint8_t*>(pMemory) + offset);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_PokeShort(void* pMemory, uint32_t offset, int16_t value) {
|
||||
DLL(void) BS_Memory_PokeShort(void* pMemory, uint32_t offset, int16_t value) {
|
||||
*(reinterpret_cast<int16_t*>(reinterpret_cast<uint8_t*>(pMemory) + offset)) = value;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_Memory_PeekShort(void* pMemory, uint32_t offset) {
|
||||
DLL(int32_t) BS_Memory_PeekShort(void* pMemory, uint32_t offset) {
|
||||
return *(int16_t*)(reinterpret_cast<uint8_t*>(pMemory) + offset);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_PokeInt(void* pMemory, uint32_t offset, int32_t value) {
|
||||
DLL(void) BS_Memory_PokeInt(void* pMemory, uint32_t offset, int32_t value) {
|
||||
*(reinterpret_cast<uint32_t*>(reinterpret_cast<uint8_t*>(pMemory) + offset)) = value;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int32_t) BS_Memory_PeekInt(void* pMemory, uint32_t offset) {
|
||||
DLL(int32_t) BS_Memory_PeekInt(void* pMemory, uint32_t offset) {
|
||||
return *(int32_t*)(reinterpret_cast<uint8_t*>(pMemory) + offset);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_PokeFloat(void* pMemory, uint32_t offset, float_t value) {
|
||||
DLL(void) BS_Memory_PokeFloat(void* pMemory, uint32_t offset, float_t value) {
|
||||
*(reinterpret_cast<float_t*>(reinterpret_cast<uint8_t*>(pMemory) + offset)) = value;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(float_t) BS_Memory_PeekFloat(void* pMemory, uint32_t offset) {
|
||||
DLL(float_t) BS_Memory_PeekFloat(void* pMemory, uint32_t offset) {
|
||||
return *(float_t*)(reinterpret_cast<uint8_t*>(pMemory) + offset);
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_PokeLong(void* pMemory, uint32_t offset, int64_t* value) {
|
||||
DLL(void) BS_Memory_PokeLong(void* pMemory, uint32_t offset, int64_t* value) {
|
||||
*(reinterpret_cast<int64_t*>(reinterpret_cast<uint8_t*>(pMemory) + offset)) = *value;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(int64_t*) BS_Memory_PeekLong(void* pMemory, uint32_t offset) {
|
||||
DLL(int64_t*) BS_Memory_PeekLong(void* pMemory, uint32_t offset) {
|
||||
return new int64_t(*(reinterpret_cast<int64_t*>(reinterpret_cast<uint8_t*>(pMemory) + offset)));
|
||||
}
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_PokeDouble(void* pMemory, uint32_t offset, double_t* value) {
|
||||
DLL(void) BS_Memory_PokeDouble(void* pMemory, uint32_t offset, double_t* value) {
|
||||
*(reinterpret_cast<double_t*>(reinterpret_cast<uint8_t*>(pMemory) + offset)) = *value;
|
||||
}
|
||||
|
||||
DLL_FUNCTION(double_t*) BS_Memory_PeekDouble(void* pMemory, uint32_t offset) {
|
||||
DLL(double_t*) BS_Memory_PeekDouble(void* pMemory, uint32_t offset) {
|
||||
return new double_t(*(reinterpret_cast<double_t*>(reinterpret_cast<uint8_t*>(pMemory) + offset)));
|
||||
}
|
||||
|
||||
+15
-15
@@ -19,24 +19,24 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
DLL_FUNCTION(void*) BS_Memory_Alloc(uint32_t iSize);
|
||||
DLL_FUNCTION(void*) BS_Memory_ReAlloc(void* pMemory, uint32_t iNewSize);
|
||||
DLL_FUNCTION(void) BS_Memory_Free(void* pMemory);
|
||||
DLL(void*) BS_Memory_Alloc(uint32_t iSize);
|
||||
DLL(void*) BS_Memory_ReAlloc(void* pMemory, uint32_t iNewSize);
|
||||
DLL(void) BS_Memory_Free(void* pMemory);
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_PokeByte(void* pMemory, uint32_t offset, int8_t value);
|
||||
DLL_FUNCTION(int32_t) BS_Memory_PeekByte(void* pMemory, uint32_t offset);
|
||||
DLL(void) BS_Memory_PokeByte(void* pMemory, uint32_t offset, int8_t value);
|
||||
DLL(int32_t) BS_Memory_PeekByte(void* pMemory, uint32_t offset);
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_PokeShort(void* pMemory, uint32_t offset, int16_t value);
|
||||
DLL_FUNCTION(int32_t) BS_Memory_PeekShort(void* pMemory, uint32_t offset);
|
||||
DLL(void) BS_Memory_PokeShort(void* pMemory, uint32_t offset, int16_t value);
|
||||
DLL(int32_t) BS_Memory_PeekShort(void* pMemory, uint32_t offset);
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_PokeInt(void* pMemory, uint32_t offset, int32_t value);
|
||||
DLL_FUNCTION(int32_t) BS_Memory_PeekInt(void* pMemory, uint32_t offset);
|
||||
DLL(void) BS_Memory_PokeInt(void* pMemory, uint32_t offset, int32_t value);
|
||||
DLL(int32_t) BS_Memory_PeekInt(void* pMemory, uint32_t offset);
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_PokeFloat(void* pMemory, uint32_t offset, float_t value);
|
||||
DLL_FUNCTION(float_t) BS_Memory_PeekFloat(void* pMemory, uint32_t offset);
|
||||
DLL(void) BS_Memory_PokeFloat(void* pMemory, uint32_t offset, float_t value);
|
||||
DLL(float_t) BS_Memory_PeekFloat(void* pMemory, uint32_t offset);
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_PokeLong(void* pMemory, uint32_t offset, int64_t* value);
|
||||
DLL_FUNCTION(int64_t*) BS_Memory_PeekLong(void* pMemory, uint32_t offset);
|
||||
DLL(void) BS_Memory_PokeLong(void* pMemory, uint32_t offset, int64_t* value);
|
||||
DLL(int64_t*) BS_Memory_PeekLong(void* pMemory, uint32_t offset);
|
||||
|
||||
DLL_FUNCTION(void) BS_Memory_PokeDouble(void* pMemory, uint32_t offset, double_t* value);
|
||||
DLL_FUNCTION(double_t*) BS_Memory_PeekDouble(void* pMemory, uint32_t offset);
|
||||
DLL(void) BS_Memory_PokeDouble(void* pMemory, uint32_t offset, double_t* value);
|
||||
DLL(double_t*) BS_Memory_PeekDouble(void* pMemory, uint32_t offset);
|
||||
|
||||
Reference in New Issue
Block a user