This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/BigBaseV2/src/hooks/misc/get_label_text.cpp

14 lines
348 B
C++
Raw Normal View History

2022-07-29 14:32:02 +02:00
#include "hooking.hpp"
#include "services/custom_text/custom_text_service.hpp"
namespace big
{
const char* hooks::get_label_text(void* unk, const char* label)
{
if (const auto text = g_custom_text_service->get_text(label); text)
return text;
return g_hooking->m_get_label_text.get_original<decltype(&get_label_text)>()(unk, label);
}
}