straight-oyster-87301
01/26/2022, 4:53 PMDEFINE_PRIM(_BYTES, hl_dialogs_folder, _STRING _STRING); ??? is it a haxe issue?straight-oyster-87301
01/26/2022, 4:53 PMString and not hl.Bytesstraight-oyster-87301
01/26/2022, 4:55 PMpowerful-morning-89
01/26/2022, 4:56 PMchar * ie hl.Bytes.
So the underlying type of HString should also be hl.Bytes.straight-oyster-87301
01/26/2022, 4:56 PMstraight-oyster-87301
01/26/2022, 4:57 PMabstract HString(hl.Bytes) from hl.Bytes to hl.Bytes {
@:to
function toString():String {
return cast @:privateAccess String.fromUTF8(this);
}
@:from
static function fromString(str:String) {
return cast @:privateAccess str.toUtf8();
}
}straight-oyster-87301
01/26/2022, 4:57 PM/home/bulby/Documents/GitHub/systools/systools/Dialogs.hx:100: characters 3-142 : error: systools.hl.HString should be String
/home/bulby/Documents/GitHub/systools/systools/Dialogs.hx:100: characters 3-142 : ... have: Array<systools.hl.HString>
/home/bulby/Documents/GitHub/systools/systools/Dialogs.hx:100: characters 3-142 : ... want: Array<String>powerful-morning-89
01/26/2022, 4:59 PMhstring_array.map(s -> (s:String)).powerful-morning-89
01/26/2022, 4:59 PM[for(s in hstring_array) (s:String)].straight-oyster-87301
01/26/2022, 5:05 PMsrc/module.c(478) : FATAL ERROR : Invalid signature for function systools@hl_dialogs_open_file : POBi_OBi_?b_OA_ required but POBi_OBi_NDb_A found in hdll i can't read hl typestraight-oyster-87301
01/26/2022, 5:05 PMc
DEFINE_PRIM(_ARR, hl_dialogs_open_file, _STRING _STRING _NULL(_DYN) _BOOL);//note thisstraight-oyster-87301
01/26/2022, 5:05 PMhaxe
public static function hlDialogsOpenFile(title:String, msg:String, mask:FILEFILTERS, multi:Bool):Array<HString>straight-oyster-87301
01/26/2022, 5:10 PM_DYN isn't the correct thing to use? FILEFILTERS is a anonymous objectbright-gpu-74537
01/26/2022, 5:14 PMbright-gpu-74537
01/26/2022, 5:15 PMpowerful-morning-89
01/26/2022, 5:28 PM_ARR is hl.NativeArray.
_NULL(_T) is Null<T>.straight-oyster-87301
01/26/2022, 5:29 PMstraight-oyster-87301
01/26/2022, 5:29 PMhallowed-ocean-84954
01/26/2022, 6:00 PMlime test hl -D haxeui_no_network
or better
adding a separate Hashlink install location to the PATH, not HL_PATH, and then running lime test hlhallowed-ocean-84954
01/26/2022, 6:01 PMstraight-oyster-87301
01/26/2022, 6:31 PMstraight-oyster-87301
01/26/2022, 6:35 PMstraight-oyster-87301
01/26/2022, 6:36 PMenough-lawyer-1858
01/26/2022, 9:08 PMstraight-oyster-87301
01/27/2022, 12:04 PMstraight-oyster-87301
01/27/2022, 12:04 PMstraight-oyster-87301
01/27/2022, 12:07 PMorange-van-60470
01/27/2022, 12:12 PMorange-van-60470
01/27/2022, 12:12 PM