CheatMenuSA/src/util.h

30 lines
726 B
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
2021-07-21 13:31:02 -04:00
#include "tchar.h"
#include "pdh.h"
static PDH_HQUERY cpuQuery;
static PDH_HCOUNTER cpuTotal;
static ULARGE_INTEGER lastCPU, lastSysCPU, lastUserCPU;
static int numProcessors;
static HANDLE self;
2020-12-02 16:19:16 -05:00
class Util
{
public:
2021-08-01 21:41:48 -04:00
2021-08-06 11:53:18 -04:00
#ifdef GTASA
2020-12-02 16:19:16 -05:00
static void ClearCharTasksVehCheck(CPed* ped);
static int GetLargestGangInZone();
2021-08-01 21:41:48 -04:00
static RwTexture* LoadTextureFromMemory(char* data, unsigned int size);
2021-08-06 11:53:18 -04:00
#endif
2021-08-09 14:26:49 -04:00
static CPed* GetClosestPed();
static CVehicle* GetClosestVehicle();
2021-06-18 12:49:11 -04:00
static std::string GetLocationName(CVector* pos);
2021-08-01 21:41:48 -04:00
static bool IsOnMission();
2021-08-09 14:26:49 -04:00
static bool IsOnCutscene();
2021-06-18 12:49:11 -04:00
static void RainbowValues(int& r, int& g, int& b, float speed);
static void GetCPUUsageInit();
static double GetCurrentCPUUsage();
2020-12-02 16:19:16 -05:00
};