GameLogger Create Dir If Doesn't Exist (#628)
This commit is contained in:
1 parent
83b2c119b3
commit
48d3f64795
1 file changed
+2
@@ -95,6 +95,8 @@ public class GameLogger {
|
||||
|
||||
if (!log.exists()) {
|
||||
try {
|
||||
if(!log.getParentFile().exists())
|
||||
log.getParentFile().mkdirs();
|
||||
log.createNewFile();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in new issue
Block a user