|
|
@ -64,7 +64,7 @@ public class Natives { |
|
|
|
} |
|
|
|
} |
|
|
|
if (extractionDir == null) { |
|
|
|
if (extractionDir == null) { |
|
|
|
File workingFolder = new File("").getAbsoluteFile(); |
|
|
|
File workingFolder = new File("").getAbsoluteFile(); |
|
|
|
if (workingFolder.getUsableSpace()>0) { |
|
|
|
if (workingFolder.getUsableSpace() == 0 || !workingFolder.canWrite()) { |
|
|
|
logger.log(Level.WARNING, "Working directory is not writable. Using home directory instead."); |
|
|
|
logger.log(Level.WARNING, "Working directory is not writable. Using home directory instead."); |
|
|
|
extractionDir = new File(JmeSystem.getStorageFolder(), |
|
|
|
extractionDir = new File(JmeSystem.getStorageFolder(), |
|
|
|
"natives_" + Integer.toHexString(computeNativesHash())); |
|
|
|
"natives_" + Integer.toHexString(computeNativesHash())); |
|
|
|