• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weird missing file...
#3
Sorry, I forgot some code that is necessary.

this is the complete code:

command initializeAppLibraries
local tAppLibraryPath, tLibraryContents
global LOFlag

set the itemDel to "/"

if the environment is "development" then
put item 1 to -2 of (the effective fileName of this stack) into tAppLibraryPath
else
switch the platform
case "android"
case "iPhone"
put specialFolderPath("engine") into tAppLibraryPath
break

case "MacOS"
put specialFolderPath("resources") into tAppLibraryPath
break

case "Win32"
case "Linux"
put item 1 to -2 of (the effective fileName of this stack) into tAppLibraryPath
break
end switch
end if

set the defaultfolder to tAppLibraryPath
put "/App_libraries/" after tAppLibraryPath
set the defaultfolder to tAppLibraryPath
put the files after tLibraryContents
-- if LOFlag is true then
-- unLoad_App_Libraries tLibraryContents, tAppLibraryPath
-- end if
Load_App_Libraries tLibraryContents, tAppLibraryPath
end initializeAppLibraries

command Load_App_Libraries, tAppLibraryContents
local tPath, tStack, tLibraryNames, tLContents, tLNames
--THE FOLLOWING CODE WILL only LOAD LIBRARY FILES
filter tAppLibraryContents without empty
filter tAppLibraryContents with "*.lib"
repeat for each line xStackName in tAppLibraryContents
try
start using xStackName
catch error
answer "Please check your Library stack" & cr & " There is an error in your stack " & xStackName
exit to top
end try

end repeat

end Load_App_Libraries
  Reply


Messages In This Thread
Weird missing file... - by stamatis - 12-07-2021, 08:03 AM
RE: Weird missing file... - by clarencemartin - 12-07-2021, 12:03 PM
RE: Weird missing file... - by clarencemartin - 12-07-2021, 05:33 PM
RE: Weird missing file... - by stamatis - 12-07-2021, 11:20 PM
RE: Weird missing file... - by mark_talluto - 12-08-2021, 01:21 AM
RE: Weird missing file... - by mark_talluto - 12-08-2021, 01:50 AM
RE: Weird missing file... - by stamatis - 12-09-2021, 09:35 AM
RE: Weird missing file... - by mark_talluto - 12-10-2021, 11:41 PM
RE: Weird missing file... - by clarencemartin - 12-11-2021, 12:33 AM
RE: Weird missing file... - by mark_talluto - 12-13-2021, 08:00 PM
RE: Weird missing file... - by clarencemartin - 12-13-2021, 08:13 PM
RE: Weird missing file... - by mark_talluto - 12-13-2021, 08:38 PM
RE: Weird missing file... - by clarencemartin - 12-13-2021, 08:47 PM
RE: Weird missing file... - by stamatis - 12-14-2021, 02:33 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)