improve termination sequence on windows, use patterns instead of textures as directory name

This commit is contained in:
2019-02-20 11:48:17 +01:00
parent 7faab0124d
commit 033c39aef5
8 changed files with 81 additions and 58 deletions

View File

@@ -93,23 +93,23 @@ public class MainActivity extends NativeActivity {
Log.v("PanoPainterJava", "create path failed: " + brush_thumbs.getAbsolutePath());
}
// textures
File textures = new File(pano_dir.getAbsolutePath(), "textures");
if (!textures.exists())
// patterns
File patterns = new File(pano_dir.getAbsolutePath(), "patterns");
if (!patterns.exists())
{
if (textures.mkdirs())
Log.v("PanoPainterJava", "create path " + textures.getAbsolutePath());
if (patterns.mkdirs())
Log.v("PanoPainterJava", "create path " + patterns.getAbsolutePath());
else
Log.v("PanoPainterJava", "create path failed: " + textures.getAbsolutePath());
Log.v("PanoPainterJava", "create path failed: " + patterns.getAbsolutePath());
}
File textures_thumbs = new File(textures.getAbsolutePath(), "thumbs");
if (!textures_thumbs.exists())
File patterns_thumbs = new File(patterns.getAbsolutePath(), "thumbs");
if (!patterns_thumbs.exists())
{
if (textures_thumbs.mkdirs())
Log.v("PanoPainterJava", "create path " + textures_thumbs.getAbsolutePath());
if (patterns_thumbs.mkdirs())
Log.v("PanoPainterJava", "create path " + patterns_thumbs.getAbsolutePath());
else
Log.v("PanoPainterJava", "create path failed: " + textures_thumbs.getAbsolutePath());
Log.v("PanoPainterJava", "create path failed: " + patterns_thumbs.getAbsolutePath());
}
// settings