From 96216d42580cac3db05b0c6bba537d747933ddcf Mon Sep 17 00:00:00 2001
From: Mihai Alexandru <77043862+MAJigsaw77@users.noreply.github.com>
Date: Sat, 23 Sep 2023 11:38:10 +0300
Subject: [PATCH] Implement `hxvlc`. (#207)
* Implement hxvlc.
* Better define for `VIDEO_CUTSCENES`.
* Update linux.yml
* Removed the libraries that aren't required
* Ok?
---
.github/workflows/linux.yml | 3 ++
libs.xml | 30 +++++++++----------
project.xml | 30 +++++++------------
.../backend/system/macros/ScriptsMacro.hx | 2 +-
source/funkin/game/cutscenes/VideoCutscene.hx | 2 +-
5 files changed, 30 insertions(+), 37 deletions(-)
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index 08e9b4d2..f7e7ef90 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -25,6 +25,9 @@ jobs:
export/release/linux/obj/
restore-keys: |
cache-build-linux
+ - name: Installing LibVLC
+ run: |
+ sudo apt-get install libvlc-dev libvlccore-dev
- name: Installing/Updating libraries
run: |
haxe -cp commandline -D analyzer-optimize --run Main setup
diff --git a/libs.xml b/libs.xml
index aad494a6..70e72592 100644
--- a/libs.xml
+++ b/libs.xml
@@ -1,24 +1,22 @@
-
+
-
-
-
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
diff --git a/project.xml b/project.xml
index d8bc062f..f6dbb443 100644
--- a/project.xml
+++ b/project.xml
@@ -21,7 +21,6 @@
-
@@ -53,12 +52,11 @@
-
+
-
@@ -74,17 +72,11 @@
-
-
-
-
-
-
@@ -113,10 +105,12 @@
-
+
-
+
@@ -157,7 +151,9 @@
-
+
@@ -177,18 +173,13 @@
-
-
+
+
-
-
-
@@ -208,5 +199,6 @@
+
diff --git a/source/funkin/backend/system/macros/ScriptsMacro.hx b/source/funkin/backend/system/macros/ScriptsMacro.hx
index c6509335..555dc8c1 100644
--- a/source/funkin/backend/system/macros/ScriptsMacro.hx
+++ b/source/funkin/backend/system/macros/ScriptsMacro.hx
@@ -21,7 +21,7 @@ class ScriptsMacro {
"flixel.addons.util",
// OTHER LIBRARIES & STUFF
"away3d", "flx3d",
- #if VIDEO_CUTSCENES "hxcodec.flixel", "hxcodec.openfl", "hxcodec.lime", #end
+ #if VIDEO_CUTSCENES "hxvlc.flixel", "hxvlc.openfl", #end
// BASE HAXE
"DateTools", "EReg", "Lambda", "StringBuf", "haxe.crypto", "haxe.display", "haxe.exceptions", "haxe.extern", "scripting"
])
diff --git a/source/funkin/game/cutscenes/VideoCutscene.hx b/source/funkin/game/cutscenes/VideoCutscene.hx
index 301cd9d3..68a86b92 100644
--- a/source/funkin/game/cutscenes/VideoCutscene.hx
+++ b/source/funkin/game/cutscenes/VideoCutscene.hx
@@ -9,7 +9,7 @@ import sys.io.File;
import funkin.backend.FunkinText;
import haxe.xml.Access;
#if VIDEO_CUTSCENES
-import hxcodec.flixel.FlxVideo;
+import hxvlc.flixel.FlxVideo;
#end
/**