Premake ignore sa specifc files in 3 & vc build

This commit is contained in:
Grinch_ 2022-08-10 00:28:29 +06:00
parent a3ad7146ec
commit a1be45cbf9
13 changed files with 27 additions and 33 deletions

View File

@ -1,6 +1,5 @@
#include "pch.h"
#ifdef GTASA
#include "freecam.h"
#include "freecam_sa.h"
static CVector gTotalMouse;
FreecamMgr& Freecam = *FreecamMgr::Get();
@ -188,4 +187,3 @@ FreecamMgr::FreecamMgr()
}
};
}
#endif

View File

@ -1,5 +1,4 @@
#pragma once
#ifdef GTASA
#include "interface/icheat.hpp"
/*
@ -31,4 +30,3 @@ public:
};
extern FreecamMgr& Freecam;
#endif

View File

@ -1,7 +1,5 @@
#include "pch.h"
#ifdef GTASA
#include "neon.h"
#include "neon_sa.h"
NeonMgr& Neon = *NeonMgr::Get();
@ -271,4 +269,3 @@ void NeonMgr::Remove(CVehicle* pVeh)
{
m_VehNeon.Get(pVeh).m_bNeonInstalled = false;
}
#endif

View File

@ -1,5 +1,4 @@
#pragma once
#ifdef GTASA
#include <extender/VehicleExtender.h>
#include "interface/icheat.hpp"
/*
@ -56,4 +55,3 @@ public:
};
extern NeonMgr& Neon;
#endif

View File

@ -23,8 +23,7 @@
// SOFTWARE.
#include "pch.h"
#ifdef GTASA
#include "paint.h"
#include "paint_sa.h"
#include "utils/util.h"
#include <NodeName.h>
@ -320,4 +319,3 @@ void Paint::ResetNodeTexture(CVehicle* pVeh, std::string node_name)
}
});
}
#endif

View File

@ -23,7 +23,6 @@
// SOFTWARE.
#pragma once
#ifdef GTASA
#include <vector>
class Paint
@ -84,4 +83,3 @@ public:
static void ResetNodeColor(CVehicle* veh, std::string node_name);
static void ResetNodeTexture(CVehicle* pVeh, std::string node_name);
};
#endif

View File

@ -1,7 +1,6 @@
#include "pch.h"
#include "randomcheats.h"
#include "randomcheats_sa.h"
#ifdef GTASA
RandomCheatsMgr& RandomCheats = *RandomCheatsMgr::Get();
void RandomCheatsMgr::Process()
@ -77,4 +76,3 @@ RandomCheatsMgr::RandomCheatsMgr()
}
};
}
#endif

View File

@ -1,5 +1,4 @@
#pragma once
#ifdef GTASA
#include "interface/icheat.hpp"
#include "pch.h"
@ -29,4 +28,3 @@ public:
};
extern RandomCheatsMgr& RandomCheats;
#endif

View File

@ -5,8 +5,8 @@
#include "utils/util.h"
#ifdef GTASA
#include "custom/freecam.h"
#include "custom/randomcheats.h"
#include "custom/freecam_sa.h"
#include "custom/randomcheats_sa.h"
#include <CMessages.h>
#include <CSprite2d.h>
#include <CAERadioTrackManager.h>

View File

@ -3,6 +3,7 @@
#include "menu.h"
#include "utils/widget.h"
#include "utils/util.h"
#include "kiero/minhook/MinHook.h"
#ifdef GTASA
#include "ped.h"
@ -99,6 +100,7 @@ void Player::Init()
m_bAimSkinChanger = gConfig.Get("Features.AimSkinChanger", false);
#endif
// Custom skins setup
std::string path = GAME_PATH((char*)"modloader/");
if (GetModuleHandle("modloader.asi") && std::filesystem::is_directory(path))

View File

@ -4,8 +4,8 @@
class Player
{
private:
static inline bool m_bPlayerRegen;
static inline bool m_bGodMode;
static inline bool m_bPlayerRegen;
static inline bool m_bModloaderInstalled;
struct KeepPosition
{
@ -47,6 +47,7 @@ private:
#endif
public:
Player() = delete;
Player(const Player&) = delete;

View File

@ -10,8 +10,8 @@
#ifdef GTASA
#include <tHandlingData.h>
#include "custom/neon.h"
#include "custom/paint.h"
#include "custom/neon_sa.h"
#include "custom/paint_sa.h"
#endif
void Vehicle::Init()

View File

@ -50,6 +50,14 @@ function createProject(projectID)
"../src/**.cpp"
}
if (upperID ~= "SA") then
removefiles {
"../src/**_sa.c",
"../src/**_sa.hpp",
"../src/**_sa.cpp"
}
end
if upperID == "III" then
upperID = "3"