Commit 9bc05cce authored by fallenstardust's avatar fallenstardust

更新和重置资源不覆盖textures

但新安装需要复制textures
parent f04ddf6d
......@@ -197,8 +197,6 @@ public class MainActivity extends HomeActivity{
IOUtils.copyFilesFromAssets(this, getDatapath(Constants.CORE_STRING_PATH),
AppsSettings.get().getResourcePath(), true);
IOUtils.copyFilesFromAssets(this, getDatapath(Constants.CORE_SKIN_PATH),
AppsSettings.get().getCoreSkinPath(), true);
} catch (IOException e) {
e.printStackTrace();
Log.e("MainActivity","错误"+e);
......
......@@ -144,10 +144,12 @@ public class ResCheckTask extends AsyncTask<Void, Integer, Integer> {
IOUtils.copyFilesFromAssets(mContext, getDatapath(Constants.CORE_SINGLE_PATH),
mSettings.getSingleDir(), needsUpdate);
}
//复制资源
setMessage(mContext.getString(R.string.check_things, mContext.getString(R.string.game_skins)));
IOUtils.copyFilesFromAssets(mContext, getDatapath(Constants.CORE_SKIN_PATH),
mSettings.getCoreSkinPath(), needsUpdate);
//复制贴图
if (needsUpdate) {
setMessage(mContext.getString(R.string.check_things, mContext.getString(R.string.game_skins)));
IOUtils.copyFilesFromAssets(mContext, getDatapath(Constants.CORE_SKIN_PATH),
mSettings.getCoreSkinPath(), false);
}
//复制字体
setMessage(mContext.getString(R.string.check_things, mContext.getString(R.string.font_files)));
IOUtils.copyFilesFromAssets(mContext, getDatapath(Constants.FONT_DIRECTORY),
......
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