1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-04 13:54:22 +00:00

Merge pull request #425 from FunkinCrew/feature/more-new-charts

Update several charts (Lit Up, 2hot, High Erect, South Erect)
This commit is contained in:
Cameron Taylor 2024-03-27 01:10:17 -04:00 committed by GitHub
commit 31827f30b1
2 changed files with 6 additions and 2 deletions

2
assets

@ -1 +1 @@
Subproject commit fda21459bdbf6198c1c39d60e347782d7286eda6
Subproject commit 8013845e331015b40c4cc35230f6d02bd2148d52

View file

@ -431,7 +431,11 @@ class SongRegistry extends BaseRegistry<Song, SongMetadata>
{
variation = variation == null ? Constants.DEFAULT_VARIATION : variation;
var entryFilePath:String = Paths.json('$dataFilePath/$id/$id-metadata${variation == Constants.DEFAULT_VARIATION ? '' : '-$variation'}');
if (!openfl.Assets.exists(entryFilePath)) return null;
if (!openfl.Assets.exists(entryFilePath))
{
trace(' [WARN] Could not locate file $entryFilePath');
return null;
}
var rawJson:Null<String> = openfl.Assets.getText(entryFilePath);
if (rawJson == null) return null;
rawJson = rawJson.trim();