mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 04:36:01 +08:00
[saco] Fix compilation errors
This commit is contained in:
@ -57,10 +57,6 @@ void CChatWindow::CreateFonts()
|
|||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
|
||||||
{
|
|
||||||
// TODO: CChatWindow::CChatWindow() .text:100680F0
|
|
||||||
}
|
|
||||||
|
|
||||||
void CChatWindow::AddDebugMessage(CHAR * szFormat, ...)
|
void CChatWindow::AddDebugMessage(CHAR * szFormat, ...)
|
||||||
{
|
{
|
||||||
// TODO: CChatWindow::AddDebugMessage .text:100680F0
|
// TODO: CChatWindow::AddDebugMessage .text:100680F0
|
||||||
|
@ -19,12 +19,6 @@ CCmdWindow::CCmdWindow(IDirect3DDevice9 *pD3DDevice)
|
|||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
|
||||||
{
|
|
||||||
// TODO: CCmdWindow::CCmdWindow() .text:100693D0
|
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------------
|
|
||||||
|
|
||||||
void CCmdWindow::AddDefaultCmdProc(CMDPROC cmdDefault)
|
void CCmdWindow::AddDefaultCmdProc(CMDPROC cmdDefault)
|
||||||
{
|
{
|
||||||
m_pDefaultCmd = cmdDefault;
|
m_pDefaultCmd = cmdDefault;
|
||||||
|
@ -1,7 +1,31 @@
|
|||||||
|
|
||||||
#include "fontrender.h"
|
#include "main.h"
|
||||||
|
|
||||||
CFontRender::CFontRender()
|
CFontRender::CFontRender(IDirect3DDevice9* pD3DDevice)
|
||||||
{
|
{
|
||||||
// TODO: CFontRender::CFontRender() .text:1006BAF0
|
// TODO: CFontRender::CFontRender() .text:1006BAF0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CFontRender::DeleteDeviceObjects()
|
||||||
|
{
|
||||||
|
// TODO: CFontRender::DeleteDeviceObjects() .text:1006B180
|
||||||
|
}
|
||||||
|
|
||||||
|
void CFontRender::RestoreDeviceObjects()
|
||||||
|
{
|
||||||
|
// TODO: CFontRender::RestoreDeviceObjects() .text:1006B1C0
|
||||||
|
}
|
||||||
|
|
||||||
|
SIZE CFontRender::MeasureText(char * szString, DWORD dwFormat)
|
||||||
|
{
|
||||||
|
SIZE size = {0,0};
|
||||||
|
|
||||||
|
// TODO: CFontRender::MeasureText .text:1006B200
|
||||||
|
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CFontRender::RenderText(ID3DXSprite * pSprite, char * sz, RECT rect, DWORD dwColor, BOOL bShadowed)
|
||||||
|
{
|
||||||
|
// TODO: CFontRender::RenderText .text:1006B360
|
||||||
|
}
|
||||||
|
@ -7,5 +7,12 @@ private:
|
|||||||
char _gap0[40];
|
char _gap0[40];
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CFontRender();
|
CFontRender(IDirect3DDevice9* pD3DDevice);
|
||||||
|
|
||||||
|
void DeleteDeviceObjects();
|
||||||
|
void RestoreDeviceObjects();
|
||||||
|
|
||||||
|
SIZE MeasureText(char * szString, DWORD dwFormat = 0);
|
||||||
|
|
||||||
|
void RenderText(ID3DXSprite * pSprite, char * sz, RECT rect, DWORD dwColor, BOOL bShadowed = TRUE);
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
#include "audio.h"
|
#include "game.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
#define MAX_PLAYERS 1004
|
#define MAX_PLAYERS 1004
|
||||||
#define MAX_ACTORS 1000
|
#define MAX_ACTORS 1000
|
||||||
|
@ -35,6 +35,8 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
void StartGame();
|
||||||
|
void InitGame();
|
||||||
BOOL IsGameLoaded();
|
BOOL IsGameLoaded();
|
||||||
|
|
||||||
void RequestModel(int iModelID, int iLoadingStream = 2);
|
void RequestModel(int iModelID, int iLoadingStream = 2);
|
||||||
@ -57,9 +59,7 @@ public:
|
|||||||
void ReleaseAnimation(char *szAnimFile);
|
void ReleaseAnimation(char *szAnimFile);
|
||||||
void ToggleRadar(int iToggle);
|
void ToggleRadar(int iToggle);
|
||||||
void DisplayGameText(char *szStr,int iTime,int iSize);
|
void DisplayGameText(char *szStr,int iTime,int iSize);
|
||||||
|
|
||||||
void SetGravity(float fGravity);
|
void SetGravity(float fGravity);
|
||||||
|
|
||||||
void SetWantedLevel(BYTE byteLevel);
|
void SetWantedLevel(BYTE byteLevel);
|
||||||
void SetGameTextCount(WORD wCount);
|
void SetGameTextCount(WORD wCount);
|
||||||
void DrawGangZone(float* fPos, DWORD dwColor);
|
void DrawGangZone(float* fPos, DWORD dwColor);
|
||||||
@ -81,17 +81,21 @@ public:
|
|||||||
|
|
||||||
HWND GetMainWindowHwnd() { return *(HWND *)ADDR_HWND; };
|
HWND GetMainWindowHwnd() { return *(HWND *)ADDR_HWND; };
|
||||||
|
|
||||||
void StartGame();
|
void RestartEverything();
|
||||||
void InitGame();
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
CPlayerPed *FindPlayerPed() {
|
CPlayerPed *FindPlayerPed() {
|
||||||
if(m_pGamePlayer==NULL) m_pGamePlayer = new CPlayerPed();
|
if(m_pGamePlayer==NULL) m_pGamePlayer = new CPlayerPed();
|
||||||
return m_pGamePlayer;
|
return m_pGamePlayer;
|
||||||
};
|
};
|
||||||
|
|
||||||
DWORD GetWeaponInfo(int iWeapon, int iUnk);
|
|
||||||
|
|
||||||
const PCHAR GetWeaponName(int iWeaponID);
|
const PCHAR GetWeaponName(int iWeaponID);
|
||||||
|
|
||||||
|
int GetScreenWidth() { return *(int*)0xC17044; };
|
||||||
|
int GetScreenHeight() { return *(int*)0xC17048; };
|
||||||
|
|
||||||
|
DWORD GetWeaponInfo(int iWeapon, int iUnk);
|
||||||
|
|
||||||
CGame();
|
CGame();
|
||||||
|
|
||||||
@ -109,8 +113,6 @@ public:
|
|||||||
void sub_100A03E0();
|
void sub_100A03E0();
|
||||||
void sub_100A0400();
|
void sub_100A0400();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void sub_100A05D0();
|
void sub_100A05D0();
|
||||||
void sub_100A06F0();
|
void sub_100A06F0();
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
|
|
||||||
|
#define SAFE_DELETE(p) { if (p) { delete (p); (p) = NULL; } }
|
||||||
|
|
||||||
#define MAX_SETTINGS_STRING 256
|
#define MAX_SETTINGS_STRING 256
|
||||||
|
|
||||||
#define GTASA_VERSION_UNKNOWN 0
|
#define GTASA_VERSION_UNKNOWN 0
|
||||||
@ -31,6 +33,7 @@ typedef struct _GAME_SETTINGS {
|
|||||||
|
|
||||||
#include "../raknet/RakClientInterface.h"
|
#include "../raknet/RakClientInterface.h"
|
||||||
#include "../raknet/RakNetworkFactory.h"
|
#include "../raknet/RakNetworkFactory.h"
|
||||||
|
#include "../raknet/PacketEnumerations.h"
|
||||||
#include "../raknet/SAMPRPC.h"
|
#include "../raknet/SAMPRPC.h"
|
||||||
#include "../raknet/GetTime.h"
|
#include "../raknet/GetTime.h"
|
||||||
|
|
||||||
|
@ -33,9 +33,10 @@
|
|||||||
Name="VCCustomBuildTool"/>
|
Name="VCCustomBuildTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
OutputFile="$(OutDir)/samp.dll"
|
|
||||||
AdditionalDependencies="dxguid.lib d3d9.lib d3dx9.lib comctl32.lib wsock32.lib winmm.lib"
|
AdditionalDependencies="dxguid.lib d3d9.lib d3dx9.lib comctl32.lib wsock32.lib winmm.lib"
|
||||||
|
OutputFile="$(OutDir)/samp.dll"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
|
AdditionalLibraryDirectories="d3d9"
|
||||||
GenerateDebugInformation="TRUE"
|
GenerateDebugInformation="TRUE"
|
||||||
ProgramDatabaseFile="$(OutDir)/saco.pdb"
|
ProgramDatabaseFile="$(OutDir)/saco.pdb"
|
||||||
SubSystem="2"
|
SubSystem="2"
|
||||||
@ -83,9 +84,10 @@
|
|||||||
Name="VCCustomBuildTool"/>
|
Name="VCCustomBuildTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
OutputFile="$(OutDir)/samp.dll"
|
|
||||||
AdditionalDependencies="dxguid.lib d3d9.lib d3dx9.lib comctl32.lib wsock32.lib winmm.lib"
|
AdditionalDependencies="dxguid.lib d3d9.lib d3dx9.lib comctl32.lib wsock32.lib winmm.lib"
|
||||||
|
OutputFile="$(OutDir)/samp.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
|
AdditionalLibraryDirectories="d3d9"
|
||||||
GenerateDebugInformation="TRUE"
|
GenerateDebugInformation="TRUE"
|
||||||
SubSystem="2"
|
SubSystem="2"
|
||||||
OptimizeReferences="2"
|
OptimizeReferences="2"
|
||||||
@ -472,12 +474,27 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath="..\raknet\SingleProducerConsumer.h">
|
RelativePath="..\raknet\SingleProducerConsumer.h">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\raknet\SocketLayer.cpp">
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\raknet\SocketLayer.h">
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\raknet\TCPInterface.cpp">
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\raknet\TCPInterface.h">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\raknet\TEABlockEncryptor.cpp">
|
RelativePath="..\raknet\TEABlockEncryptor.cpp">
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\raknet\TEABlockEncryptor.h">
|
RelativePath="..\raknet\TEABlockEncryptor.h">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\raknet\Types.h">
|
||||||
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter
|
<Filter
|
||||||
Name="d3dhook"
|
Name="d3dhook"
|
||||||
@ -640,6 +657,12 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\saco.rc">
|
RelativePath=".\saco.rc">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\spawnscreen.cpp">
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\spawnscreen.h">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\subclass.cpp">
|
RelativePath=".\subclass.cpp">
|
||||||
</File>
|
</File>
|
||||||
|
Reference in New Issue
Block a user