diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-11-06 18:58:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-06 18:58:51 +0100 |
| commit | c931529e7aa5926b8a21a193bf8f80244b3ae888 (patch) | |
| tree | 0e82db8a6173fd3034bd77a459e2a25a247510e1 /Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp | |
| parent | 134833727770a519d3061dbbbb0c8a7f9c1a3ab7 (diff) | |
| parent | ea3e133200cda61f2e87a6e942f89e76b2c6f4fc (diff) | |
Merge pull request #11225 from iwubcode/graphics-mod-textureload-callable
VideoCommon: call texture load graphics mod hook when textures are loaded
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp index e131b4ee1e..1bd288512c 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp +++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp @@ -35,7 +35,10 @@ void PrintAction::OnProjectionAndTexture(GraphicsModActionData::Projection*) INFO_LOG_FMT(VIDEO, "OnProjectionAndTexture Called"); } -void PrintAction::OnTextureLoad() +void PrintAction::OnTextureLoad(GraphicsModActionData::TextureLoad* texture_load) { - INFO_LOG_FMT(VIDEO, "OnTextureLoad Called"); + if (!texture_load) [[unlikely]] + return; + + INFO_LOG_FMT(VIDEO, "OnTextureLoad Called. Texture: {}", texture_load->texture_name); } |
