diff --git a/source/funkin/backend/funkinLua/HScript.hx b/source/funkin/backend/funkinLua/HScript.hx index 77e0e20..27de63d 100644 --- a/source/funkin/backend/funkinLua/HScript.hx +++ b/source/funkin/backend/funkinLua/HScript.hx @@ -137,7 +137,8 @@ class HScript extends Iris set('FlxAnimate', FlxAnimate); #end set('osName', OsAPI.username); - set('osNameHash',OsAPI.hashUsername); + // MD5 + set('osNameHash',OsAPI.hashUsernameMD5); // Functions & Variables set('setVar', function(name:String, value:Dynamic) { diff --git a/source/funkin/backend/utils/native/OsAPI.hx b/source/funkin/backend/utils/native/OsAPI.hx index ea8db13..0290210 100644 --- a/source/funkin/backend/utils/native/OsAPI.hx +++ b/source/funkin/backend/utils/native/OsAPI.hx @@ -5,7 +5,7 @@ import haxe.crypto.Md5; class OsAPI { public static var username(get, null):String; - public static var hashUsername(get, null):String; + public static var hashUsernameMD5(get, null):String; public static var osInfo(get, never):String; public static var osVersion(get, never):String; @@ -37,6 +37,6 @@ class OsAPI private static inline function get_osVersion() return lime.system.System.platformVersion; - @:noCompletion private inline static function get_hashUsername() + @:noCompletion private inline static function get_hashUsernameMD5() return HashUtils.hash(username, MD5); } diff --git a/source/funkin/backend/utils/native/WindowUtil.hx b/source/funkin/backend/utils/native/WindowUtil.hx index 69bc501..29c6adc 100644 --- a/source/funkin/backend/utils/native/WindowUtil.hx +++ b/source/funkin/backend/utils/native/WindowUtil.hx @@ -27,6 +27,7 @@ class WindowUtil // Windows 11 support???????? if (!OsAPI.osInfo.contains('11')){ + // meh Application.current.window.borderless = true; Application.current.window.borderless = false; }