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();
@ -187,5 +186,4 @@ FreecamMgr::FreecamMgr()
Process();
}
};
}
#endif
}

View File

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

View File

@ -1,7 +1,5 @@
#include "pch.h"
#ifdef GTASA
#include "neon.h"
#include "neon_sa.h"
NeonMgr& Neon = *NeonMgr::Get();
@ -270,5 +268,4 @@ void NeonMgr::Install(CVehicle* pVeh, int r, int g, int b)
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"
/*
@ -55,5 +54,4 @@ public:
void Remove(CVehicle* veh);
};
extern NeonMgr& Neon;
#endif
extern NeonMgr& Neon;

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>
@ -319,5 +318,4 @@ void Paint::ResetNodeTexture(CVehicle* pVeh, std::string node_name)
}, nullptr);
}
});
}
#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()
@ -76,5 +75,4 @@ RandomCheatsMgr::RandomCheatsMgr()
Process();
}
};
}
#endif
}

View File

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

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

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