Skip to content

Commit

Permalink
0.8.0a
Browse files Browse the repository at this point in the history
Fix a crash and an oversight
  • Loading branch information
UmbratheUmbreon committed Mar 11, 2023
1 parent 0003913 commit f495250
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions source/CharacterSelectSubstate.hx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ class CharacterSelectSubstate extends MusicBeatSubstate
Paths.setModsDirectoryFromType(NONE, '', true);
}

var alreadyDoingExit:Bool = false;
function leEpicTween() {
if (alreadyDoingExit) return;
alreadyDoingExit = true;
FlxTween.tween(bg, {alpha: 0}, 0.7, {
onComplete: function(_) {
bg.kill();
Expand Down
2 changes: 1 addition & 1 deletion source/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Main extends Sprite
*
* Use `debugVersion` to get the version with build date.
*/
public static final denpaEngineVersion:GameVersion = new GameVersion(0, 8, 0, '');
public static final denpaEngineVersion:GameVersion = new GameVersion(0, 8, 0, 'a');

public static var fpsCounter:FramerateDisplay;
public static var ramCount:DebugDisplay;
Expand Down
18 changes: 18 additions & 0 deletions source/Paths.hx
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,24 @@ class Paths
if (!a.endsWith('.json')) continue;
stageMap.set(a.substr(0, a.length - 5), '');
}
if (FileSystem.exists('mods/data/characters')) {
for (a in FileSystem.readDirectory('mods/data/characters')) {
if (!a.endsWith('.json')) continue;
characterMap.set(a.substr(0, a.length - 5), '');
}
}
if (FileSystem.exists('mods/data/stages')) {
for (a in FileSystem.readDirectory('mods/data/stages')) {
if (!a.endsWith('.json')) continue;
characterMap.set(a.substr(0, a.length - 5), '');
}
}
if (FileSystem.exists('mods/images/icons')) {
for (a in FileSystem.readDirectory('mods/images/icons')) {
if (!a.endsWith('.png')) continue;
iconsMap.set(a.substr(0, a.length - 4).replace('icon-', ''), '');
}
}
}
#end
}
Expand Down

0 comments on commit f495250

Please sign in to comment.