Skip to content

Commit

Permalink
Fixed 2 of the errors
Browse files Browse the repository at this point in the history
if you comment the other "#end" it breaks!
  • Loading branch information
SyncGit12 committed Jan 11, 2025
1 parent ed5ce5e commit 5c61fb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1962,7 +1962,7 @@ class PlayState extends MusicBeatState
//#if (hxCodec < "3.0.0")
videoCutscene.load(filepath);

public function startAndEnd()
function startAndEnd()
{
if(endingSong)
endSong();
Expand Down Expand Up @@ -2008,7 +2008,7 @@ class PlayState extends MusicBeatState
else{
return; // Might crash the game btw
}
#end
//#end // No...
#else
FlxG.log.warn('Platform not supported!');
if (callback != null)
Expand Down
6 changes: 3 additions & 3 deletions source/StartupState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class StartupState extends MusicBeatState
super.update(elapsed);
}*/


// Lily, if you're reading this, copy this to the mobile branch, thanks! - SyncGit12
/*#if mobile
final file:String = FileSystem.readDirectory('./')[0];
Expand Down Expand Up @@ -106,7 +106,7 @@ class StartupState extends MusicBeatState
else{
return; // Might crash the game btw
}
#end
//#end // No...
#else
FlxG.log.warn('Platform not supported!');
if (callback != null)
Expand Down Expand Up @@ -232,7 +232,7 @@ class StartupState extends MusicBeatState
FlxG.switchState(TitleState.new);
});
#end
#end
//#end // No...
case 5:
#if VIDEOS_ALLOWED
var vidSprite = new MP4Handler(); // it plays but it doesn't show???
Expand Down

0 comments on commit 5c61fb3

Please sign in to comment.