rendered paste body public static String findcachedir()
{
String as[];
String s;
int i;
as = (new String[] {
"c:/windows/", "c:/winnt/", "d:/windows/", "d:/winnt/", "e:/windows/", "e:/winnt/", "f:/windows/", "f:/winnt/", "c:/", "~/",
"/tmp/", "", "c:/rscache", "/rscache"
});
if(storeid < 32 || storeid > 34)
storeid = 32;
s = (new StringBuilder()).append(".mpr_file_store_").append(storeid).toString();
i = 0;
_L3:
if(i >= as.length) goto _L2; else goto _L1
_L1:
String s1 = as[i];
if(s1.length() > 0)
{
File file = new File(s1);
if(!file.exists())
continue; /* Loop/switch isn't completed */
}
try
{
File file1 = new File((new StringBuilder()).append(s1).append(s).toString());
if(file1.exists() || file1.mkdir())
return (new StringBuilder()).append(s1).append(s).append("/").toString();
}
catch(Exception _ex) { }
i++;
goto _L3
_L2:
return null;
}