Package zombie
Class ZomboidFileSystem
java.lang.Object
zombie.ZomboidFileSystem
public final class ZomboidFileSystem
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ZomboidFileSystem.IWalkFilesVisitor
-
Field Summary
Fields Modifier and Type Field Description java.util.HashMap
ActiveFileMap
java.io.File
base
java.net.URI
baseURI
boolean
IgnoreActiveFileMap
static ZomboidFileSystem
instance
-
Method Summary
Modifier and Type Method Description void
cleanMultiplayerSaves()
boolean
deleteFile(java.lang.String string)
static boolean
ensureFolderExists(java.io.File file)
static boolean
ensureFolderExists(java.lang.String string)
java.lang.String
getAbsolutePath(java.lang.String string)
java.lang.String
getAbsoluteWorkDir()
java.lang.String
getActionGroupsPath()
void
getAllModFolders(java.util.List list)
java.lang.Object[]
getAllPathsContaining(java.lang.String string)
java.lang.Object[]
getAllPathsContaining(java.lang.String string, java.lang.String string2)
java.lang.String
getAnimName(java.net.URI uRI, java.io.File file)
java.lang.String
getAnimSetsPath()
java.lang.String
getCacheDir()
java.lang.String
getCacheDirSub(java.lang.String string)
FileGuidTable
getFileGuidTable()
java.io.File
getFileInCurrentSave(java.lang.String string)
java.io.File
getFileInCurrentSave(java.lang.String string, java.lang.String string2)
java.io.File
getFileInCurrentSave(java.lang.String string, java.lang.String string2, java.lang.String string3)
java.lang.String
getFileNameInCurrentSave(java.lang.String string)
java.lang.String
getFileNameInCurrentSave(java.lang.String string, java.lang.String string2)
java.lang.String
getFileNameInCurrentSave(java.lang.String string, java.lang.String string2, java.lang.String string3)
java.lang.String
getFilePathFromGuid(java.lang.String string)
java.lang.String
getGameModeCacheDir()
java.lang.String
getGuidFromFilePath(java.lang.String string)
void
getInstalledItemModsFolders(java.util.ArrayList arrayList)
java.lang.String
getLocalWorkDir()
java.lang.String
getLocalWorkDirSub(java.lang.String string)
java.io.File
getMediaFile(java.lang.String string)
java.lang.String
getMediaPath(java.lang.String string)
java.io.File
getMediaRootFile()
java.lang.String
getMediaRootPath()
java.lang.String
getMessagingDir()
java.lang.String
getMessagingDirSub(java.lang.String string)
java.lang.String
getModDir(java.lang.String string)
java.util.ArrayList
getModIDs()
ChooseGameInfo.Mod
getModInfoForDir(java.lang.String string)
java.lang.String
getRelativeFile(java.io.File file)
java.lang.String
getRelativeFile(java.lang.String string)
java.lang.String
getRelativeFile(java.net.URI uRI, java.io.File file)
java.lang.String
getRelativeFile(java.net.URI uRI, java.lang.String string)
java.lang.String
getSaveDir()
java.lang.String
getSaveDirSub(java.lang.String string)
java.lang.String
getScreenshotDir()
java.lang.String
getScreenshotDirSub(java.lang.String string)
void
getStagedItemModsFolders(java.util.ArrayList arrayList)
java.lang.String
getString(java.lang.String string)
java.util.ArrayList
getWorkshopItemMods(long long1)
void
init()
boolean
isValidFilePathGuid(java.lang.String string)
static java.io.File[]
listAllDirectories(java.io.File file, java.io.FileFilter fileFilter, boolean boolean1)
static java.io.File[]
listAllDirectories(java.lang.String string, java.io.FileFilter fileFilter, boolean boolean1)
static java.io.File[]
listAllFiles(java.io.File file, java.io.FileFilter fileFilter, boolean boolean1)
static java.io.File[]
listAllFiles(java.lang.String string, java.io.FileFilter fileFilter, boolean boolean1)
void
loadFileGuidTable()
void
loadMod(java.lang.String string)
void
loadModPackFiles()
void
loadMods(java.lang.String string)
void
loadMods(java.util.ArrayList arrayList)
java.lang.String
loadModsAux(java.util.ArrayList arrayList, java.util.ArrayList arrayList2)
void
loadModTileDefPropertyStrings()
void
loadModTileDefs()
java.lang.String
normalizeFolderPath(java.lang.String string)
static java.lang.String
processFilePath(java.lang.String string, char char1)
void
Reset()
void
resetDefaultModsForNewRelease(java.lang.String string)
void
resetModFolders()
java.lang.String[]
resolveAllDirectories(java.lang.String string, java.io.FileFilter fileFilter, boolean boolean1)
java.lang.String[]
resolveAllFiles(java.lang.String string, java.io.FileFilter fileFilter, boolean boolean1)
java.lang.String
resolveFileOrGUID(java.lang.String string)
java.lang.String
resolveRelativePath(java.lang.String string, java.lang.String string2)
void
saveModsFile()
void
searchFolders(java.io.File file)
ChooseGameInfo.Mod
searchForModInfo(java.io.File file, java.lang.String string, java.util.ArrayList arrayList)
void
setCacheDir(java.lang.String string)
void
setModFoldersOrder(java.lang.String string)
boolean
tryDeleteFile(java.lang.String string)
void
update()
void
walkGameAndModFiles(java.lang.String string, boolean boolean1, ZomboidFileSystem.IWalkFilesVisitor iWalkFilesVisitor)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
ActiveFileMap
public final java.util.HashMap ActiveFileMap -
base
public java.io.File base -
baseURI
public java.net.URI baseURI -
IgnoreActiveFileMap
public boolean IgnoreActiveFileMap
-
-
Method Details
-
init
public void init() throws java.io.IOException- Throws:
java.io.IOException
-
getGameModeCacheDir
public java.lang.String getGameModeCacheDir() -
getFileNameInCurrentSave
public java.lang.String getFileNameInCurrentSave(java.lang.String string) -
getFileNameInCurrentSave
public java.lang.String getFileNameInCurrentSave(java.lang.String string, java.lang.String string2) -
getFileNameInCurrentSave
public java.lang.String getFileNameInCurrentSave(java.lang.String string, java.lang.String string2, java.lang.String string3) -
getFileInCurrentSave
public java.io.File getFileInCurrentSave(java.lang.String string) -
getFileInCurrentSave
public java.io.File getFileInCurrentSave(java.lang.String string, java.lang.String string2) -
getFileInCurrentSave
public java.io.File getFileInCurrentSave(java.lang.String string, java.lang.String string2, java.lang.String string3) -
getSaveDir
public java.lang.String getSaveDir() -
getSaveDirSub
public java.lang.String getSaveDirSub(java.lang.String string) -
getScreenshotDir
public java.lang.String getScreenshotDir() -
getScreenshotDirSub
public java.lang.String getScreenshotDirSub(java.lang.String string) -
setCacheDir
public void setCacheDir(java.lang.String string) -
getCacheDir
public java.lang.String getCacheDir() -
getCacheDirSub
public java.lang.String getCacheDirSub(java.lang.String string) -
getMessagingDir
public java.lang.String getMessagingDir() -
getMessagingDirSub
public java.lang.String getMessagingDirSub(java.lang.String string) -
getMediaRootFile
public java.io.File getMediaRootFile() -
getMediaRootPath
public java.lang.String getMediaRootPath() -
getMediaFile
public java.io.File getMediaFile(java.lang.String string) -
getMediaPath
public java.lang.String getMediaPath(java.lang.String string) -
getAbsoluteWorkDir
public java.lang.String getAbsoluteWorkDir() -
getLocalWorkDir
public java.lang.String getLocalWorkDir() -
getLocalWorkDirSub
public java.lang.String getLocalWorkDirSub(java.lang.String string) -
getAnimSetsPath
public java.lang.String getAnimSetsPath() -
getActionGroupsPath
public java.lang.String getActionGroupsPath() -
ensureFolderExists
public static boolean ensureFolderExists(java.lang.String string) -
ensureFolderExists
public static boolean ensureFolderExists(java.io.File file) -
searchFolders
public void searchFolders(java.io.File file) -
getAllPathsContaining
public java.lang.Object[] getAllPathsContaining(java.lang.String string) -
getAllPathsContaining
public java.lang.Object[] getAllPathsContaining(java.lang.String string, java.lang.String string2) -
getString
public java.lang.String getString(java.lang.String string) -
getAbsolutePath
public java.lang.String getAbsolutePath(java.lang.String string) -
Reset
public void Reset() -
resetModFolders
public void resetModFolders() -
getInstalledItemModsFolders
public void getInstalledItemModsFolders(java.util.ArrayList arrayList) -
getStagedItemModsFolders
public void getStagedItemModsFolders(java.util.ArrayList arrayList) -
setModFoldersOrder
public void setModFoldersOrder(java.lang.String string) -
getAllModFolders
public void getAllModFolders(java.util.List list) -
getWorkshopItemMods
public java.util.ArrayList getWorkshopItemMods(long long1) -
searchForModInfo
public ChooseGameInfo.Mod searchForModInfo(java.io.File file, java.lang.String string, java.util.ArrayList arrayList) -
loadMod
public void loadMod(java.lang.String string) -
loadMods
public void loadMods(java.lang.String string) -
loadModsAux
public java.lang.String loadModsAux(java.util.ArrayList arrayList, java.util.ArrayList arrayList2) -
loadMods
public void loadMods(java.util.ArrayList arrayList) -
getModIDs
public java.util.ArrayList getModIDs() -
getModDir
public java.lang.String getModDir(java.lang.String string) -
getModInfoForDir
-
getRelativeFile
public java.lang.String getRelativeFile(java.io.File file) -
getRelativeFile
public java.lang.String getRelativeFile(java.lang.String string) -
getRelativeFile
public java.lang.String getRelativeFile(java.net.URI uRI, java.io.File file) -
getRelativeFile
public java.lang.String getRelativeFile(java.net.URI uRI, java.lang.String string) -
getAnimName
public java.lang.String getAnimName(java.net.URI uRI, java.io.File file) -
resolveRelativePath
public java.lang.String resolveRelativePath(java.lang.String string, java.lang.String string2) -
saveModsFile
public void saveModsFile() -
loadModPackFiles
public void loadModPackFiles() -
loadModTileDefs
public void loadModTileDefs() -
loadModTileDefPropertyStrings
public void loadModTileDefPropertyStrings() -
loadFileGuidTable
public void loadFileGuidTable() -
getFileGuidTable
-
getFilePathFromGuid
public java.lang.String getFilePathFromGuid(java.lang.String string) -
getGuidFromFilePath
public java.lang.String getGuidFromFilePath(java.lang.String string) -
resolveFileOrGUID
public java.lang.String resolveFileOrGUID(java.lang.String string) -
isValidFilePathGuid
public boolean isValidFilePathGuid(java.lang.String string) -
listAllDirectories
public static java.io.File[] listAllDirectories(java.lang.String string, java.io.FileFilter fileFilter, boolean boolean1) -
listAllDirectories
public static java.io.File[] listAllDirectories(java.io.File file, java.io.FileFilter fileFilter, boolean boolean1) -
listAllFiles
public static java.io.File[] listAllFiles(java.lang.String string, java.io.FileFilter fileFilter, boolean boolean1) -
listAllFiles
public static java.io.File[] listAllFiles(java.io.File file, java.io.FileFilter fileFilter, boolean boolean1) -
walkGameAndModFiles
public void walkGameAndModFiles(java.lang.String string, boolean boolean1, ZomboidFileSystem.IWalkFilesVisitor iWalkFilesVisitor) -
resolveAllDirectories
public java.lang.String[] resolveAllDirectories(java.lang.String string, java.io.FileFilter fileFilter, boolean boolean1) -
resolveAllFiles
public java.lang.String[] resolveAllFiles(java.lang.String string, java.io.FileFilter fileFilter, boolean boolean1) -
normalizeFolderPath
public java.lang.String normalizeFolderPath(java.lang.String string) -
processFilePath
public static java.lang.String processFilePath(java.lang.String string, char char1) -
tryDeleteFile
public boolean tryDeleteFile(java.lang.String string) -
deleteFile
public boolean deleteFile(java.lang.String string) throws java.io.IOException- Throws:
java.io.IOException
-
update
public void update() -
cleanMultiplayerSaves
public void cleanMultiplayerSaves() -
resetDefaultModsForNewRelease
public void resetDefaultModsForNewRelease(java.lang.String string)
-