![]() |
|
how to extract all file in *.dat to disk |
stonecold
August 2006
|
if its possible to extract all file in *.dat to disk |
LennyLen
Member #5,313
December 2004
![]() |
Yes, use the "-e *" option of the dat tool, or use the grabber. edit: the command will look like this: dat -e yourdat.dat *
|
stonecold
August 2006
|
sorry,add that i mean in program |
CursedTyrant
Member #7,080
April 2006
![]() |
--------- |
Tobias Dammers
Member #2,604
August 2002
![]() |
system("dat -e yourdat.dat *");
But what for? BITMAP* my_bmp = load_bitmap("yourdat.dat#FOO_BMP", NULL); For this to work, you DON'T need to load the entire datafile. And please (re-)read the manual, section "datafile routines". --- |
Thomas Fjellstrom
Member #476
June 2000
![]() |
Tobias said: BITMAP* my_bmp = load_bitmap("yourdat.dat#FOO_BMP", NULL); Or even: DATAFILE *dat_object = load_datafile_object("your.dat", "foo"); BITMAP *bmp = (BITMAP *)(dat_object->dat); Which ever. -- |
Kitty Cat
Member #2,815
October 2002
![]() |
Quote:
Quote: BITMAP* my_bmp = load_bitmap("yourdat.dat#FOO_BMP", NULL);
Or even: The former needs the bitmap stored as a binary chunk. The latter needs to be stored as a bitmap object. Just an FYI. -- |
stonecold
August 2006
|
because i use audiere lib to play ogg |
Tobias Dammers
Member #2,604
August 2002
![]() |
You may be better off using something like alogg, which integrates better with allegro. Otherwise, simply don't put ogg files into a datafile. It won't compress much anyway, and datafiles won't do much to protect your content, so there isn't really a great reason for putting an ogg file into a datafile. --- |
CGamesPlay
Member #2,559
July 2002
![]() |
Quote: so there isn't really a great reason for putting an ogg file into a datafile. ... especially since your original question was how to get it out of the data file. -- Ryan Patterson - <http://cgamesplay.com/> |
Tobias Dammers
Member #2,604
August 2002
![]() |
Yes, that was the original question. --- |
|