diff options
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/GlobalFunc.h | 65 |
1 files changed, 27 insertions, 38 deletions
diff --git a/src/T2DLL/GlobalFunc.h b/src/T2DLL/GlobalFunc.h index 0b8fd2f..fa658bd 100644 --- a/src/T2DLL/GlobalFunc.h +++ b/src/T2DLL/GlobalFunc.h @@ -17,41 +17,30 @@ struct SUBPLUGINFSENTRY { int spfse_mC; // size? }; -char *AFX_EXT_API strtokEx(char * inStr, const char * inSep, char ** ioLast); -void AFX_EXT_API InsetRect(RECT * ioRect, int inX, int inY); -void AFX_EXT_API SetPt(POINT * outPt, int inX, int inY); -HBITMAP AFX_EXT_API Create256DIBitmap(HDC inDC, int inWidth, int inHeight); -LOGPALETTE *AFX_EXT_API ConvACTPalette(ACTPALETTEENTRY * inPalette); -LOGPALETTE *AFX_EXT_API LoadACTPaletteEntries(HINSTANCE inModule, int inResID); -void AFX_EXT_API FFSetStaticForce(int inX, int inY); -CString AFX_EXT_API GetInstallSource(); -CString AFX_EXT_API GetInstallSourceDrive(); -T2TowerDoc *AFX_EXT_API GetCurrentT2TowerDoc(); -HINSTANCE AFX_EXT_API GetWorldModuleHandle(); -CString AFX_EXT_API GetModuleName(HINSTANCE inModule); -unsigned int AFX_EXT_API TickCount(); -BOOL AFX_EXT_API DispatchOptionEvent(OPTIONEVENTTYPE inEventType, void * inData); -CFile *AFX_EXT_API OpenSubPluginFS(const char * inPath, int inID1, int inID2, SUBPLUGINFSENTRY * outEntry); -void AFX_EXT_API __Rep0(const char * inFileName, int inLineNum, const char * inMessage); -void AFX_EXT_API __Rep1(const char * inFileName, int inLineNum, const char * inMessage, unsigned long inArg1); -void AFX_EXT_API __Rep2(const char * inFileName, int inLineNum, const char * inMessage, unsigned long inArg1, unsigned long inArg2); -void AFX_EXT_API GetTowerDirectory(char * outStr); -CString AFX_EXT_API GetTowerDirectory(); -CString AFX_EXT_API LoadString(HINSTANCE inModule, int inID, int inMaxSize); -CString AFX_EXT_API LoadStringTable(HINSTANCE inModule, int inID1, int inID2); -void AFX_EXT_API CopyPalette(LOGPALETTE *inSrc, LOGPALETTE *inDst, int inSrcIndex, int inDstIndex, int inCount); -void AFX_EXT_API WriteMachineProfileString(const char * inKey, const char * inName, const char * inValue); -void AFX_EXT_API WriteMachineProfileInt(const char * inKey, const char * inName, int inValue); -CString AFX_EXT_API GetMachineProfileString(const char * inKey, const char * inName, const char * inDefaultValue); -int AFX_EXT_API GetMachineProfileInt(const char * inKey, const char * inName, int inDefaultValue); - -extern AFX_EXT_DATA T2SoundPlayer *Sounds; -extern AFX_EXT_DATA CT2App *gT2App; -extern AFX_EXT_DATA int gCommonColor[20]; -extern AFX_EXT_DATA BOOL FFEnable; -extern AFX_EXT_DATA DWORD FFBaseForce; -extern AFX_EXT_DATA IDirectInput *FFgpdi; -extern AFX_EXT_DATA IDirectInputDevice2W *FFJoystick; -extern AFX_EXT_DATA IDirectInputEffect *FFBuild; -extern AFX_EXT_DATA IDirectInputEffect *FFStatic; -extern AFX_EXT_DATA T2TowerDoc *g_TowerDoc; +AFX_API_EXPORT char *strtokEx(char * inStr, const char * inSep, char ** ioLast); +AFX_API_EXPORT void InsetRect(RECT * ioRect, int inX, int inY); +AFX_API_EXPORT void SetPt(POINT * outPt, int inX, int inY); +AFX_API_EXPORT HBITMAP Create256DIBitmap(HDC inDC, int inWidth, int inHeight); +AFX_API_EXPORT LOGPALETTE *ConvACTPalette(ACTPALETTEENTRY * inPalette); +AFX_API_EXPORT LOGPALETTE *LoadACTPaletteEntries(HINSTANCE inModule, int inResID); +AFX_API_EXPORT void FFSetStaticForce(int inX, int inY); +AFX_API_EXPORT CString GetInstallSource(); +AFX_API_EXPORT CString GetInstallSourceDrive(); +AFX_API_EXPORT T2TowerDoc *GetCurrentT2TowerDoc(); +AFX_API_EXPORT HINSTANCE GetWorldModuleHandle(); +AFX_API_EXPORT CString GetModuleName(HINSTANCE inModule); +AFX_API_EXPORT unsigned int TickCount(); +AFX_API_EXPORT BOOL DispatchOptionEvent(OPTIONEVENTTYPE inEventType, void * inData); +AFX_API_EXPORT CFile *OpenSubPluginFS(const char * inPath, int inID1, int inID2, SUBPLUGINFSENTRY * outEntry); +AFX_API_EXPORT void __Rep0(const char * inFileName, int inLineNum, const char * inMessage); +AFX_API_EXPORT void __Rep1(const char * inFileName, int inLineNum, const char * inMessage, unsigned long inArg1); +AFX_API_EXPORT void __Rep2(const char * inFileName, int inLineNum, const char * inMessage, unsigned long inArg1, unsigned long inArg2); +AFX_API_EXPORT void GetTowerDirectory(char * outStr); +AFX_API_EXPORT CString GetTowerDirectory(); +AFX_API_EXPORT CString LoadString(HINSTANCE inModule, int inID, int inMaxSize); +AFX_API_EXPORT CString LoadStringTable(HINSTANCE inModule, int inID1, int inID2); +AFX_API_EXPORT void CopyPalette(LOGPALETTE *inSrc, LOGPALETTE *inDst, int inSrcIndex, int inDstIndex, int inCount); +AFX_API_EXPORT void WriteMachineProfileString(const char * inKey, const char * inName, const char * inValue); +AFX_API_EXPORT void WriteMachineProfileInt(const char * inKey, const char * inName, int inValue); +AFX_API_EXPORT CString GetMachineProfileString(const char * inKey, const char * inName, const char * inDefaultValue); +AFX_API_EXPORT int GetMachineProfileInt(const char * inKey, const char * inName, int inDefaultValue); |