Skip to content

Commit

Permalink
Add is delayed 25 seconds, to make kebab work
Browse files Browse the repository at this point in the history
Add remove gay & yuri for version 3.6 `kebabi`
  • Loading branch information
Yuuki committed Apr 19, 2023
1 parent 37afba0 commit 865c529
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 18 deletions.
48 changes: 32 additions & 16 deletions Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1828,6 +1828,8 @@ private void btStart_Click(object sender, EventArgs e)
var w = new StreamWriter(file_config_AkebiGC);
w.WriteLine("[Inject]");
w.WriteLine("GenshinPath = " + cst_gamefile);
w.WriteLine("[System]");
w.WriteLine("InitializationDelayMS = 25000");
w.Close();
}
catch (Exception ex)
Expand Down Expand Up @@ -1909,30 +1911,44 @@ private void CheckGameRun_Tick(object sender, EventArgs e)
// Check Gay
try
{
if (Extra_AkebiGC.Checked == true && VersionGame == "3.4.0")
if (Extra_AkebiGC.Checked == true)
{
ProcessModuleCollection processModuleCollection = isrun.First().Modules;
for (int i = 0; i < processModuleCollection.Count; i++)
Mem mem = new Mem();
if (mem.OpenProcess(WatchFile))
{
var processModule = processModuleCollection[i];
if (processModule.ModuleName == "CLibrary.dll")
if (VersionGame == "3.4.0")
{
Mem mem = new Mem();
if (mem.OpenProcess(WatchFile))
int value = mem.ReadInt("CLibrary.dll+395F68");
if (value != 256)
{
int value = mem.ReadInt("CLibrary.dll+395F68");
if (value != 256)
{
mem.WriteMemory("CLibrary.dll+395F68", "int", "256");
Console.WriteLine("Gay detected, delete now!");
}
mem.WriteMemory("CLibrary.dll+395F68", "int", "256");
Console.WriteLine("Bruh, why would anyone like gay?");
}
else
}
else if (VersionGame == "3.6.0")
{
int value = mem.ReadInt("mhyprot.dll+377050");
if (value != 7)
{
// skip
}
mem.WriteMemory("mhyprot.dll+377050", "int", "7");
Console.WriteLine("Do you like Yuri Yuri? (1)");
}
int value1 = mem.ReadInt("mhyprot.dll+377064");
if (value1 != 7)
{
mem.WriteMemory("mhyprot.dll+377064", "int", "7");
Console.WriteLine("Do you like Yuri Yuri? (2)");
}
}
else
{
// skip
}
}
else
{
Console.WriteLine("Make sure you enable 'Disable Protection' in cheat settings");
}
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions YuukiPS Launcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

<ApplicationManifest>Properties\app.manifest</ApplicationManifest>

<AssemblyVersion>2023.2.1.0446</AssemblyVersion>
<FileVersion>2023.2.1.0446</FileVersion>
<AssemblyVersion>2023.4.19.1809</AssemblyVersion>
<FileVersion>2023.4.19.1809</FileVersion>

<EnableWindowsTargeting>true</EnableWindowsTargeting>
<AssemblyName>YuukiPS</AssemblyName>
Expand Down

0 comments on commit 865c529

Please sign in to comment.