-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Please run `git config --global core.autocrlf True` if you're on Windows `dos2unix --force $(git ls-files --eol | grep "^i/crlf" | cut -f2)`was run to convert line endings
- Loading branch information
Showing
55 changed files
with
74,277 additions
and
74,277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
#include <windows.h> | ||
#include <string.h> | ||
#include <stdio.h> | ||
|
||
struct NWN2MemoryHeader | ||
{ | ||
DWORD size; | ||
DWORD unk2; | ||
DWORD NWN2Heap; | ||
DWORD unk4; //0 | ||
}; | ||
|
||
//void *NWN2MemoryAllocate(ulong size); | ||
|
||
/* | ||
class NWN2MemoryMgr | ||
{ | ||
public: | ||
void *(*Allocate)(UINT size); | ||
};*/ | ||
/* | ||
void *(*NWN2Heap_Allocate)(UINT size); | ||
void *(*NWN2Heap_Allocate)(UINT size);*/ | ||
class NWN2_Heap | ||
{ | ||
public: | ||
__declspec( dllimport ) void * __thiscall Allocate(unsigned int); | ||
}; | ||
|
||
class NWN2_HeapMgr | ||
{ | ||
public: | ||
__declspec( dllimport ) static NWN2_HeapMgr * __cdecl NWN2_HeapMgr::Instance(void); | ||
__declspec( dllimport ) NWN2_Heap * __thiscall NWN2_HeapMgr::GetDefaultHeap(void); | ||
}; | ||
|
||
#include <windows.h> | ||
#include <string.h> | ||
#include <stdio.h> | ||
|
||
struct NWN2MemoryHeader | ||
{ | ||
DWORD size; | ||
DWORD unk2; | ||
DWORD NWN2Heap; | ||
DWORD unk4; //0 | ||
}; | ||
|
||
//void *NWN2MemoryAllocate(ulong size); | ||
|
||
/* | ||
class NWN2MemoryMgr | ||
{ | ||
public: | ||
void *(*Allocate)(UINT size); | ||
};*/ | ||
/* | ||
void *(*NWN2Heap_Allocate)(UINT size); | ||
void *(*NWN2Heap_Allocate)(UINT size);*/ | ||
class NWN2_Heap | ||
{ | ||
public: | ||
__declspec( dllimport ) void * __thiscall Allocate(unsigned int); | ||
}; | ||
|
||
class NWN2_HeapMgr | ||
{ | ||
public: | ||
__declspec( dllimport ) static NWN2_HeapMgr * __cdecl NWN2_HeapMgr::Instance(void); | ||
__declspec( dllimport ) NWN2_Heap * __thiscall NWN2_HeapMgr::GetDefaultHeap(void); | ||
}; | ||
|
||
//__declspec( dllimport ) void * __thiscall NWN2_Heap::Allocate(unsigned int); |
Oops, something went wrong.