mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-25 18:19:14 +00:00
v2 data manager support
This commit is contained in:
@@ -41,13 +41,24 @@ public class IrisDataManager
|
||||
private ObjectResourceLoader objectLoader;
|
||||
|
||||
public IrisDataManager(File dataFolder)
|
||||
{
|
||||
this(dataFolder, false);
|
||||
}
|
||||
|
||||
public IrisDataManager(File dataFolder, boolean v2)
|
||||
{
|
||||
this.dataFolder = dataFolder;
|
||||
this.packs = new File(dataFolder, ProjectManager.WORKSPACE_NAME);
|
||||
boolean pr = false;
|
||||
if(!packs.exists())
|
||||
{
|
||||
if(new File(dataFolder, "iris").exists())
|
||||
if(v2)
|
||||
{
|
||||
pr = true;
|
||||
packs = new File(dataFolder, "iris/pack");
|
||||
}
|
||||
|
||||
else if(new File(dataFolder, "iris").exists())
|
||||
{
|
||||
pr = true;
|
||||
packs = new File(dataFolder, "iris");
|
||||
@@ -58,6 +69,10 @@ public class IrisDataManager
|
||||
prod = pr;
|
||||
}
|
||||
|
||||
public IrisDataManager copy() {
|
||||
return new IrisDataManager(dataFolder);
|
||||
}
|
||||
|
||||
public void hotloaded()
|
||||
{
|
||||
if(prod)
|
||||
|
||||
Reference in New Issue
Block a user