Polish new conversion
This commit is contained in:
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* PlayerVaultsX
|
||||||
|
* Copyright (C) 2013 Trent Hensler
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
package com.drtshock.playervaults;
|
package com.drtshock.playervaults;
|
||||||
|
|
||||||
import com.drtshock.playervaults.vaultmanagement.CardboardBoxSerialization;
|
import com.drtshock.playervaults.vaultmanagement.CardboardBoxSerialization;
|
||||||
@@ -156,15 +174,15 @@ class Conversion {
|
|||||||
|
|
||||||
File oldDir;
|
File oldDir;
|
||||||
boolean recent;
|
boolean recent;
|
||||||
if (oldVaults.exists()) {
|
if (oldVaults.exists() && oldVaults.isDirectory()) {
|
||||||
logger.info("********** Starting data storage conversion **********");
|
logger.info("********** Starting data storage conversion **********");
|
||||||
logger.info("This might take a while.");
|
logger.info("This might take a while and might say \"unable to resolve\"");
|
||||||
logger.info(oldVaults.toString() + " will remain as a backup.");
|
logger.info(oldVaults.toString() + " will remain as a backup.");
|
||||||
recent = true;
|
recent = true;
|
||||||
oldDir = oldVaults;
|
oldDir = oldVaults;
|
||||||
} else if (reallyOldVaults.exists()) {
|
} else if (reallyOldVaults.exists() && oldVaults.isDirectory()) {
|
||||||
logger.info("********** Starting data storage conversion **********");
|
logger.info("********** Starting data storage conversion **********");
|
||||||
logger.info("This might take a while.");
|
logger.info("This might take a while and might say \"unable to resolve\"");
|
||||||
logger.info(reallyOldVaults.toString() + " will remain as a backup.");
|
logger.info(reallyOldVaults.toString() + " will remain as a backup.");
|
||||||
recent = false;
|
recent = false;
|
||||||
oldDir = reallyOldVaults;
|
oldDir = reallyOldVaults;
|
||||||
|
|||||||
Reference in New Issue
Block a user