添加复制

This commit is contained in:
xsl
2025-09-23 20:04:09 +08:00
parent 599e041732
commit 7ff02db939
2 changed files with 28 additions and 0 deletions
@@ -58,6 +58,16 @@ public class MainActivity extends GameActivity implements FaceLandmarkerHelper.L
@Override
protected void onCreate(Bundle savedInstanceState) {
if (!AssetsCopyUtil.isExternalStorageAvailable()) {
Log.w(TAG, "External storage not available, skipping assets copy");
return;
}
AssetsCopyUtil.copyAssetsToAppFiles(this, "assets");
AssetsCopyUtil.copyAssetsToAppFiles(this, "shaders");
String native_lib_name = getResources().getString(R.string.native_lib_name);
try {
System.loadLibrary(native_lib_name);