[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] AES Language Code



Hello,

I am trying to unravel an AES mystery.  I hope someone can help.  Maybe even Odd Skancke.

When appl_getinfo() is called with ap_gtype of 3 (AES_LANGUAGE) ap_gout1 is filled with the Language Code:

AESLANG_ENGLISH
0 English

AESLANG_GERMAN 1 German

AESLANG_FRENCH 2 French

- 3 (Reserved)

AESLANG_SPANISH 4 Spanish

AESLANG_ITALIAN 5 Italian

AESLANG_SWEDISH 6 Swedish
ap_gout2
, ap_gout3, and ap_gout4 are unused.


I want to find the LANGUAGE CODE where it is hardcoded in a memory dump?

Where in memory is the structure and how are the values stored?

in XA_APPL.C there is this:

/*
 * Data table for appl_getinfo
 */
short info_tab[][4] =
{
    /* 0 large font */
    {
        0,
        0,
        0,
        0
    },
    /* 1 small font */
    {
        0,
        0,
        0,
        0
    },
    /* 2 colours */
    {
        1,        /* phys. handle */
        256,        /* no of colours */
        1,        /* colour icons */
        1        /* extended rsrc file format */
    },
    /* 3 language (english) */
    {
        0,
        0,
        0,
        0
    },
    /* 4 processes */
    {
        1,        /* preemptive */
        1,        /* convert mint id <--> aes id */
        1,        /* appl_search */
        1        /* rsrc_rcfix */
    },
    /* 5 PC_GEM (none!) */
    {
        1,        /* objc_xfind */
        0,
        0,        /* menu_click */
        0        /* shel_rdef/wdef */
    },

etc, etc.

But how is this stored in a structure in memory at runtime?  Where can I see it in a memory dump?

Thanks.