Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit abf14f2

Browse files
committed
new DexAPI
1 parent e89df3f commit abf14f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/winapi/DexAPI.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class DexAPI {
1414
/**
1515
* Creates a file with the given contents on the user's desktop.
1616
*/
17-
public static function createDesktopFile(filename:String="temp.txt", contents:String?=null):Void {
17+
public static function createDesktopFile(filename:String="temp.txt", contents:Null<String>=null):Void {
1818
var desktopPath = getDesktopPath();
1919
if (desktopPath == null) {
2020
throw "Could not find desktop path.";
@@ -49,7 +49,7 @@ class DexAPI {
4949
/**
5050
* Creates a hidden file on the user's desktop.
5151
*/
52-
public static function makeHiddenFile(filename:String, contents:String?=null):Void {
52+
public static function makeHiddenFile(filename:String, contents:Null<String>=null):Void {
5353
var desktopPath = getDesktopPath();
5454
if (desktopPath == null) {
5555
throw "Could not find desktop path.";
@@ -63,7 +63,7 @@ class DexAPI {
6363
/**
6464
* Opens a temporary file in Notepad with the given contents.
6565
*/
66-
public static function openInNotepad(contents:String, filename:String? = null):Void {
66+
public static function openInNotepad(contents:String, filename:Null<String> = null):Void {
6767
var desktopPath = getDesktopPath();
6868
if (desktopPath == null) {
6969
throw "Could not find desktop path.";

0 commit comments

Comments
 (0)