Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Commit 081c513

Browse files
committed
v3.2.1-beta
* injectMethod parameter in config is deprecated * the forceLoadLibrary parameter is added * getting the injection method from the cheat repository
1 parent d175c8c commit 081c513

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

Lib/functions.ahk

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ Inject(neutron, event)
6464
{
6565
IniRead, dll, %A_AppData%\FET Loader\cheats.ini, cheats, %event%
6666
IniRead, cheatrepo, %A_AppData%\FET Loader\config.ini, settings, cheatrepo
67-
IniRead, injectMethod, %A_AppData%\FET Loader\config.ini, settings, injectMethod
67+
IniRead, injectMethod, %A_AppData%\FET Loader\cheats.ini, inject, %event%
68+
if (forceLoadLibrary = true)
69+
{
70+
injectMethod := "LoadLibrary"
71+
}
6872
Logging(1,"Initialized dll injection. Method: " injectMethod ". DLL: " dll)
6973

7074
Loop 3
@@ -92,7 +96,7 @@ Inject(neutron, event)
9296
UrlDownloadToFile, https://github.com/%cheatrepo%/raw/main/emb.exe, %A_AppData%\FET Loader\emb.exe
9397
Logging(1, "done.")
9498
}
95-
if (injectMethod = "standart")
99+
if (injectMethod = "loadlibrary")
96100
{
97101
Logging(1,"Running emb...")
98102
CmdLine = emb.exe
@@ -135,7 +139,11 @@ Inject(neutron, event)
135139
}
136140
if (PID > 0 and event = "Custom")
137141
{
138-
IniRead, injectMethod, %A_AppData%\FET Loader\config.ini, settings, injectMethod
142+
IniRead, injectMethod, %A_AppData%\FET Loader\cheats.ini, inject, %event%
143+
if (forceLoadLibrary = true)
144+
{
145+
injectMethod := "LoadLibrary"
146+
}
139147
MsgBox, 4, %script%, %string_warning_custom_dll%
140148
IfMsgBox, Yes
141149
{

Lib/lang_strings.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ IfNotExist, %A_AppData%\FET Loader\config.ini
2424
isConfigValue(A_AppData "\FET Loader\config.ini","settings","oldgui","false")
2525
isConfigValue(A_AppData "\FET Loader\config.ini","settings","checkupdates","true")
2626
isConfigValue(A_AppData "\FET Loader\config.ini","settings","cheatrepo","clangremlini/fetloader-dll-repo")
27-
isConfigValue(A_AppData "\FET Loader\config.ini","settings","injectMethod","manualmap")
27+
isConfigValue(A_AppData "\FET Loader\config.ini","settings","forceLoadLibrary","false")
2828

2929

3030

loader.ahk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
;@Ahk2Exe-SetDescription A simple cheats loader written in AHK.
2626
;@Ahk2Exe-SetCopyright Copyright (C) 2021 CodISH inc.
2727
;@Ahk2Exe-SetCompanyName CodISH Inc.
28-
;@Ahk2Exe-SetProductVersion 3.2.0.0
29-
;@Ahk2Exe-SetVersion 3.2.0.0
28+
;@Ahk2Exe-SetProductVersion 3.2.1.0
29+
;@Ahk2Exe-SetVersion 3.2.1.0
3030
;@Ahk2Exe-SetMainIcon icon.ico
3131
;@Ahk2Exe-UpdateManifest 1
3232
global script = "FET Loader"
33-
global version = "v3.2.0"
34-
global build_status = "release"
33+
global version = "v3.2.1"
34+
global build_status = "beta"
3535
global times = 3 ; piece of shit, don't touch
3636

3737
#NoEnv
@@ -63,7 +63,7 @@ IniRead, oldgui, %A_AppData%\FET Loader\config.ini, settings, oldgui
6363
IniRead, cheatlist, %A_AppData%\FET Loader\cheats.ini, cheatlist, cheatlist
6464
IniRead, checkupdates, %A_AppData%\FET Loader\config.ini, settings, checkupdates
6565
IniRead, theme, %A_AppData%\FET Loader\config.ini, settings, theme
66-
IniRead, injectMethod, %A_AppData%\FET Loader\config.ini, settings, injectMethod
66+
IniRead, forceLoadLibrary, %A_AppData%\FET Loader\config.ini, settings, forceLoadLibrary
6767

6868
if (theme)
6969
{

0 commit comments

Comments
 (0)