Relocate SetAppCursor to legoutil (#144)

This commit is contained in:
Christian Semmler 2023-09-29 12:42:15 -04:00 committed by GitHub
parent 44c3ae478b
commit dc869c441c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 10 deletions

View file

@ -1,5 +1,6 @@
#include "legoutil.h"
#include "mxomni.h"
#include "mxtypes.h"
#include <string.h>
@ -101,3 +102,9 @@ void ConvertHSVToRGB(float h, float s, float v, float *r_out, float *b_out, floa
return;
}
}
// OFFSET: LEGO1 0x1003ef40
void SetAppCursor(WPARAM p_wparam)
{
PostMessageA(MxOmni::GetInstance()->GetWindowHandle(), 0x5400, p_wparam, 0);
}

View file

@ -1,6 +1,8 @@
#ifndef LEGOUTIL_H
#define LEGOUTIL_H
#include <windows.h>
#include "extra.h"
template <class T>
@ -23,5 +25,6 @@ inline T Max(T p_t1, T p_t2)
ExtraActionType MatchActionString(const char *);
void ConvertHSVToRGB(float r, float g, float b, float* out_r, float* out_g, float* out_b);
void SetAppCursor(WPARAM p_wparam);
#endif // LEGOUTIL_H

View file

@ -288,10 +288,4 @@ MxMusicManager* MusicManager()
MxEventManager* EventManager()
{
return MxOmni::GetInstance()->GetEventManager();
}
// OFFSET: LEGO1 0x1003ef40
void SetAppCursor(WPARAM p_wparam)
{
PostMessageA(MxOmni::GetInstance()->GetWindowHandle(), 0x5400, p_wparam, 0);
}
}

View file

@ -92,6 +92,4 @@ __declspec(dllexport) MxNotificationManager * NotificationManager();
MxVideoManager * MVideoManager();
MxAtomIdCounterSet* AtomIdCounterSet();
void SetAppCursor(WPARAM p_wparam);
#endif // MXOMNI_H

View file

@ -1,4 +1,5 @@
#include "mxtransitionmanager.h"
#include "legoutil.h"
#include "legovideomanager.h"
DECOMP_SIZE_ASSERT(MxTransitionManager, 0x900);

View file

@ -5,7 +5,6 @@
#include "mxvideopresenter.h"
#include "legoomni.h"
// VTABLE 0x100d7ea0
class MxTransitionManager : public MxCore
{