ErosOlmi
21-02-2007, 23:15
Hi Petr,
I'm trying to create a bundled example using TopDown3D example.
As you may know, when a bundled exe is executed, it extract all bundled files as System/Hidden files.
I've discovered that some TBGL functions are not able to find files if they have System/Hidden attributes.
Do you think it will be possible to change this behave and been able to search for all kind of files?
We had the same problems when we started thinBundle and just solved with the following PB code:
FUNCTION File_Exists(BYVAL FullFileName AS STRING) AS LONG
FUNCTION = %FALSE
IF DIR$(FullFileName, %NORMAL OR %READONLY OR %HIDDEN OR %SYSTEM) = "" THEN EXIT FUNCTION
FUNCTION = %TRUE
END FUNCTION
Ciao
Eros
I'm trying to create a bundled example using TopDown3D example.
As you may know, when a bundled exe is executed, it extract all bundled files as System/Hidden files.
I've discovered that some TBGL functions are not able to find files if they have System/Hidden attributes.
Do you think it will be possible to change this behave and been able to search for all kind of files?
We had the same problems when we started thinBundle and just solved with the following PB code:
FUNCTION File_Exists(BYVAL FullFileName AS STRING) AS LONG
FUNCTION = %FALSE
IF DIR$(FullFileName, %NORMAL OR %READONLY OR %HIDDEN OR %SYSTEM) = "" THEN EXIT FUNCTION
FUNCTION = %TRUE
END FUNCTION
Ciao
Eros