Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
ok fixed weird startVideo() bug?
Browse files Browse the repository at this point in the history
  • Loading branch information
Leather128 committed Dec 13, 2021
1 parent d8d1817 commit 3dfaaa2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,13 @@ class PlayState extends MusicBeatState
public function startVideo(name:String, ?ext:String, ?endSongVar:Bool = false):Void {
#if BIT_64
#if VIDEOS_ALLOWED
if(endSongVar)
{
paused = true;
canPause = false;
switchedStates = true;
}

var foundFile:Bool = false;
var fileName:String = #if sys Sys.getCwd() + PolymodAssets.getPath(Paths.video(name, ext)) #else Paths.video(name, ext) #end;

Expand Down

0 comments on commit 3dfaaa2

Please sign in to comment.