Switch to a LRU cache for beatmap background images.
Created a separate BeatmapImageCache class to handle cache operations. The cache now uses File objects as keys, rather than Beatmap objects (which was buggy). Also renamed "OsuHitObjectResult" helper class to "HitObjectResult". Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -440,7 +440,7 @@ public class BeatmapParser {
|
||||
tokens[2] = tokens[2].replaceAll("^\"|\"$", "");
|
||||
String ext = BeatmapParser.getExtension(tokens[2]);
|
||||
if (ext.equals("jpg") || ext.equals("png"))
|
||||
beatmap.bg = getDBString(tokens[2]);
|
||||
beatmap.bg = new File(dir, getDBString(tokens[2]));
|
||||
break;
|
||||
case "2": // break periods
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user