Skip to content

Commit

Permalink
Optimize log stuff
Browse files Browse the repository at this point in the history
* ignore proxy when accessing download url or use hoyoplay.
* zzz & www preparation
  • Loading branch information
Yuuki committed Jul 30, 2024
1 parent e27e0e9 commit 2042396
Show file tree
Hide file tree
Showing 9 changed files with 133 additions and 84 deletions.
Binary file removed Asset/Library/MetadataConverter.dll
Binary file not shown.
6 changes: 3 additions & 3 deletions Game/Genshin/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ public int GetRegServerNameID()
public enum ServerRegionID
{
os_usa = 0,
// os_euro = 1,
// os_asia = 2,
// os_cht = 3
os_euro = 1,
os_asia = 2,
os_cht = 3
}

public class GeneralDataProp
Expand Down
8 changes: 7 additions & 1 deletion Json/GameType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ public enum GameType
GenshinImpact = 1,

[StringValue("Star Rail")]
StarRail = 2
StarRail = 2,

[StringValue("Zenless Zone Zero")]
ZenlessZoneZero = 3,

[StringValue("Wuthering Waves")]
WutheringWaves = 4
}

[AttributeUsage(AttributeTargets.Field)]
Expand Down
2 changes: 0 additions & 2 deletions Json/Profile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ public class Extra
public bool Akebi = false;
public bool RPC = false;
}

//public int patch_metode = 1; // 1=NO PATCH, 2=RSA ()this should not be necessary because it is controlled by game server
}

public Server ServerConfig { get; set; } = new();
Expand Down
96 changes: 62 additions & 34 deletions Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ public void DoStart()
bool isCheat = ExtraCheat.Checked;
bool isProxyNeed = CheckProxyEnable.Checked;
bool isSendLog = EnableSendLog.Checked;
bool isShowLog = EnableShowLog.Checked;

GameType selectedGame = (GameType)GetTypeGame.SelectedItem;

Expand Down Expand Up @@ -354,7 +355,7 @@ public void DoStart()
{
if (isProxyNeed)
{
proxy = new Proxy(setProxyPort, setServerHost, isSendLog);
proxy = new Proxy(setProxyPort, setServerHost, isSendLog, isShowLog);
if (!proxy.Start())
{
MessageBox.Show($"Unable to start proxy on port {setProxyPort}. Possible reasons:\n\n" +
Expand Down
4 changes: 2 additions & 2 deletions Main.resx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Microsoft ResX Schema
Version 2.0
Expand Down Expand Up @@ -48,7 +48,7 @@
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
Expand Down
Loading

0 comments on commit 2042396

Please sign in to comment.