Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#79282 - 10/03/2002 16:04 Writing DynamicData?
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
Emptool has the source for reading dynamic data from the player... Does anyone know how to write that data? Do I basically just have to do the inverse of the code that is in ProtocolClient.RetrieveDatabases, or is there an easier way?

Mike

Top
#79283 - 11/03/2002 07:44 Re: Writing DynamicData? [Re: mschrag]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
Do I basically just have to do the inverse of the code that is in ProtocolClient.RetrieveDatabases, or is there an easier way?

No, there's a harder way

FID_DYNAMICDATABASE isn't writable. You can write the dynamic data for an individual fid by writing the FID|0xF file. The data you write to it is the WrappedDynamicData structure from lib/protocol/dyndata_format.h; version should be 1 and itemsize should be sizeof(DynamicData).

I've just looked and Emptool doesn't know about writing dynamic data (hmm, that means you can't unmark tracks from Emptool; that's a pity).

Peter

Top
#79284 - 11/03/2002 08:00 Re: Writing DynamicData? [Re: peter]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
That's not too bad ... I'll give it a shot -- that's pretty similar to the code for writing tags.

Top