Browse Source
android: Add addon delete button
android: Add addon delete button
Required some refactoring of retrieving patches in order for the frontend to pass the right information to ContentManager for deletion.nce_cpp
17 changed files with 305 additions and 82 deletions
-
25src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt
-
21src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/AddonAdapter.kt
-
17src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt
-
10src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Addon.kt
-
42src/android/app/src/main/java/org/yuzu/yuzu_emu/model/AddonViewModel.kt
-
16src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Patch.kt
-
14src/android/app/src/main/java/org/yuzu/yuzu_emu/model/PatchType.kt
-
55src/android/app/src/main/jni/id_cache.cpp
-
9src/android/app/src/main/jni/id_cache.h
-
48src/android/app/src/main/jni/native.cpp
-
32src/android/app/src/main/res/layout/list_item_addon.xml
-
3src/android/app/src/main/res/values/strings.xml
-
43src/core/file_sys/patch_manager.cpp
-
17src/core/file_sys/patch_manager.h
-
17src/frontend_common/content_manager.h
-
7src/yuzu/configuration/configure_per_game_addons.cpp
-
11src/yuzu/game_list_worker.cpp
@ -1,10 +0,0 @@ |
|||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project |
|||
// SPDX-License-Identifier: GPL-2.0-or-later |
|||
|
|||
package org.yuzu.yuzu_emu.model |
|||
|
|||
data class Addon( |
|||
var enabled: Boolean, |
|||
val title: String, |
|||
val version: String |
|||
) |
|||
@ -0,0 +1,16 @@ |
|||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project |
|||
// SPDX-License-Identifier: GPL-2.0-or-later |
|||
|
|||
package org.yuzu.yuzu_emu.model |
|||
|
|||
import androidx.annotation.Keep |
|||
|
|||
@Keep |
|||
data class Patch( |
|||
var enabled: Boolean, |
|||
val name: String, |
|||
val version: String, |
|||
val type: Int, |
|||
val programId: String, |
|||
val titleId: String |
|||
) |
|||
@ -0,0 +1,14 @@ |
|||
// SPDX-FileCopyrightText: 2024 yuzu Emulator Project |
|||
// SPDX-License-Identifier: GPL-2.0-or-later |
|||
|
|||
package org.yuzu.yuzu_emu.model |
|||
|
|||
enum class PatchType(val int: Int) { |
|||
Update(0), |
|||
DLC(1), |
|||
Mod(2); |
|||
|
|||
companion object { |
|||
fun from(int: Int): PatchType = entries.firstOrNull { it.int == int } ?: Update |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue