From cce533680a317fee5484c653fa5898a3a4e7a422 Mon Sep 17 00:00:00 2001 From: CodeForFame Date: Sat, 7 Jan 2012 15:41:49 -0600 Subject: [PATCH] Actually made it use baseDir... --- .../msc/ls/persistence/impl/SerializedStorageMedium.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LoginServer/src/org/moparscape/msc/ls/persistence/impl/SerializedStorageMedium.java b/LoginServer/src/org/moparscape/msc/ls/persistence/impl/SerializedStorageMedium.java index 68c2acc..0187f63 100644 --- a/LoginServer/src/org/moparscape/msc/ls/persistence/impl/SerializedStorageMedium.java +++ b/LoginServer/src/org/moparscape/msc/ls/persistence/impl/SerializedStorageMedium.java @@ -33,7 +33,7 @@ public class SerializedStorageMedium implements StorageMedium { @Override public boolean savePlayer(PlayerSave s) { try { - File f = new File(s.getUsername()); + File f = new File(baseDir + File.separator + s.getUsername()); if(!f.exists()) f.createNewFile(); oos = new ObjectOutputStream(new FileOutputStream(f)); @@ -261,7 +261,7 @@ public class SerializedStorageMedium implements StorageMedium { public PlayerSave getPlayerData(long user) { - File userr = new File(DataConversions.hashToUsername(user)); + File userr = new File(baseDir + File.separator + DataConversions.hashToUsername(user)); if (!userr.exists() ) { return null;