Codeusa / Borderless-Gaming

Play your favorite games in a borderless window; no more time consuming alt-tabs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[UI/Language] Newline characters (\r\n) appear in confirmation dialogs.

Ephemeronic opened this issue · comments

Requirements

  • This issue doesn't already exist
  • This bug is Not related to compatability with a specific game

Summary

Newlines aren't being properly parsed from the language resources: the \r\n characters appear as normal text.
image
Issue exists in both master & net8. Apologies for not just committing a fix, but I'm relatively unfamiliar with Git/Github's processes / etiquette.

Steps to reproduce

  1. Be using en-US language
  2. Click Tools menu
  3. Click "Mouse Cursor Visibility"
  4. Notice that the formatting is a block of text with \r\n peppered throughout

Technical details

This can be resolved by checking for the newline characters in LanguageManager.Data() (either in an else block in the null/empty check, or after that if is closed):
data = data.Replace(@"\r\n", Environment.NewLine);

image

version

10.0.0.0

This is fixed on Steam