[Scummvm-devel] Fwd: Found cause for translation problem

Thierry Crozat criezy at scummvm.org
Fri Jun 24 12:31:35 CEST 2011


On 24 June 2011 11:15, Simon Sawatzki <SimSaw at gmx.de> wrote:
>
> despite the fix from LordHoto the priority still seems not to work. The translations.dat is still not used
>

When I modified the translations.dat loading code to continue looking
after the first file until it find a valid file (i.e. correct header
and correct version) I noticed that the files is searched for in two
places:
1) First using the SearchMan
2) In the Theme path and its sub-directories.

For the windows port I am not sure which paths the SearchMan contains.
I would guess the path for files embeded in the executable is here. I
though the executable current directory would be there as well. So if
this is the case and it still picks the embeded file when a
translations.dat file is present in the same directory as the
executable, then this is indeed a priority issue in the SearchMan.

However I was thinking of swapping the two searches to first look into
the Theme path. This would solve the issue where you are testing in a
compilation environment (e.g. when compiling ScummVM and using make to
generate the translations.dat file, it is generated in gui/themes/ and
I set the Theme path to . so the translations data file is actually
found there since it is not found in the SearchMan paths - and I would
guess using mingw would give a similar setup).

If I don't see any strong oposition to this idea I will make the change.

Thierry




More information about the Scummvm-devel mailing list