Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuoos committed May 5, 2023
1 parent 37b069d commit 6798a81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# HK4E Android Proxy

###
基于方块君的GenshinProxy([577fkj](https://github.com/577fkj)) 修改,感谢咕咕的资源下载服务器
基于方块君的GenshinProxy([577fkj](https://github.com/577fkj)) 修改,部分代码来源于[Launcher-Android](https://github.com/YuukiPS/Launcher-Android)感谢咕咕的资源下载服务器

This is an xposed module that does not use a proxy to enter the grasscutter server

Expand Down
13 changes: 6 additions & 7 deletions app/src/main/java/Xuoos/GenshinImpact/Proxy/Hook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ class Hook {
setPadding(25, 0, 25, 0)
addView(LinearLayout(activity).apply {
orientation = LinearLayout.VERTICAL
//提供此开关,防止误报无限连接至资源下载服务器
addView(Switch(activity).apply {
text = "游戏数据检测 (需重启)"
isChecked = sp.getBoolean("ResCheck", false)
Expand Down Expand Up @@ -527,11 +528,11 @@ setNegativeButton 右中
CustomIPDialog()
} else {
sp.edit().run {
putString("serverip", SaveIP)
apply()
val ser_ip = sp.getString("serverip", "") ?: ""
Toast.makeText(activity, "已保存地址:\t${ser_ip}", Toast.LENGTH_SHORT).show()
Toast.makeText(activity, "请重新打开客户端~", Toast.LENGTH_SHORT).show()
putString("serverip", SaveIP)
apply()
val ser_ip = sp.getString("serverip", "") ?: ""
Toast.makeText(activity, "已保存地址:\t${ser_ip}", Toast.LENGTH_SHORT).show()
Toast.makeText(activity, "请重新打开客户端~", Toast.LENGTH_SHORT).show()
Thread.sleep(500)
exitProcess(0)
}
Expand Down Expand Up @@ -693,8 +694,6 @@ setNegativeButton 右中
if (method.args[args] == null) return
if (Xuoos.startsWith("autopatchhk.yuanshen.com")) return
if (Xuoos.startsWith("autopatchcn.yuanshen.com")) return
// 跳过配置设置 (不可用)skip config areal (BAD 3.5)
//if (Xuoos.startsWith("[{\"area\":")) return

for (list in more_domain) {
for (head in arrayListOf("http://", "https://")) {
Expand Down

0 comments on commit 6798a81

Please sign in to comment.