new options

This commit is contained in:
Yoshman29
2022-11-01 00:06:52 +01:00
parent 150d42aa20
commit 01ee539cce
18 changed files with 655 additions and 505 deletions
+19 -1
View File
@@ -7,9 +7,27 @@ package funkin.windows;
* Does not have any effect on other platforms.
*/
class WindowsAPI {
public static function registerAudio() {
@:dox(hide) public static function registerAudio() {
#if windows
native.WinAPI.registerAudio();
#end
}
/**
* Allocates a new console. The console will automatically be opened
*/
public static function allocConsole() {
#if windows
native.WinAPI.allocConsole();
#end
}
/**
* Sets the window titlebar to dark mode (Windows 10 only)
*/
public static function setDarkMode(enable:Bool) {
#if windows
native.WinAPI.setDarkMode(enable);
#end
}
}