修复畅玩游戏备份问题

This commit is contained in:
陈君陶
2023-01-05 14:59:54 +08:00
parent 7d77ca9b35
commit d396deb94b
3 changed files with 5 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import java.nio.file.Files
object VBackupHelper {
// 添加数据库版本作为路径,避免数据错乱异常
private const val BACKUP_FOLDER = "/gh-files/vspace_backup/" + VGameDatabase.DB_VERSION
private const val BACKUP_FOLDER = "/gh-files/vspace_data_backup/" + VGameDatabase.DB_VERSION
fun recoverValidData(context: Context) {
runOnIoThread {

View File

@ -1,8 +1,10 @@
package com.gh.vspace.db
import androidx.annotation.Keep
import androidx.room.Entity
import androidx.room.PrimaryKey
@Keep
@Entity
data class VArchiveEntity(
@PrimaryKey

View File

@ -1,11 +1,13 @@
package com.gh.vspace.db
import android.os.Parcelable
import androidx.annotation.Keep
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.lightgame.download.DownloadEntity
import kotlinx.parcelize.Parcelize
@Keep
@Parcelize
@Entity(tableName = "v_game")
data class VGameEntity(