Skip to content

Commit

Permalink
Update .gitignore
Browse files Browse the repository at this point in the history
- and another menu fix
  • Loading branch information
ThirteenAG committed Jan 23, 2024
1 parent e7ed9a2 commit 8114261
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 32 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -338,5 +338,7 @@ data/update/common/shaders/dcl/gta_trees_new.dcl
data/update/common/shaders/db/gta_wire.sps
data/update/common/shaders/preload.list
data/update/pc/textures/*.wtd
data/update/TBoGT/pc/textures/*.wtd
data/update/TLAD/pc/textures/*.wtd
data/plugins/GTAIV.EFLC.FusionFix.asi
GTAIV.EFLC.FusionFix.zip
1 change: 1 addition & 0 deletions data/plugins/GTAIV.EFLC.FusionFix.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ PedDeathAnimFixFromTBOGT = 1
FixRainDrops = 1
RainDropsBlur = 2 // 1, 2 or 4 only
WalkKey = 0x12 // VK_MENU, used by Always Run option
DoNotRunInside = 0 // do not run inside interiors, used by Always Run option
FixAutoExposure = 1
ExtraCutsceneFix = 1
ExtraInfo = 1 // shows extra info in the pause menu (loaded img files amount)
Expand Down
8 changes: 1 addition & 7 deletions data/update/TBoGT/common/data/frontend_menus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,6 @@
<options text="FXAA" action="ACTION_NONE" value="2" />
<options text="SMAA" action="ACTION_NONE" value="3" />
</menupc>

<menupc enum="MENU_DISPLAY_ALWAYSRUN">
<options text="MO_OFF" action="ACTION_NONE" value="1" />
<options text="MO_ON" action="ACTION_NONE" value="2" />
<options text="Outside" action="ACTION_NONE" value="3" />
</menupc>

</sMenuDisplayValue>
<sMenuScreen>
Expand Down Expand Up @@ -489,7 +483,7 @@
<optionspc action="MENUOPT_NONE" label="" value="PREF_NULL" scaler="0" displayValue="MENU_DISPLAY_NONE" />
<optionspc action="MENUOPT_NONE" label="" value="PREF_NULL" scaler="0" displayValue="MENU_DISPLAY_NONE" />
<optionspc action="MENUOPT_ADJUST" label="Raw Input" value="PREF_RAWINPUT" scaler="2" displayValue="MENU_DISPLAY_ON_OFF" />
<optionspc action="MENUOPT_ADJUST" label="Always Run" value="PREF_ALWAYSRUN" scaler="8" displayValue="MENU_DISPLAY_ALWAYSRUN" />
<optionspc action="MENUOPT_ADJUST" label="Always Run" value="PREF_ALWAYSRUN" scaler="2" displayValue="MENU_DISPLAY_ON_OFF" />
<optionspc action="MENUOPT_ADJUST" label="Cover Centering" value="PREF_COVERCENTERING" scaler="2" displayValue="MENU_DISPLAY_ON_OFF" />
<options action="END_OF_MENU_OPTIONS" label="" value="0" scaler="0" displayValue="0" />
</menu>
Expand Down
7 changes: 1 addition & 6 deletions data/update/TLAD/common/data/frontend_menus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,6 @@
<options text="FXAA" action="ACTION_NONE" value="2" />
<options text="SMAA" action="ACTION_NONE" value="3" />
</menupc>
<menupc enum="MENU_DISPLAY_ALWAYSRUN">
<options text="MO_OFF" action="ACTION_NONE" value="1" />
<options text="MO_ON" action="ACTION_NONE" value="2" />
<options text="Outside" action="ACTION_NONE" value="3" />
</menupc>
</sMenuDisplayValue>
<sMenuScreen>
<menu HeaderText="MH_GAM" enum="SCR_GAME">
Expand Down Expand Up @@ -563,7 +558,7 @@
<optionspc action="MENUOPT_NONE" label="" value="PREF_NULL" scaler="0" displayValue="MENU_DISPLAY_NONE" />
<optionspc action="MENUOPT_NONE" label="" value="PREF_NULL" scaler="0" displayValue="MENU_DISPLAY_NONE" />
<optionspc action="MENUOPT_ADJUST" label="Raw Input" value="PREF_RAWINPUT" scaler="2" displayValue="MENU_DISPLAY_ON_OFF" />
<optionspc action="MENUOPT_ADJUST" label="Always Run" value="PREF_ALWAYSRUN" scaler="8" displayValue="MENU_DISPLAY_ALWAYSRUN" />
<optionspc action="MENUOPT_ADJUST" label="Always Run" value="PREF_ALWAYSRUN" scaler="2" displayValue="MENU_DISPLAY_ON_OFF" />
<optionspc action="MENUOPT_ADJUST" label="Cover Centering" value="PREF_COVERCENTERING" scaler="2" displayValue="MENU_DISPLAY_ON_OFF" />
<options action="END_OF_MENU_OPTIONS" label="" value="0" scaler="0" displayValue="0" />
</menu>
Expand Down
10 changes: 2 additions & 8 deletions data/update/common/data/frontend_menus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -360,12 +360,6 @@
<options text="FXAA" action="ACTION_NONE" value="2" />
<options text="SMAA" action="ACTION_NONE" value="3" />
</menupc>

<menupc enum="MENU_DISPLAY_ALWAYSRUN">
<options text="MO_OFF" action="ACTION_NONE" value="1" />
<options text="MO_ON" action="ACTION_NONE" value="2" />
<options text="Outside" action="ACTION_NONE" value="3" />
</menupc>

</sMenuDisplayValue>

Expand Down Expand Up @@ -430,7 +424,7 @@
<optionspc action="MENUOPT_NONE" label="" value="PREF_NULL" scaler="0" displayValue="MENU_DISPLAY_NONE" />
<optionspc action="MENUOPT_NONE" label="" value="PREF_NULL" scaler="0" displayValue="MENU_DISPLAY_NONE" />
<optionspc action="MENUOPT_ADJUST" label="Raw Input" value="PREF_RAWINPUT" scaler="2" displayValue="MENU_DISPLAY_ON_OFF" />
<optionspc action="MENUOPT_ADJUST" label="Always Run" value="PREF_ALWAYSRUN" scaler="8" displayValue="MENU_DISPLAY_ALWAYSRUN" />
<optionspc action="MENUOPT_ADJUST" label="Always Run" value="PREF_ALWAYSRUN" scaler="2" displayValue="MENU_DISPLAY_ON_OFF" />
<optionspc action="MENUOPT_ADJUST" label="Cover Centering" value="PREF_COVERCENTERING" scaler="2" displayValue="MENU_DISPLAY_ON_OFF" />
<options action="END_OF_MENU_OPTIONS" label="" value="0" scaler="0" displayValue="0" />
</menu>
Expand Down Expand Up @@ -868,7 +862,7 @@
<optionspc action="MENUOPT_NONE" label="" value="PREF_NULL" scaler="0" displayValue="MENU_DISPLAY_NONE" />
<optionspc action="MENUOPT_NONE" label="" value="PREF_NULL" scaler="0" displayValue="MENU_DISPLAY_NONE" />
<optionspc action="MENUOPT_ADJUST" label="Raw Input" value="PREF_RAWINPUT" scaler="2" displayValue="MENU_DISPLAY_ON_OFF" />
<optionspc action="MENUOPT_ADJUST" label="Always Run" value="PREF_ALWAYSRUN" scaler="8" displayValue="MENU_DISPLAY_ALWAYSRUN" />
<optionspc action="MENUOPT_ADJUST" label="Always Run" value="PREF_ALWAYSRUN" scaler="2" displayValue="MENU_DISPLAY_ON_OFF" />
<optionspc action="MENUOPT_ADJUST" label="Cover Centering" value="PREF_COVERCENTERING" scaler="2" displayValue="MENU_DISPLAY_ON_OFF" />
<options action="END_OF_MENU_OPTIONS" label="" value="0" scaler="0" displayValue="MENU_DISPLAY_NONE" />
</menupc>
Expand Down
9 changes: 5 additions & 4 deletions source/ikeeponwalking.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public:
{
CIniReader iniReader("");
static int32_t nWalkKey = iniReader.ReadInteger("MISC", "WalkKey", VK_MENU);
static bool bDoNotRunInside = iniReader.ReadInteger("MISC", "DoNotRunInside", 0) != 0;
auto pattern = hook::pattern("D9 44 24 18 5F 5B 5D");
static auto flag = false;
if (!pattern.empty())
Expand All @@ -37,8 +38,8 @@ public:
*(uintptr_t*)(regs.esp - 4) = loc_A2A60F;
}
auto alwaysrunPref = FusionFixSettings.GetRef("PREF_ALWAYSRUN");
auto bShouldRun = (alwaysrunPref->get() == FusionFixSettings.AlwaysRunText.eMO_ON) || (alwaysrunPref->get() == FusionFixSettings.AlwaysRunText.eOutside);
auto bDontRunNow = (alwaysrunPref->get() == FusionFixSettings.AlwaysRunText.eOutside) && Natives::IsInteriorScene();
auto bShouldRun = alwaysrunPref->get();
auto bDontRunNow = bShouldRun && bDoNotRunInside && Natives::IsInteriorScene();

if (!FusionFixSettings.Get("PREF_SPRINT")) // toggle
{
Expand Down Expand Up @@ -70,12 +71,12 @@ public:
static raw_mem GamepadCB(pattern.get_first(0), { 0x90, 0x90 }); // NOP
FusionFixSettings.SetCallback("PREF_ALWAYSRUN", [](int32_t value)
{
if ((value == FusionFixSettings.AlwaysRunText.eMO_ON) || (value == FusionFixSettings.AlwaysRunText.eOutside))
if (value)
GamepadCB.Write();
else
GamepadCB.Restore();
});
if ((FusionFixSettings("PREF_ALWAYSRUN") == FusionFixSettings.AlwaysRunText.eMO_ON) || (FusionFixSettings("PREF_ALWAYSRUN") == FusionFixSettings.AlwaysRunText.eOutside))
if (FusionFixSettings("PREF_ALWAYSRUN"))
GamepadCB.Write();
};
}
Expand Down
8 changes: 1 addition & 7 deletions source/settings.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public:
{ 0, "PREF_DEFINITION", "MAIN", "Definition", "MENU_DISPLAY_DEFINITION", 6, nullptr, DefinitionText.eClassic, std::distance(std::begin(DefinitionText.data), std::end(DefinitionText.data)) - 1 },
{ 0, "PREF_BLOOM", "MAIN", "Bloom", "", 1, nullptr, 0, 1 },
{ 0, "PREF_FPSCOUNTER", "FRAMELIMIT", "DisplayFpsCounter", "", 0, nullptr, 0, 1 },
{ 0, "PREF_ALWAYSRUN", "MISC", "AlwaysRun", "", 0, nullptr, 0, 1 },
{ 0, "PREF_ALTDIALOGUE", "MISC", "AltDialogue", "", 0, nullptr, 0, 1 },
{ 0, "PREF_COVERCENTERING", "MISC", "CameraCenteringInCover", "", 0, nullptr, 0, 1 },
{ 0, "PREF_KBCAMCENTERDELAY", "MISC", "DelayBeforeCenteringCameraKB", "", 0, nullptr, 0, 9 },
Expand All @@ -165,7 +166,6 @@ public:
{ 0, "PREF_LETTERBOX", "MISC", "Letterbox", "", 1, nullptr, 0, 1 },
{ 0, "PREF_PILLARBOX", "MISC", "Pillarbox", "", 1, nullptr, 0, 1 },
{ 0, "PREF_ANTIALIASING", "MISC", "Antialiasing", "MENU_DISPLAY_ANTIALIASING", 1, nullptr, AntialiasingText.eMO_OFF, std::distance(std::begin(AntialiasingText.data), std::end(AntialiasingText.data)) - 1 },
{ 0, "PREF_ALWAYSRUN", "MISC", "AlwaysRun", "MENU_DISPLAY_ALWAYSRUN", 5, nullptr, AlwaysRunText.eMO_OFF, std::distance(std::begin(AlwaysRunText.data), std::end(AlwaysRunText.data)) - 1 },
};

auto i = firstCustomID;
Expand Down Expand Up @@ -383,12 +383,6 @@ public:
std::vector<const char*> data = { "Low", "Medium", "High", "Very High", "Highest", "MO_OFF", "FXAA", "SMAA" };
} AntialiasingText;

struct
{
enum eAlwaysRunText { eOff, eLow, eMedium, eHigh, eVeryHigh, eMO_OFF, eMO_ON, eOutside };
std::vector<const char*> data = { "Off", "Low", "Medium", "High", "Very High", "MO_OFF", "MO_ON", "Outside" };
} AlwaysRunText;

} FusionFixSettings;

class Settings
Expand Down

0 comments on commit 8114261

Please sign in to comment.