diff --git a/trunk/dist/game/data/html_classic/readme.txt b/trunk/dist/game/data/html_classic/readme.txt new file mode 100644 index 0000000000..ce05d058b9 --- /dev/null +++ b/trunk/dist/game/data/html_classic/readme.txt @@ -0,0 +1,6 @@ +All files that are located in this folder will replace the ones from the html folder. + +Any additional files in this folder they will work as well as if they where in the html folder. + +WARNING +LazyCache config at General.properties must be set as False \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/handlers/admincommandhandlers/AdminReload.java b/trunk/dist/game/data/scripts/handlers/admincommandhandlers/AdminReload.java index ec97d9b9c8..9acbc6bb88 100644 --- a/trunk/dist/game/data/scripts/handlers/admincommandhandlers/AdminReload.java +++ b/trunk/dist/game/data/scripts/handlers/admincommandhandlers/AdminReload.java @@ -137,7 +137,13 @@ public class AdminReload implements IAdminCommandHandler { final String path = st.nextToken(); final File file = new File(Config.DATAPACK_ROOT, "data/html/" + path); - if (file.exists()) + final File file_classic = new File(Config.DATAPACK_ROOT, "data/html_classic/" + path); + if (Config.SERVER_CLASSIC_SUPPORT && file_classic.exists()) + { + HtmCache.getInstance().reload(file_classic); + AdminData.getInstance().broadcastMessageToGMs(activeChar.getName() + ": Reloaded Htm File:" + file_classic.getName() + "."); + } + else if (file.exists()) { HtmCache.getInstance().reload(file); AdminData.getInstance().broadcastMessageToGMs(activeChar.getName() + ": Reloaded Htm File:" + file.getName() + "."); diff --git a/trunk/java/com/l2jserver/gameserver/cache/HtmCache.java b/trunk/java/com/l2jserver/gameserver/cache/HtmCache.java index 72f5b72977..8f3d02dd0a 100644 --- a/trunk/java/com/l2jserver/gameserver/cache/HtmCache.java +++ b/trunk/java/com/l2jserver/gameserver/cache/HtmCache.java @@ -114,7 +114,8 @@ public class HtmCache return null; } - final String relpath = Util.getRelativePath(Config.DATAPACK_ROOT, file); + String relpath = Util.getRelativePath(Config.DATAPACK_ROOT, file); + relpath = relpath.replace("_classic", ""); String content = null; try (FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis))