mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Rename to HookableEvent. Because naming conflict
This commit is contained in:
@ -4,19 +4,19 @@
|
||||
#pragma once
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/EventHook.h"
|
||||
#include "Common/HookableEvent.h"
|
||||
|
||||
// Called when certain video config setting are changed
|
||||
using ConfigChangedEvent = Common::Event<"ConfigChanged", u32>;
|
||||
using ConfigChangedEvent = Common::HookableEvent<"ConfigChanged", u32>;
|
||||
|
||||
// An event called just before the first draw call of a frame
|
||||
using BeforeFrameEvent = Common::Event<"BeforeFrame">;
|
||||
using BeforeFrameEvent = Common::HookableEvent<"BeforeFrame">;
|
||||
|
||||
// An event called after the frame XFB copy begins processing on the host GPU.
|
||||
// Useful for "once per frame" usecases.
|
||||
// Note: In a few rare cases, games do multiple XFB copies per frame and join them while presenting.
|
||||
// If this matters to your usecase, you should use BeforePresent instead.
|
||||
using AfterFrameEvent = Common::Event<"AfterFrame">;
|
||||
using AfterFrameEvent = Common::HookableEvent<"AfterFrame">;
|
||||
|
||||
struct PresentInfo
|
||||
{
|
||||
@ -76,8 +76,8 @@ struct PresentInfo
|
||||
// frame.
|
||||
//
|
||||
// frame_count: The number of frames
|
||||
using BeforePresentEvent = Common::Event<"BeforePresent", PresentInfo&>;
|
||||
using BeforePresentEvent = Common::HookableEvent<"BeforePresent", PresentInfo&>;
|
||||
|
||||
// An event that is triggered after a frame is presented.
|
||||
// The exact timing of this event depends on backend/driver support.
|
||||
using AfterPresentEvent = Common::Event<"AfterPresent", PresentInfo&>;
|
||||
using AfterPresentEvent = Common::HookableEvent<"AfterPresent", PresentInfo&>;
|
||||
|
Reference in New Issue
Block a user