Skip to content

Commit

Permalink
screen cast
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangwei committed Dec 11, 2024
1 parent b13f8bd commit 6246fb5
Show file tree
Hide file tree
Showing 39 changed files with 290 additions and 203 deletions.
4 changes: 2 additions & 2 deletions src/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ android {
externalNativeBuild {
cmake {
path "../../../CMakeLists.txt"
version '3.22.1'
version '3.31.0'
}
}

ndkVersion = '26.3.11579264'
ndkVersion = '27.2.12479018'
lint {
abortOnError false
}
Expand Down
6 changes: 6 additions & 0 deletions src/android/app/src/main/assets/3dstdb-en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@
000400300000A102 = Home Menu
000400300000A902 = Home Menu
000400300000B102 = Home Menu
000400300000C002 = Software Keyboard
000400300000C802 = Software Keyboard
000400300000D002 = Software Keyboard
000400300000D802 = Software Keyboard
000400300000DE02 = Software Keyboard
000400300000E402 = Software Keyboard
0004000000127900 = Super Robot Taisen BX
00040000000F4000 = Little Battlers Wars
26 changes: 19 additions & 7 deletions src/android/app/src/main/assets/3dstdb-zh_CN.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
000400300000A102 = Home Menu
000400300000A902 = Home Menu
000400300000B102 = Home Menu
000400300000C002 = Software Keyboard
000400300000C802 = Software Keyboard
000400300000D002 = Software Keyboard
000400300000D802 = Software Keyboard
000400300000DE02 = Software Keyboard
000400300000E402 = Software Keyboard
0004000000090700 = 任天狗
0004000000030B00 = 任天狗
0004000000030C00 = 任天狗
Expand All @@ -16,6 +22,9 @@
0004000000031500 = 任天狗
0004000000031600 = 任天狗
0004000000031700 = 任天狗
000400000008FF00 = 平衡的艺术
000400000008F000 = 平衡的艺术
00040000000E8900 = 平衡的艺术
000400000015D800 = 钢铁陨落 入侵
000400000015B100 = 钢铁陨落 入侵
00040000001C1C00 = 超回转 寿司强袭者 寿司道
Expand All @@ -24,6 +33,7 @@
0004000000167A00 = 僵尸梦游仙境DX
00040000000F5600 = 僵尸梦游仙境DX
0004000000187E00 = 立体绘图方块2
0004000000187D00 = 立体绘图方块2
0004000000169A00 = 立体绘图方块2
00040000000FB800 = 剑与暗
0004000000065C00 = 拉比利斯的彼方
Expand Down Expand Up @@ -172,13 +182,13 @@
0004000000032000 = 死或生 多重维度
0004000000034F00 = 死或生 多重维度
0004000000038A00 = 死或生 多重维度
00040000000CF500 = 勇者斗恶龙怪兽篇2
00040000001C3A00 = 勇者斗恶龙1
00040000001C3800 = 勇者斗恶龙2
00040000001C3900 = 勇者斗恶龙3
000400000018F100 = 勇者斗恶龙8
000400000018F200 = 勇者斗恶龙8
000400000015CD00 = 勇者斗恶龙8
00040000000CF500 = 勇者斗恶龙怪兽篇 2
00040000001C3A00 = 勇者斗恶龙 1
00040000001C3800 = 勇者斗恶龙 2
00040000001C3900 = 勇者斗恶龙 3
000400000018F100 = 勇者斗恶龙 8
000400000018F200 = 勇者斗恶龙 8
000400000015CD00 = 勇者斗恶龙 8
000400000016AD00 = 勇者斗恶龙怪兽篇 joker3
00040000001ACB00 = 勇者斗恶龙怪兽篇 joker3 专家版
00040000001AA900 = 龙珠 融合计划
Expand Down Expand Up @@ -452,6 +462,8 @@
000400000008C500 = 朋友聚会 新生活
00040000000C3600 = 女神异闻录 Q
00040000001CBE00 = 女神异闻录 Q2
0004000000088A00 = 真女神转生 4
00040000000E5C00 = 真女神转生 4
0004000000166B00 = 真女神转生 4 FINAL
00040000001A6B00 = 真女神转生 4 FINAL
000400000019A200 = 真女神转生 4 FINAL
Expand Down
10 changes: 7 additions & 3 deletions src/android/app/src/main/assets/config/config-games.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
000400000013CB00 // FIFA 15

[disable_shadow_rendering]
00040000001CB000 // Captain Toad: Treasure Tracker
00040000001CB200 // Captain Toad: Treasure Tracker
00040000001CB100 // Captain Toad: Treasure Tracker
00040000000D0000 // Luigi's Mansion: Dark Moon
0004000000076400 // Luigi's Mansion: Dark Moon
0004000000055F00 // Luigi's Mansion: Dark Moon
Expand Down Expand Up @@ -151,6 +148,7 @@
000400000008FE00,1,4,2,2 // 1001 Spikes
0004000000120900,1,4,2,2 // Lord of Magna: Maiden Heaven
0004000000164300,1,4,2,2 // Lord of Magna: Maiden Heaven
0004000000165500,1,4,2,2 // Lord of Magna: Maiden Heaven
00040000001CCD00,1,4,2,2 // The Alliance Alive
00040000001B4500,1,4,2,2 // The Alliance Alive
0004000000053700,1,4,2,2 // EX Troopers
Expand Down Expand Up @@ -239,11 +237,16 @@
0004000000030400 // Star Fox 64
0004000000049000 // Star Fox 64
0004000000187E00 // Picross 2
0004000000187D00 // Picross 2
0004000000169A00 // Picross 2
000400000008FF00 // Art of Balance
000400000008F000 // Art of Balance
00040000000E8900 // Art of Balance
[skip_cpu_write]
0004000000120900 // Lord of Magna: Maiden Heaven
0004000000164300 // Lord of Magna: Maiden Heaven
0004000000165500 // Lord of Magna: Maiden Heaven
[disable_hw_gs]
00040000000A0000 // BIOHAZARD Revelations
Expand All @@ -255,6 +258,7 @@
[hw_shader_limit]
0004000000187500,512 // Creeping Terror
00040000001CB600,512 // Creeping Terror
[use_separable_shader]
Expand Down
163 changes: 163 additions & 0 deletions src/android/app/src/main/res/layout-land/activity_about.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.AboutActivity">

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.DayNight"
android:background="?attr/colorPrimary"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_alignParentTop="true" />

<View
android:id="@+id/center_view"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_width="1px"
android:layout_height="1px"/>

<LinearLayout
android:orientation="vertical"
android:gravity="center"
android:layout_centerVertical="true"
android:layout_alignParentStart="true"
android:layout_toStartOf="@id/center_view"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:id="@+id/banner"
android:src="@mipmap/ic_launcher_foreground"
android:scaleType="centerCrop"
android:layout_width="96dp"
android:layout_height="94dp"/>

<TextView
android:id="@+id/version"
android:text="2022/02/02T02:02:02"
style="@style/CitraTheme.Caption"
android:textSize="14sp"
android:gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

</LinearLayout>

<LinearLayout
android:id="@+id/layout_group"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:background="@color/background_color"
android:elevation="2dp"
android:gravity="center"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:layout_toEndOf="@id/center_view"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<Button
android:id="@+id/btn_official_website"
android:text="@string/citra_official_website"
android:textAllCaps="false"
android:textStyle="normal"
android:layout_margin="0dp"
android:padding="16dp"
android:minWidth="0dp"
android:minHeight="0dp"
android:stateListAnimator="@null"
android:gravity="center_vertical"
style="@style/CitraTheme.Borderless"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

<View
android:layout_width="match_parent"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_height="1dp"
android:background="@color/light_grey"/>

<Button
android:id="@+id/btn_open_weibo"
android:text="@string/open_weibo"
android:textAllCaps="false"
android:textStyle="normal"
android:layout_margin="0dp"
android:padding="16dp"
android:minWidth="0dp"
android:minHeight="0dp"
android:stateListAnimator="@null"
android:gravity="center_vertical"
style="@style/CitraTheme.Borderless"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

<View
android:layout_width="match_parent"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_height="1dp"
android:background="@color/light_grey"/>

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/btn_latest_version"
android:text="@string/latest_version"
android:textAllCaps="false"
android:textStyle="normal"
android:layout_margin="0dp"
android:padding="16dp"
android:minWidth="0dp"
android:minHeight="0dp"
android:stateListAnimator="@null"
android:gravity="center_vertical"
style="@style/CitraTheme.Borderless"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

<ProgressBar
android:id="@+id/latest_version_progress"
style="?android:attr/progressBarStyleHorizontal"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:padding="0dp"
android:indeterminate="true"
android:visibility="invisible"
android:layout_alignBottom="@id/btn_latest_version"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</RelativeLayout>

</LinearLayout>

<TextView
android:id="@+id/device_info"
android:textAlignment="center"
android:gravity="center"
android:layout_margin="8dp"
android:textSize="12sp"
style="@style/CitraTheme.Caption"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

<SurfaceView
android:id="@+id/surface_about"
android:layout_height="1dp"
android:layout_width="match_parent"
android:layout_alignParentBottom="true"
android:focusable="false"
android:focusableInTouchMode="false"/>

</RelativeLayout>
13 changes: 0 additions & 13 deletions src/android/app/src/main/res/layout/amiibo_list_item.xml

This file was deleted.

30 changes: 0 additions & 30 deletions src/android/app/src/main/res/layout/dialog_amiibo.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
tools:orientation="horizontal"
tools:context=".ui.MenuDialogFragment"
tools:listitem="@layout/fragment_bottom_sheet_list_item" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="?android:attr/selectableItemBackground"
android:focusable="true"
android:clickable="true">

<ImageView
android:id="@+id/image_icon"
android:src="@drawable/ic_home"
app:tint="@color/foreground_color"
android:layout_width="56dp"
android:layout_height="56dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop="6dp"
android:layout_marginBottom="6dp"/>

<TextView
android:id="@+id/text_title"
android:text=""
android:textAlignment="gravity"
android:gravity="top|center"
android:layout_marginStart="2dp"
android:layout_marginEnd="2dp"
android:singleLine="false"
android:textColor="@color/foreground_color"
android:layout_below="@id/image_icon"
android:layout_centerHorizontal="true"
android:layout_width="108dp"
android:layout_height="48dp" />

</RelativeLayout>
Loading

1 comment on commit 6246fb5

@daeklo4
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weihuoya please implement vulkan in citra mmj and when open settings in game may cause crashes on mali gpu devices

Please sign in to comment.