public static String getCacheStorageLocation () {
        if (CommandLineSettings.getSettings().getCacheDir() != null && !CommandLineSettings.getSettings().getCacheDir().isEmpty()) {
            return CommandLineSettings.getSettings().getCacheDir();
        }
        switch (getCurrentOS()) {
        case WINDOWS:
            if (System.getenv("LOCALAPPDATA") != null && System.getenv("LOCALAPPDATA").length() > 5)
                return System.getenv("LOCALAPPDATA") + "/CRACKEDftntlauncher/";
            else
                return System.getenv("APPDATA") + "/CRACKEDftntlauncher/";
        case MACOSX:
            return cachedUserHome + "/Library/Application Support/CRACKEDftntlauncher/";
        case UNIX:
        default:
            return getDefInstallPath() + "/temp/";
        }
    }