Skip to content

Hearts of Iron IV support#397

Open
CommandGenius wants to merge 11 commits into
clshortfuse:mainfrom
CommandGenius:main
Open

Hearts of Iron IV support#397
CommandGenius wants to merge 11 commits into
clshortfuse:mainfrom
CommandGenius:main

Conversation

@CommandGenius

Copy link
Copy Markdown
Contributor

requires RenoDXHelper

@CommandGenius

Copy link
Copy Markdown
Contributor Author

I gotta remove the debug stuff first

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Hearts of Iron IV (HOI4) game module to the RenoDX codebase, including shader injection and a small integration point to drive the external “RenoDXHelper” effect based on the UI nits setting.

Changes:

  • Added HOI4 add-on entry point (addon.cpp) wiring up shader + swapchain mods and enabling RenoDXHelper integration.
  • Introduced HOI4 shader injection definitions (shared.h) and a new pixel shader replacement implementing RenoDX tonemapping/intermediate passes.
  • Extended the shared settings overlay/utilities to enable/disable RenoDXHelper and push RENODX_UI_NITS when presets/settings change.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/utils/settings.hpp Adds RenoDXHelper update logic and an event hook to apply the helper once and on relevant setting changes.
src/games/hoi4/shared.h Defines HOI4 shader injection constant buffer layout and maps it into RenoDX shader includes.
src/games/hoi4/output_0xB99B4F78.ps_5_0.hlsl Adds the HOI4 pixel shader replacement with RenoDX tonemap + intermediate rendering integration.
src/games/hoi4/addon.cpp New HOI4 module wiring for shader/swapchain mods and settings, including enabling RenoDXHelper usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/utils/settings.hpp Outdated
.format = "%.2f", \
}

bool useRenoDXHelper = false;
Comment thread src/utils/settings.hpp
Comment thread src/games/hoi4/shared.h Outdated
Comment on lines +1 to +2
#ifndef SRC_TEMPLATE_SHARED_H_
#define SRC_TEMPLATE_SHARED_H_
Comment thread src/games/hoi4/addon.cpp Outdated
} // namespace

extern "C" __declspec(dllexport) constexpr const char* NAME = "RenoDX";
extern "C" __declspec(dllexport) constexpr const char* DESCRIPTION = "RenoDX (Generic)";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants