From f4121ea14f7d40ecb9529f54201d4513e3f745de Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 2 Nov 2024 22:38:54 +0800 Subject: [PATCH] [saco] Implement/match `GetTaskNameFromTask(...)` --- saco/game/util.cpp | 7 +++++++ saco/game/util.h | 1 + 2 files changed, 8 insertions(+) diff --git a/saco/game/util.cpp b/saco/game/util.cpp index b12d83e..6f0f758 100644 --- a/saco/game/util.cpp +++ b/saco/game/util.cpp @@ -1396,6 +1396,13 @@ int GetTaskTypeFromTask(DWORD *task) //----------------------------------------------------------- +const char* GetTaskNameFromTask(DWORD *task) +{ + return "None"; +} + +//----------------------------------------------------------- + BOOL __stdcall GameIsEntityOnScreen(DWORD * pdwEnt) { BOOL bResult = FALSE; diff --git a/saco/game/util.h b/saco/game/util.h index 51fbb47..a6717df 100644 --- a/saco/game/util.h +++ b/saco/game/util.h @@ -75,4 +75,5 @@ UINT GetVehicleSubtypeFromVehiclePtr(VEHICLE_TYPE *pVehicle); DWORD * GetNextTaskFromTask(DWORD *task); int GetTaskTypeFromTask(DWORD *task); +const char* GetTaskNameFromTask(DWORD *task);