Skip to content

Commit

Permalink
Update code to prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Oct 28, 2022
1 parent 26bf74b commit 91da303
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 33 deletions.
5 changes: 5 additions & 0 deletions Common/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ void Parse(char* str, NV NameValueCallback, void* lpParam)

void UpdateConfigDefaults()
{
// Temporaroly disable settings
CRTShader = 0;
EnableDebugOverlay = 0;
EnableInfoOverlay = 0;

// Set CRT shader
switch (CRTShader)
{
Expand Down
3 changes: 2 additions & 1 deletion Common/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
visit(SpecificSoundLoopFix, true) \
visit(SpecularFix, true) \
visit(SteamCrashFix, true) \
visit(UnlockJapLang, true) \
visit(UnlockJapLang, false) \
visit(UseBestGraphics, true) \
visit(UseCustomExeStr, true) \
visit(UseCustomFonts, true) \
Expand Down Expand Up @@ -168,6 +168,7 @@
visit(AnisotropicFiltering) \
visit(AntiAliasing) \
visit(AudioFadeOutDelayMS) \
visit(CRTShader) \
visit(CustomFontCharHeight) \
visit(CustomFontCharWidth) \
visit(CustomFontCol) \
Expand Down
5 changes: 1 addition & 4 deletions Common/Settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ RestoreBrightnessSelector = 1
; Enables subpixel morphological anti-aliasing (SMAA). Note: It is recommended to disable this if using GPU-based anti-aliasing.
EnableSMAA = 0

; Enables shaders that simulate what the game would look like on a CRT television. These shaders look more accurate at lower resolutions. For the best CRT nostalgic experience, play the game in a 4:3 aspect ratio. Note: It is not recommended to enable this option if you are streaming the game, as the CRT effect may not display correctly to your viewers. It is also not recommended to enable this option if you have a low-end computer system.
CRTShader = 0

[Images]
; Allows higher quality, upscaled images to be used. Must be enabled if using the project's Image Enhancement Pack.
EnableTexAddrHack = 1
Expand Down Expand Up @@ -149,7 +146,7 @@ MainMenuTitlePerLang = 1
UseCustomExeStr = 1

; Restores the ability to select Japanese as a language option through the game's Options menu. Note: It is recommended to keep this disabled for now, as not all Japanese characters are currently supported.
UnlockJapLang = 1
UnlockJapLang = 0

[Menu Fixes]
; Fixes the mouse hitboxes for the game's main menu selections for the North American version 1.1 executable.
Expand Down
14 changes: 2 additions & 12 deletions Launcher/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,6 @@
</Choices>
</Feature>

<Feature name="CRTShader">
<Title>Simulate a CRT Screen</Title>
<Description>Enables shaders that simulate what the game would look like on a CRT television. These shaders look more accurate at lower resolutions. For the best CRT nostalgic experience, play the game in a 4:3 aspect ratio.&#x0a;&#x0a;Note: It is not recommended to enable this option if you are streaming the game, as the CRT effect may not display correctly to your viewers. It is also not recommended to enable this option if you have a low-end computer system.</Description>
<Choices type="list">
<Value name="Disabled" default="true">0</Value>
<Value name="Enabled">1</Value>
<Value name="Enabled with Curvature">2</Value>
</Choices>
</Feature>

</Section>

</Tab>
Expand Down Expand Up @@ -494,8 +484,8 @@
<Title>Unlock Japanese language option</Title>
<Description>Restores the ability to select Japanese as a language option through the game's Options menu.&#x0a;&#x0a;Note: It is recommended to keep this disabled for now, as not all Japanese characters are currently supported.</Description>
<Choices type="check">
<Value name="Disable">0</Value>
<Value name="Enable" default="true">1</Value>
<Value name="Disable" default="true">0</Value>
<Value name="Enable">1</Value>
</Choices>
</Feature>

Expand Down
14 changes: 2 additions & 12 deletions Launcher/config_es.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,6 @@
</Choices>
</Feature>

<Feature name="CRTShader">
<Title>Simulate a CRT Screen</Title>
<Description>Enables shaders that simulate what the game would look like on a CRT television. These shaders look more accurate at lower resolutions. For the best CRT nostalgic experience, play the game in a 4:3 aspect ratio.&#x0a;&#x0a;Note: It is not recommended to enable this option if you are streaming the game, as the CRT effect may not display correctly to your viewers. It is also not recommended to enable this option if you have a low-end computer system.</Description>
<Choices type="list">
<Value name="Disabled" default="true">0</Value>
<Value name="Enabled">1</Value>
<Value name="Enabled with Curvature">2</Value>
</Choices>
</Feature>

</Section>

</Tab>
Expand Down Expand Up @@ -494,8 +484,8 @@
<Title>Desbloquear la opción del idioma japonés</Title>
<Description>Restaura la capacidad de seleccionar el idioma japonés en el menú de Opciones del juego.&#x0a;&#x0a;Nota: actualmente se recomienda mantener esta opción desactivada, ya que no todos los caracteres japoneses están soportados.</Description>
<Choices type="check">
<Value name="Desactivado">0</Value>
<Value name="Activado" default="true">1</Value>
<Value name="Desactivado" default="true">0</Value>
<Value name="Activado">1</Value>
</Choices>
</Feature>

Expand Down
2 changes: 1 addition & 1 deletion Resources/BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 2024
#define BUILD_NUMBER 2025
2 changes: 1 addition & 1 deletion Wrappers/d3d8to9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void EnableD3d8to9()
}
else
{
p_Direct3DCreate9 = rs_Direct3DCreate9;
p_Direct3DCreate9 = Direct3DCreate9Wrapper;
}
}

Expand Down
2 changes: 1 addition & 1 deletion Wrappers/d3d9/d3d9wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

Direct3DCreate9Proc m_pDirect3DCreate9 = nullptr;

IDirect3D9 *WINAPI rs_Direct3DCreate9(UINT SDKVersion)
IDirect3D9 *WINAPI Direct3DCreate9Wrapper(UINT SDKVersion)
{
if (!m_pDirect3DCreate9)
{
Expand Down
2 changes: 1 addition & 1 deletion Wrappers/d3d9/d3d9wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class m_IDirect3DSwapChain9;

typedef IDirect3D9 *(WINAPI *Direct3DCreate9Proc)(UINT);

IDirect3D9 *WINAPI rs_Direct3DCreate9(UINT SDKVersion);
IDirect3D9 *WINAPI Direct3DCreate9Wrapper(UINT SDKVersion);

#include "IDirect3D9.h"
#include "IDirect3DDevice9.h"
Expand Down

0 comments on commit 91da303

Please sign in to comment.