Commit 7a34b8e7 authored by SR_team's avatar SR_team 💬

Remove cursorType, because it without alternatives

parent 6dd68cfd
......@@ -38,9 +38,6 @@
#include "sys/SREvents.h"
#include "sys/SRKeys.h"
/// Возможные типы курсора
enum eCursorType { ByImGui };
struct stGlobalHandles {
union {
/// хендл библиотеки d3d9.dll
......@@ -104,8 +101,6 @@ struct stGlobalPVars {
extern std::string PROJECT_NAME;
/// Тип проекта: dll/asi
extern std::string PROJECT_TYPE;
/// Тип курсора используемого плагином
extern eCursorType cursorType;
/// Содержит указатели на базовые хендлы
extern stGlobalHandles g_handle;
......
......@@ -33,10 +33,7 @@ void SRCursor::showCursor() {
memsafe::write<byte>( (void *)0x6194A0, 0xC3 );
// show cursor
_localState = true;
if ( cursorType != eCursorType::ByImGui )
SetCursor( LoadCursor( nullptr, _cursor ) );
else if ( cursorType == eCursorType::ByImGui )
ImGui::GetIO().MouseDrawCursor = true;
ImGui::GetIO().MouseDrawCursor = true;
onShow();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment