Some more stuffs

This commit is contained in:
Ne_Eo
2024-08-02 15:24:21 +02:00
parent 2e1fd5897a
commit 04ab53ee38
+10 -2
View File
@@ -28,13 +28,21 @@ class Macros {
var isHl = Context.defined("hl");
var compathx4 = [
"sys.db.Sqlite",
"sys.db.Mysql",
"sys.db.Connection",
"sys.db.ResultSet",
"haxe.remoting.Proxy",
];
if(Context.defined("sys")) {
for(inc in ["sys", "openfl.net", "funkin.backend.system.net"]) {
if(!isHl)
Compiler.include(inc, ["sys.db.Sqlite", "sys.db.Mysql"]);
Compiler.include(inc, compathx4);
else {
// TODO: Hashlink
//Compiler.include(inc, ["sys.net.UdpSocket", "openfl.net.DatagramSocket", "sys.db.Sqlite", "sys.db.Mysql"]); // fixes FATAL ERROR : Failed to load function std@socket_set_broadcast
//Compiler.include(inc, compathx4.concat(["sys.net.UdpSocket", "openfl.net.DatagramSocket"]); // fixes FATAL ERROR : Failed to load function std@socket_set_broadcast
}
}
}