Skip to content

Add borderless window to ac2 (uplay edition)#21

Open
kirides wants to merge 2 commits intoSergeanur:masterfrom
kirides:feat/borderless_window
Open

Add borderless window to ac2 (uplay edition)#21
kirides wants to merge 2 commits intoSergeanur:masterfrom
kirides:feat/borderless_window

Conversation

@kirides
Copy link
Copy Markdown

@kirides kirides commented Nov 13, 2024

This lets us play the game in borderless window mode (by default) and can be toggled off using BorderlessWindow=0 option in ini. It opens the way for a proper fix for #13

It works by hooking the call to the initialization method that creates the IDirect3DDevice9.

It sets the global IsFullscreen flag to 0 and then it proceeds to grab primary screen metrics, remove borders from the window and resize the game window.

attached is a pre-built version of the patch with the feature added.

EaglePatch_borderlesswindow_ac2_uplay.zip

It is missing the addresses for AC1 and the retail version of AC2 as i don't own those and dont like playing AC1

Also, a neat(?) side effect of the borderless window is, that DXVK now doesn't crash the game anymore (tested with DXVK 2.5 on windows 11)

@kirides kirides force-pushed the feat/borderless_window branch from 990708e to 9089a33 Compare November 13, 2024 17:50
@FrostMoonEcho
Copy link
Copy Markdown

Thank you for this PR! It looks like this repo is not maintained anymore. Could you please share the final version of your asi file? It will definetely help me and many others people

@kirides
Copy link
Copy Markdown
Author

kirides commented Feb 17, 2025

@FrostMoonEcho i don't have AC 1 and AC2 retail copies, the only thing i could implement because of this was the AC 2 uplay/ubisoft connect variant, and that one is linked in the opening comment

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.

2 participants