Mac: Why can't data be found when it's in a .dmg?

BlitzMax Forums/BlitzMax Programming/Mac: Why can't data be found when it's in a .dmg?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

ChromeFly: Thanks for testing. Yeah it's weird as I know the code that looks for the png works as you can see by dragging the app onto the desktop. All I do is this:

	'try a png and if that doesn't exist, try a jpg.
	If ccFileExists(prefix+"data/portallogo.png") Then
		splash.Init(prefix+""data/portallogo.png")
	Else
		splash.Init(prefix+""data/portallogo.jpg")
	EndIf
[code]

Where ccFileExists is this:

[code]
' -----------------------------------------------------------------------------
' ccFileExists: See if a file exists or not
' -----------------------------------------------------------------------------
Function ccFileExists%(filename$)
	Local file:TStream=OpenFile(filename)
	If file Then
		CloseStream file
		Return 1
	Else
		Return 0
	EndIf
End Function