References to (error) strings? - DryOS Development - CHDK Forum

References to (error) strings?

  • 4 Replies
  • 4254 Views
References to (error) strings?
« on: 10 / August / 2010, 22:37:31 »
Advertisements
Hi all. In DryOS firmwares, there is a long chunk of strings, including error strings, late in the file. For examples, on the SD1100 this starts around 0xffec1938 with "..f English", then ".Cancel", and etc. for quite a while.

These are obviously referenced somehow, but there don't seem to be direct address references to them, after examining the hex dump and a disassembly. I'm thinking there must be something like a generic assert function that references the strings with, I don't know, offsets from the start of the strings data section or something. Before I spend days trying to track this down I thought I'd ask and see if anyone else knows the answer. How are these strings referenced?

Thanks for any info.

*

Offline reyalp

  • ******
  • 14126
Re: References to (error) strings?
« Reply #1 on: 10 / August / 2010, 22:55:23 »
I don't think those are error strings. They look like translation strings for the UI, you can find equivalent strings in several languages in the same area.

I don't know where/how they are looked up.
Don't forget what the H stands for.

Re: References to (error) strings?
« Reply #2 on: 10 / August / 2010, 22:59:40 »
They are both generic UI strings and error strings. There are things like "...Cartridge not compatible", "Print error" and "..File Error" amongst the misc labels like ".Vivid" and ".Aperture Priority".

*

Offline reyalp

  • ******
  • 14126
Re: References to (error) strings?
« Reply #3 on: 10 / August / 2010, 23:11:49 »
They are both generic UI strings and error strings. There are things like "...Cartridge not compatible", "Print error" and "..File Error" amongst the misc labels like ".Vivid" and ".Aperture Priority".
I would expect they are all referenced in the same way, and the error strings are ones that would be user visible, as opposed to ones that go to the canon log/console (which are scattered all over the code, and usually referenced directly).
Don't forget what the H stands for.

Re: References to (error) strings?
« Reply #4 on: 10 / August / 2010, 23:17:29 »
That's what I'm thinking too. Hard to know where to start when those addresses aren't referenced directly.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal