Skip to content

#AllowImGuiIni#41

Open
zachmetcalf wants to merge 3 commits intoVesCodes:Mainfrom
zachmetcalf:Main
Open

#AllowImGuiIni#41
zachmetcalf wants to merge 3 commits intoVesCodes:Mainfrom
zachmetcalf:Main

Conversation

@zachmetcalf
Copy link

When DISABLE_NONUFS_INI_WHEN_COOKED is defined, FPakPlatformFile::IsNonPakFilenameAllowed rejects all free .ini files except for GameUserSettings.ini via a relatively hacky code path. ImGui.ini is effectively ImGui's equivalent, so we can piggyback off of this, and read our file in packaged builds, if we name it ImGuiGameUserSettings.ini

It does cause a breaking change to the file in Editor (I could go either way on that). But... if you don't name it this in packaged builds, it can't follow the allowlist codepath. So you can't have any imgui settings in builds that disable non ufs inis

	// #AllowImGuiIni
	// When DISABLE_NONUFS_INI_WHEN_COOKED is defined, FPakPlatformFile::IsNonPakFilenameAllowed rejects all free .ini files except for GameUserSettings.ini via a relatively hacky code path
	// ImGui.ini is effectively ImGui's equivalent, so we can piggyback off of this, and read our file in packaged builds, if we name it ImGuiGameUserSettings.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant