Skip to content

Commit 2eaea24

Browse files
committed
Bug fix, update changelog
1 parent 25cfca3 commit 2eaea24

File tree

6 files changed

+109
-6
lines changed

6 files changed

+109
-6
lines changed

universal/res/raw-b+zh+Hant/help_changelog.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
<b>版本 2.6.0.4a Rev 251204 (BY R-YaTian):
2+
- 修復 LCD3x HD 和 LCD3x 著色器的加載問題 (需刪除資料存儲目錄下的 LCD3x HD.dfx 和 LCD3x.dfx 文件才能生效)
3+
- 為 Android 10 及以上系統引入完整的深色主題支援
4+
- 当 DS 下螢幕不可見且右搖桿模式設為觸筆模式時, 隱藏觸筆圖像並禁用按下操作
5+
- 修復瀏海螢幕設備佈局編輯器無法使用底部區域的問題
6+
- 更新並改進主選單按鈕資源 (由 Handheld企鹅 製作)
7+
- 新的預設虛擬按鍵皮膚 (由 Handheld企鹅 製作), 保留原始皮膚並重命名為 "DraStic Classic"
8+
- 新增在單螢幕佈局中輸出 DS 下螢幕的選項
9+
- 移除過時的虛擬按鍵皮膚
10+
- 改進 TV 模式下的設定頁面和幫助頁面
11+
- 更新 TV 模式下的快捷選單資源 (由 Handheld企鹅 製作)
12+
- 調整橫屏模式下主選單選項的位置
13+
- 修復在 TV 模式下, 常規設定頁面配置預設佈局選項時崩潰的歷史問題
14+
- 切換上下螢幕功能現在對副螢幕有效
15+
116
<b>版本 2.6.0.4a Rev 251117 (BY R-YaTian):
217
- 清理未使用的通知相關資源
318
- 改進按鍵映射詳情頁面的文本顯示

universal/res/raw-zh/help_changelog.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
<b>版本 2.6.0.4a Rev 251204 (BY R-YaTian):
2+
- 修复 LCD3x HD 和 LCD3x 着色器的加载问题 (需删除数据存储目录下的 LCD3x HD.dfx 和 LCD3x.dfx 文件才能生效)
3+
- 为 Android 10 及以上系统引入完整的深色主题支持
4+
- 当 DS 下屏幕不可见且右摇杆模式设置为触笔时, 隐藏触笔图像并禁用触笔按下操作
5+
- 修复刘海屏设备上布局编辑器无法使用底部区域的问题
6+
- 更新并改进主菜单按钮图片 (由 Handheld企鹅 制作)
7+
- 添加新的默认虚拟按键皮肤 (由 Handheld企鹅 制作), 保留原始皮肤并重命名为 "DraStic Classic"
8+
- 添加新设置选项以支持单屏布局输出DS下屏幕
9+
- 移除过时的虚拟按键皮肤
10+
- 改进 TV 模式下的设置页面和帮助页面
11+
- 更新 TV 模式下的快捷菜单资源 (由 Handheld企鹅 制作)
12+
- 调整横屏模式下主菜单选项的位置
13+
- 解决 TV 模式下在常规设置页面配置默认布局选项出现崩溃的历史问题
14+
- 屏幕切换功能现在将对扩展屏幕生效
15+
116
<b>版本 2.6.0.4a Rev 251117 (BY R-YaTian):
217
- 清理未使用的通知相关资源
318
- 改进按键映射详情页面的文本显示

universal/res/raw/help_changelog.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
<b>Version 2.6.0.4a Rev 251204 (BY R-YaTian):
2+
- Fixed the loading issue with the LCD3x HD and LCD3x shaders (requires deleting LCD3x HD.dfx and LCD3x.dfx from the data directory to take effect)
3+
- Introduced full dark theme support for Android 10 and above
4+
- Hide the stylus image and disabled pointer-down actions when the bottom screen is not visible and the right-stick mode is set to Stylus Pointer
5+
- Removed buggy display cutout handling code from the Customizer activity, fixing the issue where the layout editor could not use the bottom area
6+
- Updated and improved main menu button images (BY Handheld企鹅)
7+
- Added new default virtual controller theme (Made by Handheld企鹅). Preserved the original theme and renamed it to "DraStic Classic"
8+
- Added new option for display the DS bottom screen in single-screen layout
9+
- Remove outdated virtual controller assets
10+
- Improve the settings and help pages in TV mode
11+
- Update Fast-Access menu images for TV mode (Made by Handheld企鹅)
12+
- Adjusted the position of menu options in the main menu when in landscape mode
13+
- Fixed a long-standing issue where selecting the Default Layout option in the General Settings page caused a crash in TV mode
14+
- The Screen-Swap feature now applies to the external display
15+
116
<b>Version 2.6.0.4a Rev 251117 (BY R-YaTian):
217
- Clean up unused notification-related resources
318
- Improve the text display on the MappingInfo page

universal/res/values-b+zh+Hant/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ DraStic正在努力生成一個恢復存檔。若成功的話, 您在下次打
257257
<string name="str_set_menu_game_options_delete">刪除單一遊戲設定</string>
258258
<string name="str_set_menu_global_options">全局設定</string>
259259
<string name="str_set_menu_override_msg">被單一遊戲設定覆蓋的選項已被劃掉</string>
260-
<string name="str_set_menu_singlelayout_usebottom">在單螢幕佈局中輸出 DS 的下螢幕</string>
260+
<string name="str_set_menu_singlelayout_usebottom">在單螢幕佈局中輸出 DS 下螢幕</string>
261261
<string name="str_set_menubtn">停用選單鍵</string>
262262
<string name="str_set_menubtn_pos">選單鍵位置</string>
263263
<string name="str_set_menubtn_warn">隱藏選單鍵, 請確保您已經設定好打開選單用的按鍵</string>

universal/smali/com/dsemu/drastic/DraSticExtGlView$TouchListener.smali

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,18 @@
2424
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
2525
.locals 10
2626

27-
sget v0, Lf0/h;->A:I
27+
# Get the DraSticExtGlView instance
28+
iget-object v0, p0, Lcom/dsemu/drastic/DraSticExtGlView$TouchListener;->this$0:Lcom/dsemu/drastic/DraSticExtGlView;
29+
30+
invoke-static {v0}, Lcom/dsemu/drastic/DraSticExtGlView;->a(Lcom/dsemu/drastic/DraSticExtGlView;)Landroid/content/Context;
31+
32+
move-result-object v1
2833

29-
if-eqz v0, :return_0
34+
invoke-static {v1}, Lf0/h;->isBottomScreenDisplayedExt(Landroid/content/Context;)Z
35+
36+
move-result v1
37+
38+
if-eqz v1, :return_0
3039

3140
# Get the subTouchX
3241
invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F
@@ -36,9 +45,6 @@
3645
invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F
3746
move-result v3
3847

39-
# Get the DraSticExtGlView instance
40-
iget-object v0, p0, Lcom/dsemu/drastic/DraSticExtGlView$TouchListener;->this$0:Lcom/dsemu/drastic/DraSticExtGlView;
41-
4248
# Get DraSticExtGlView$a
4349
invoke-virtual {v0}, Lcom/dsemu/drastic/DraSticExtGlView;->geta()Lcom/dsemu/drastic/DraSticExtGlView$a;
4450
move-result-object v4

universal/smali/f0/h.smali

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3966,6 +3966,58 @@
39663966
return v1
39673967
.end method
39683968

3969+
.method public static isBottomScreenDisplayedExt(Landroid/content/Context;)Z
3970+
.locals 4
3971+
3972+
sget-object v0, Lf0/h;->e:Lcom/dsemu/drastic/filesystem/b;
3973+
3974+
const/4 v1, 0x0
3975+
3976+
if-eqz v0, :cond_0
3977+
3978+
sget-object v0, Lf0/h;->a:Ljava/lang/String;
3979+
3980+
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
3981+
3982+
move-result-object v0
3983+
3984+
sget-object v2, Lf0/h;->e:Lcom/dsemu/drastic/filesystem/b;
3985+
3986+
invoke-interface {v2, p0}, Lcom/dsemu/drastic/filesystem/b;->w(Landroid/content/Context;)Ljava/lang/String;
3987+
3988+
move-result-object p0
3989+
3990+
new-instance v2, Ljava/lang/StringBuilder;
3991+
3992+
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
3993+
3994+
const-string v3, "_ScreenSwap_"
3995+
3996+
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
3997+
3998+
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
3999+
4000+
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
4001+
4002+
move-result-object p0
4003+
4004+
invoke-interface {v0, p0, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
4005+
4006+
move-result p0
4007+
4008+
sget v1, Lf0/h;->A:I
4009+
4010+
if-eqz v1, :not_use_bottom
4011+
4012+
xor-int/lit8 p0, p0, 0x1
4013+
4014+
:not_use_bottom
4015+
return p0
4016+
4017+
:cond_0
4018+
return v1
4019+
.end method
4020+
39694021
.method public static q(Landroid/content/Context;)I
39704022
.locals 4
39714023

0 commit comments

Comments
 (0)