Skip to content

Commit

Permalink
Set all Bethesda games to use an INI file without UTF-8 Byte Order Ma…
Browse files Browse the repository at this point in the history
…rker
  • Loading branch information
Kaldaien committed Sep 9, 2023
1 parent 0ee7870 commit 759766f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
23.9.8.2
23.9.9
======
+ Added support for encoding UTF-8 INI files without a Byte-Order-Marker
+ When loading existing INIs, UTF-8 Byte-Order-Marker beahvior is preserved

23.9.8.2
========
+ Only reallocate D3D12 heaps too small to store the remastered SwapChain for Starfield

Expand All @@ -19,7 +24,8 @@
+ Fixed a few visual glitches in Starfield HDR remastering, by restricting the feature
to render-passes only and ignoring compute-only resources.

The resolution restrictions are not necessary when ignoring compute, and have been removed.
The resolution restrictions are not necessary when ignoring compute,
and have been removed.

23.9.7
======
Expand Down
6 changes: 3 additions & 3 deletions include/SpecialK/DLL_VERSION.H
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#define SK_YEAR 23
#define SK_MONTH 9
#define SK_DATE 8
#define SK_REV_N 2
#define SK_REV 2
#define SK_DATE 9
#define SK_REV_N 0
#define SK_REV 0

#ifndef _A2
#define _A2(a) #a
Expand Down
4 changes: 3 additions & 1 deletion src/plugins/bethesda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <SpecialK/stdafx.h>
#include <string>

static iSK_INI* game_ini = nullptr;
static iSK_INI* game_ini = nullptr;
static iSK_INI* gameCustom_ini = nullptr;

#ifdef _WIN64
Expand Down Expand Up @@ -165,6 +165,8 @@ SK_BGS_InitPlugin(void)
gameCustom_ini = SK_CreateINI((SK_GetDocumentsDir() + LR"(\My Games\Starfield\StarfieldCustom.ini)").c_str());
}

game_ini->set_encoding (iSK_INI::INI_UTF8);
gameCustom_ini->set_encoding (iSK_INI::INI_UTF8);

sf_1stFOV = dynamic_cast <sk::ParameterFloat*> (g_ParameterFactory->create_parameter <float>(L"First Person FOV"));
sf_3rdFOV = dynamic_cast <sk::ParameterFloat*> (g_ParameterFactory->create_parameter <float>(L"Third Person FOV"));
Expand Down

0 comments on commit 759766f

Please sign in to comment.