Commit 6fb5e66b authored by fallenstardust's avatar fallenstardust

复制卡包前先清空pack文件夹

新旧卡包展示模式过渡
parent 24b73cb0
...@@ -9,7 +9,7 @@ android { ...@@ -9,7 +9,7 @@ android {
minSdkVersion 21 minSdkVersion 21
//noinspection ExpiredTargetSdkVersion //noinspection ExpiredTargetSdkVersion
targetSdkVersion 29 targetSdkVersion 29
versionCode 310030923 versionCode 310030924
versionName "3.10.3" versionName "3.10.3"
flavorDimensions "versionCode" flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
......
...@@ -228,6 +228,11 @@ public class ResCheckTask extends AsyncTask<Void, Integer, Integer> { ...@@ -228,6 +228,11 @@ public class ResCheckTask extends AsyncTask<Void, Integer, Integer> {
mSettings.getDeckDir(), needsUpdate); mSettings.getDeckDir(), needsUpdate);
} }
//复制卡包 //复制卡包
File pack = new File(mSettings.get().getPackDeckDir());
File[] subYdks = pack.listFiles();
for (File packs : subYdks) {
packs.delete();
}
IOUtils.copyFilesFromAssets(mContext, getDatapath(Constants.CORE_PACK_PATH), IOUtils.copyFilesFromAssets(mContext, getDatapath(Constants.CORE_PACK_PATH),
mSettings.get().getPackDeckDir(), needsUpdate); mSettings.get().getPackDeckDir(), needsUpdate);
//复制残局 //复制残局
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment