Skip to content

Commit

Permalink
And just to be sure apply this again
Browse files Browse the repository at this point in the history
  • Loading branch information
SuiMachine committed Jun 26, 2022
1 parent c180f72 commit da62164
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Binary file modified Release/Mods/SuisHack.dll
Binary file not shown.
Binary file modified Release/Mods/SuisHack.pdb
Binary file not shown.
9 changes: 8 additions & 1 deletion Source/SuisHackMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class SuisHackMain : MelonMod
public static HarmonyLib.Harmony harmonyInst { get; private set; }
public static MelonLogger.Instance loggerInst { get; private set; }
public static ExposedSettings Settings;
private bool AppliedResolutionInMainMenu;

public override void OnApplicationLateStart()
{
Expand Down Expand Up @@ -45,7 +46,13 @@ public override void OnSceneWasLoaded(int buildIndex, string sceneName)
if (Settings.Input_Override.Value == ExposedSettings.InputType.KeyboardAndMouse)
GlobalGameObjects.GlobalInputHookHandler.Initialize();

if (sceneName == OPENWORLDSCENENAME)
if(sceneName == "TitleTest2")
{
if(!AppliedResolutionInMainMenu)
Hacks.ScreenHook.SetResolution1();
AppliedResolutionInMainMenu = true;
}
else if (sceneName == OPENWORLDSCENENAME)
{
if (Settings.Entry_Other_GeometryImprovements.Value >= ExposedSettings.GeometryImprovements.Minor)
{
Expand Down

0 comments on commit da62164

Please sign in to comment.