Skip to content

Commit

Permalink
Update APIs (NWNX: 84911b8e, NWN: 8193.36-7).
Browse files Browse the repository at this point in the history
  • Loading branch information
jhett12321 committed Dec 8, 2023
1 parent 464ce2f commit 6dc4db0
Show file tree
Hide file tree
Showing 87 changed files with 10,780 additions and 9,583 deletions.
39 changes: 0 additions & 39 deletions src/main/API/CAppManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,39 +200,6 @@ public int m_bWasPaused {

}

public int m_bDigitalDistributionModule {
set {
NWNXLibPINVOKE.CAppManager_m_bDigitalDistributionModule_set(swigCPtr, value);
}
get {
int retVal = NWNXLibPINVOKE.CAppManager_m_bDigitalDistributionModule_get(swigCPtr);
return retVal;
}

}

public byte* m_pDDCipher {
set {
NWNXLibPINVOKE.CAppManager_m_pDDCipher_set(swigCPtr, value);
}
get {
byte* retVal = NWNXLibPINVOKE.CAppManager_m_pDDCipher_get(swigCPtr);
return retVal;
}

}

public uint m_nDDOffset {
set {
NWNXLibPINVOKE.CAppManager_m_nDDOffset_set(swigCPtr, value);
}
get {
uint retVal = NWNXLibPINVOKE.CAppManager_m_nDDOffset_get(swigCPtr);
return retVal;
}

}

public uint m_nPlayerTimeout {
set {
NWNXLibPINVOKE.CAppManager_m_nPlayerTimeout_set(swigCPtr, value);
Expand Down Expand Up @@ -298,12 +265,6 @@ public void DestroyScriptDebuggerPopup() {
NWNXLibPINVOKE.CAppManager_DestroyScriptDebuggerPopup(swigCPtr);
}

public int SetDDCipherForModule(CExoString moduleName) {
int retVal = NWNXLibPINVOKE.CAppManager_SetDDCipherForModule(swigCPtr, CExoString.getCPtr(moduleName));
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public byte ReadProgressFromINI(byte m_nCampaign) {
byte retVal = NWNXLibPINVOKE.CAppManager_ReadProgressFromINI(swigCPtr, m_nCampaign);
return retVal;
Expand Down
6 changes: 3 additions & 3 deletions src/main/API/CBaseExoApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ public virtual int GetIsMultiPlayer() {
return retVal;
}

public virtual int GetCDKeys(SWIGTYPE_p_p_CExoArrayListT_CExoString_t lstKeys) {
int retVal = NWNXLibPINVOKE.CBaseExoApp_GetCDKeys(swigCPtr, SWIGTYPE_p_p_CExoArrayListT_CExoString_t.getCPtr(lstKeys));
return retVal;
public virtual CExoString GetCDKey() {
CExoString ret = new CExoString(NWNXLibPINVOKE.CBaseExoApp_GetCDKey(swigCPtr), true);
return ret;
}

public virtual void SetWeGotDisconnected() {
Expand Down
6 changes: 6 additions & 0 deletions src/main/API/CERFFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,12 @@ public int WriteResource(byte* szResName, ushort rtResType, CRes pRes) {
return retVal;
}

public int WriteResource(byte* szResName, ushort rtResType, SWIGTYPE_p_std__shared_ptrT_DataView_t pData) {
int retVal = NWNXLibPINVOKE.CERFFile_WriteResource__SWIG_2(swigCPtr, szResName, rtResType, SWIGTYPE_p_std__shared_ptrT_DataView_t.getCPtr(pData));
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public int Finish() {
int retVal = NWNXLibPINVOKE.CERFFile_Finish(swigCPtr);
return retVal;
Expand Down
20 changes: 0 additions & 20 deletions src/main/API/CExoDebug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,26 +135,6 @@ public void FlushLogFile() {
NWNXLibPINVOKE.CExoDebug_FlushLogFile(swigCPtr);
}

public uint GetCurrentAllocatedMemory() {
uint retVal = NWNXLibPINVOKE.CExoDebug_GetCurrentAllocatedMemory(swigCPtr);
return retVal;
}

public uint GetMaxAllocatedMemory() {
uint retVal = NWNXLibPINVOKE.CExoDebug_GetMaxAllocatedMemory(swigCPtr);
return retVal;
}

public uint GetTotalMemoryAllocations() {
uint retVal = NWNXLibPINVOKE.CExoDebug_GetTotalMemoryAllocations(swigCPtr);
return retVal;
}

public uint GetCurrentMemoryAllocations() {
uint retVal = NWNXLibPINVOKE.CExoDebug_GetCurrentMemoryAllocations(swigCPtr);
return retVal;
}

public void OpenLogFiles(CExoString sExecutableName, int nMaxLogSize) {
NWNXLibPINVOKE.CExoDebug_OpenLogFiles__SWIG_0(swigCPtr, CExoString.getCPtr(sExecutableName), nMaxLogSize);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
Expand Down
7 changes: 1 addition & 6 deletions src/main/API/CExoEncapsulatedFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,7 @@ public override int Initialize() {
}

public override int OpenFile() {
int retVal = NWNXLibPINVOKE.CExoEncapsulatedFile_OpenFile__SWIG_0(swigCPtr);
return retVal;
}

public override int OpenFile(byte* pCipher) {
int retVal = NWNXLibPINVOKE.CExoEncapsulatedFile_OpenFile__SWIG_1(swigCPtr, pCipher);
int retVal = NWNXLibPINVOKE.CExoEncapsulatedFile_OpenFile(swigCPtr);
return retVal;
}

Expand Down
31 changes: 3 additions & 28 deletions src/main/API/CExoKeyTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,21 +289,6 @@ public int AddEncapsulatedContents() {
return retVal;
}

public int AddResourceImageContents(int bPopulateTable, byte* pCipher) {
int retVal = NWNXLibPINVOKE.CExoKeyTable_AddResourceImageContents__SWIG_0(swigCPtr, bPopulateTable, pCipher);
return retVal;
}

public int AddResourceImageContents(int bPopulateTable) {
int retVal = NWNXLibPINVOKE.CExoKeyTable_AddResourceImageContents__SWIG_1(swigCPtr, bPopulateTable);
return retVal;
}

public int AddResourceImageContents() {
int retVal = NWNXLibPINVOKE.CExoKeyTable_AddResourceImageContents__SWIG_2(swigCPtr);
return retVal;
}

public int AddManifestContents(int bPopulateTable) {
int retVal = NWNXLibPINVOKE.CExoKeyTable_AddManifestContents__SWIG_0(swigCPtr, bPopulateTable);
return retVal;
Expand Down Expand Up @@ -343,20 +328,14 @@ public CKeyTableEntry AllocateTable(uint nTableEntries) {
return ret;
}

public int BuildNewTable(uint nTableType, CExoString sName, uint nTableID, int bPopulateTable, byte* pCipher) {
int retVal = NWNXLibPINVOKE.CExoKeyTable_BuildNewTable__SWIG_0(swigCPtr, nTableType, CExoString.getCPtr(sName), nTableID, bPopulateTable, pCipher);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public int BuildNewTable(uint nTableType, CExoString sName, uint nTableID, int bPopulateTable) {
int retVal = NWNXLibPINVOKE.CExoKeyTable_BuildNewTable__SWIG_1(swigCPtr, nTableType, CExoString.getCPtr(sName), nTableID, bPopulateTable);
int retVal = NWNXLibPINVOKE.CExoKeyTable_BuildNewTable__SWIG_0(swigCPtr, nTableType, CExoString.getCPtr(sName), nTableID, bPopulateTable);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public int BuildNewTable(uint nTableType, CExoString sName, uint nTableID) {
int retVal = NWNXLibPINVOKE.CExoKeyTable_BuildNewTable__SWIG_2(swigCPtr, nTableType, CExoString.getCPtr(sName), nTableID);
int retVal = NWNXLibPINVOKE.CExoKeyTable_BuildNewTable__SWIG_1(swigCPtr, nTableType, CExoString.getCPtr(sName), nTableID);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}
Expand Down Expand Up @@ -425,12 +404,8 @@ public int LocateBifFile(CExoString sFileName) {
return retVal;
}

public void RebuildTable(byte* pCipher) {
NWNXLibPINVOKE.CExoKeyTable_RebuildTable__SWIG_0(swigCPtr, pCipher);
}

public void RebuildTable() {
NWNXLibPINVOKE.CExoKeyTable_RebuildTable__SWIG_1(swigCPtr);
NWNXLibPINVOKE.CExoKeyTable_RebuildTable(swigCPtr);
}

public int GetEntryCount(int bCountStatic) {
Expand Down
16 changes: 1 addition & 15 deletions src/main/API/CExoPackedFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,6 @@ public virtual void DeleteRefCount() {
NWNXLibPINVOKE.CExoPackedFile_DeleteRefCount(swigCPtr);
}

public virtual void DeleteAsyncRefCount() {
NWNXLibPINVOKE.CExoPackedFile_DeleteAsyncRefCount(swigCPtr);
}

public virtual CExoFile GetFile() {
global::System.IntPtr cPtr = NWNXLibPINVOKE.CExoPackedFile_GetFile(swigCPtr);
CExoFile ret = (cPtr == global::System.IntPtr.Zero) ? null : new CExoFile(cPtr, false);
Expand All @@ -205,12 +201,7 @@ public virtual int Initialize() {
}

public virtual int OpenFile() {
int retVal = NWNXLibPINVOKE.CExoPackedFile_OpenFile__SWIG_0(swigCPtr);
return retVal;
}

public virtual int OpenFile(byte* pCipher) {
int retVal = NWNXLibPINVOKE.CExoPackedFile_OpenFile__SWIG_1(swigCPtr, pCipher);
int retVal = NWNXLibPINVOKE.CExoPackedFile_OpenFile(swigCPtr);
return retVal;
}

Expand All @@ -220,11 +211,6 @@ public virtual uint ReadResource(RESID nID, void* pData, uint nSize, uint nDataO
return retVal;
}

public virtual void ReadResourceAsync(RESID nID, void* pData, uint nSize, uint nDataOffset) {
NWNXLibPINVOKE.CExoPackedFile_ReadResourceAsync(swigCPtr, RESID.getCPtr(nID), (global::System.IntPtr)pData, nSize, nDataOffset);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
}

public virtual int LoadHeader(byte* expectOid, byte nType) {
int retVal = NWNXLibPINVOKE.CExoPackedFile_LoadHeader__SWIG_0(swigCPtr, expectOid, nType);
return retVal;
Expand Down
7 changes: 1 addition & 6 deletions src/main/API/CExoResFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,7 @@ public override int Initialize() {
}

public override int OpenFile() {
int retVal = NWNXLibPINVOKE.CExoResFile_OpenFile__SWIG_0(swigCPtr);
return retVal;
}

public override int OpenFile(byte* pCipher) {
int retVal = NWNXLibPINVOKE.CExoResFile_OpenFile__SWIG_1(swigCPtr, pCipher);
int retVal = NWNXLibPINVOKE.CExoResFile_OpenFile(swigCPtr);
return retVal;
}

Expand Down
46 changes: 3 additions & 43 deletions src/main/API/CExoResMan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,24 +278,6 @@ public int AddEncapsulatedResourceFile(CExoString sName, uint nPriority) {
return retVal;
}

public int AddResourceImageFile(CExoString sName, byte* pCipher, uint nPriority) {
int retVal = NWNXLibPINVOKE.CExoResMan_AddResourceImageFile__SWIG_0(swigCPtr, CExoString.getCPtr(sName), pCipher, nPriority);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public int AddResourceImageFile(CExoString sName, byte* pCipher) {
int retVal = NWNXLibPINVOKE.CExoResMan_AddResourceImageFile__SWIG_1(swigCPtr, CExoString.getCPtr(sName), pCipher);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public int AddResourceImageFile(CExoString sName) {
int retVal = NWNXLibPINVOKE.CExoResMan_AddResourceImageFile__SWIG_2(swigCPtr, CExoString.getCPtr(sName));
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public int AddFixedKeyTableFile(CExoString sName, uint nPriority) {
int retVal = NWNXLibPINVOKE.CExoResMan_AddFixedKeyTableFile__SWIG_0(swigCPtr, CExoString.getCPtr(sName), nPriority);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
Expand Down Expand Up @@ -420,12 +402,6 @@ public int RemoveEncapsulatedResourceFile(CExoString sName) {
return retVal;
}

public int RemoveResourceImageFile(CExoString sName) {
int retVal = NWNXLibPINVOKE.CExoResMan_RemoveResourceImageFile(swigCPtr, CExoString.getCPtr(sName));
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public int RemoveFixedKeyTableFile(CExoString sName) {
int retVal = NWNXLibPINVOKE.CExoResMan_RemoveFixedKeyTableFile(swigCPtr, CExoString.getCPtr(sName));
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
Expand Down Expand Up @@ -608,20 +584,14 @@ public void RemoveFromToBeFreedList(CRes pRes) {
NWNXLibPINVOKE.CExoResMan_RemoveFromToBeFreedList(swigCPtr, CRes.getCPtr(pRes));
}

public int AddKeyTable(uint nPriority, CExoString sName, uint nTableType, byte* pCipher, int bDetectChanges) {
int retVal = NWNXLibPINVOKE.CExoResMan_AddKeyTable__SWIG_0(swigCPtr, nPriority, CExoString.getCPtr(sName), nTableType, pCipher, bDetectChanges);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public int AddKeyTable(uint nPriority, CExoString sName, uint nTableType, byte* pCipher) {
int retVal = NWNXLibPINVOKE.CExoResMan_AddKeyTable__SWIG_1(swigCPtr, nPriority, CExoString.getCPtr(sName), nTableType, pCipher);
public int AddKeyTable(uint nPriority, CExoString sName, uint nTableType, int bDetectChanges) {
int retVal = NWNXLibPINVOKE.CExoResMan_AddKeyTable__SWIG_0(swigCPtr, nPriority, CExoString.getCPtr(sName), nTableType, bDetectChanges);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public int AddKeyTable(uint nPriority, CExoString sName, uint nTableType) {
int retVal = NWNXLibPINVOKE.CExoResMan_AddKeyTable__SWIG_2(swigCPtr, nPriority, CExoString.getCPtr(sName), nTableType);
int retVal = NWNXLibPINVOKE.CExoResMan_AddKeyTable__SWIG_1(swigCPtr, nPriority, CExoString.getCPtr(sName), nTableType);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}
Expand Down Expand Up @@ -711,11 +681,6 @@ public int ServiceFromResFile(CRes pRes) {
return retVal;
}

public int ServiceFromImage(CRes pRes) {
int retVal = NWNXLibPINVOKE.CExoResMan_ServiceFromImage(swigCPtr, CRes.getCPtr(pRes));
return retVal;
}

public int ServiceFromManifest(CRes pRes) {
int retVal = NWNXLibPINVOKE.CExoResMan_ServiceFromManifest(swigCPtr, CRes.getCPtr(pRes));
return retVal;
Expand All @@ -742,11 +707,6 @@ public int ServiceFromResFileRaw(CRes pRes, int nSize, byte* pBuffer) {
return retVal;
}

public int ServiceFromImageRaw(CRes pRes, int nSize, byte* pBuffer) {
int retVal = NWNXLibPINVOKE.CExoResMan_ServiceFromImageRaw(swigCPtr, CRes.getCPtr(pRes), nSize, pBuffer);
return retVal;
}

public CResRef GetOverride(CResRef name, ushort restype) {
CResRef ret = new CResRef(NWNXLibPINVOKE.CExoResMan_GetOverride(swigCPtr, CResRef.getCPtr(name), restype), true);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
Expand Down
Loading

0 comments on commit 6dc4db0

Please sign in to comment.