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 /****************************************************************************************/
33 //ULONG catalogtags[] = { OC_Version, 38, TAG_END };
34 #define catalogtags NULL
37 #define ThisProcess() ((struct Process *)FindTask(NULL))
39 /****************************************************************************************/
41 struct Catalog
*REGARGS
RT_OpenCatalog (struct Locale
*locale
)
47 if (!LocaleBase
) return (NULL
);
51 if (proc
->pr_Task
.tc_Node
.ln_Type
!= NT_PROCESS
) return (NULL
);
53 oldwinptr
= proc
->pr_WindowPtr
;
54 proc
->pr_WindowPtr
= (APTR
)-1;
55 cat
= OpenCatalogA (locale
, "System/Libs/reqtools.catalog", (struct TagItem
*)catalogtags
);
56 proc
->pr_WindowPtr
= oldwinptr
;
61 /****************************************************************************************/
63 void REGARGS
RT_CloseCatalog (struct Catalog
*cat
)
65 if (LocaleBase
) CloseCatalog (cat
);
68 /****************************************************************************************/