7 #include <proto/locale.h>
11 #include <aros/macros.h>
14 /****************************************************************************************/
16 char *REGARGS
GetStr (struct Catalog
*cat
, char *idstr
)
19 UWORD id
= *(UWORD
*)idstr
;
23 id
= AROS_BE2WORD(id
);
27 if (LocaleBase
) return ((char *)GetCatalogStr (cat
, id
, local
));
31 /****************************************************************************************/
34 #define ThisProcess() ((struct Process *)FindTask(NULL))
36 /****************************************************************************************/
38 struct Catalog
*REGARGS
RT_OpenCatalog (struct Locale
*locale
)
44 if (!LocaleBase
) return (NULL
);
48 if (proc
->pr_Task
.tc_Node
.ln_Type
!= NT_PROCESS
) return (NULL
);
50 oldwinptr
= proc
->pr_WindowPtr
;
51 proc
->pr_WindowPtr
= (APTR
)-1;
52 cat
= OpenCatalog (locale
, "System/Libs/reqtools.catalog", OC_Version
, 39, TAG_DONE
);
53 proc
->pr_WindowPtr
= oldwinptr
;
58 /****************************************************************************************/
60 void REGARGS
RT_CloseCatalog (struct Catalog
*cat
)
62 if (LocaleBase
) CloseCatalog (cat
);
65 /****************************************************************************************/