Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Loading media from a resource file

Author
Message
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 10th Dec 2008 00:44
For the sake of user convenience, I want to include the media for my program in the executable. I've managed to get everything compiled into the exe without difficulty using Visual Studio. (I have 2008/Pro) The problem I'm facing now is accessing this data with the GDK's file commands. (dbLoadImage, &c.) Does anyone know, exactly, how this might be done?


My site, for various stuff that I make.
kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 10th Dec 2008 04:08
This has been discussed a lot. You might get some media loaded through MemBlocks, but not every type of media. The best path right now shoud be to extract the file, load, and delete it.

[center][center]
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 11th Dec 2008 00:39
Yeah, that's what I figured. Seeing as that is somewhat sloppy and would potentially cause a lot of disk fragmentation, I'd rather just include the media in sub folders. Inconvenient, but I'm not concerned with security.


My site, for various stuff that I make.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 12th Dec 2008 04:35
Quote: "and would potentially cause a lot of disk fragmentation"


Well... I just saw a demo from a buddy who uses DarkBasic Pro... he has all his media in these "*.uber" files.. which I think is kinda funny to start with... his game is a FPS called "ONE"... I don't know the links in the forum to it... but I wonder what he's doing to encode the media... hmm...

--Jason

Login to post a reply

Server time is: 2024-09-30 13:16:41
Your offset time is: 2024-09-30 13:16:41