mirror of
https://github.com/moparisthebest/MoparClassic
synced 2025-02-28 08:21:52 -05:00
Player data is now saved in a different folder...
This commit is contained in:
parent
d9d5da920b
commit
55775d0891
@ -7,9 +7,7 @@ import java.io.File;
|
|||||||
* @author xEnt
|
* @author xEnt
|
||||||
*/
|
*/
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.FileNotFoundException;
|
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.ObjectInputStream;
|
import java.io.ObjectInputStream;
|
||||||
import java.io.ObjectOutputStream;
|
import java.io.ObjectOutputStream;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@ -23,6 +21,14 @@ import org.moparscape.msc.ls.util.DataConversions;
|
|||||||
public class SerializedStorageMedium implements StorageMedium {
|
public class SerializedStorageMedium implements StorageMedium {
|
||||||
|
|
||||||
ObjectOutputStream oos;
|
ObjectOutputStream oos;
|
||||||
|
private static final String baseDir = "player_data";
|
||||||
|
|
||||||
|
static {
|
||||||
|
File f = new File(baseDir);
|
||||||
|
if(!f.exists()) {
|
||||||
|
f.mkdir();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean savePlayer(PlayerSave s) {
|
public boolean savePlayer(PlayerSave s) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user