[Alephmodular-devel] Preferences progress update 12/03/03
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2003-12-03 16:01:18
|
I've been working on preferences. I think I have the internals all set. I've been working on a reader module for wad style preferences. Still need to work on an interim wad style writer. And I still need to tie the use of CPreferences into AM as a whole (Right now AM still uses the existing preference setup and I tap into it just enough to initialize CPreferences and get a dump of the loaded info.) The internal hierarchy is a two level set of hash maps. One level determines domain and the other determines actual keys and values within that domain. Actual values that are stored are: bool double (Covers all number formats) string data (raw data quantity and length) The dump below uses the mechanism to convert the internally stored values for strings to place in the final file. So the strings have xml formatting applied to them (' and such similar things) and the data is encoded in base 64. Thoughts? Comments? Perhaps I should take flag based arguments and split them all out into bools? -Jeremy Parsons --- Preferences Dump --- environment: physics_file: /5wA/// gCk0xIFBoeXNpY3NFKS5idWlsZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAA== sounds_file: /5wA// +6BlNvdW5kc2FpZmZFKXVuZHNsZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAA== sounds_mod_date: 2898499547 map_checksum: 762432692 physics_checksum: 2898499547 map_file: /5wA// +6A01hcGRvdXJhfihFKWluZ2lsZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAA== shapes_file: /5wA// +6BlNoYXBlc3JhfihFKWluZ2lsZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAA== shapes_mod_date: 2898502613 graphics: gamma_level: 4 bit_depth: 16 size: 1 high_resolution: TRUE acceleration: FALSE device_spec: AAAAAQAQ/4AB4A== input: keycodes: AFsAVwBWAFgAAAACAAwADgANAAEAAwBZAFwAMQA4ADcAOQA6ADAALgAy input_device: 0 sound: flags: 59 channel_count: 4 volume: 4 pitch: 65536 player: name: Br'fin team: 0 last_time_ran: 3153293396 difficulty_level: 2 color: 0 ------------------------ |