2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /*********************************************************************************************/
13 #include <exec/execbase.h>
14 #include <aros/libcall.h>
16 /*********************************************************************************************/
23 /*********************************************************************************************/
25 static struct patchinfo
35 {LIB_EXEC
, 87 , LIB_LOCALE
, 31}, /* RawDoFmt */
36 {LIB_UTILITY
, 28 , LIB_LOCALE
, 32}, /* Strnicmp */
37 {LIB_UTILITY
, 27 , LIB_LOCALE
, 33}, /* Stricmp */
38 {LIB_UTILITY
, 30 , LIB_LOCALE
, 34}, /* ToLower */
39 {LIB_UTILITY
, 29 , LIB_LOCALE
, 35}, /* ToUpper */
40 {LIB_DOS
, 124, LIB_LOCALE
, 36}, /* DateToStr */
41 {LIB_DOS
, 125, LIB_LOCALE
, 37}, /* StrToDate */
42 {LIB_DOS
, 154, LIB_LOCALE
, 38}, /* DosGetLocalizedString */
47 /*********************************************************************************************/
49 static struct Library
*GetLib(WORD which
)
51 struct Library
*lib
= NULL
;
56 lib
= (struct Library
*)SysBase
;
60 lib
= (struct Library
*)DOSBase
;
64 lib
= (struct Library
*)UtilityBase
;
68 lib
= (struct Library
*)LocaleBase
;
75 /*********************************************************************************************/
77 void InstallPatches(void)
82 for(i
= 0; pi
[i
].library
; i
++)
84 SetFunction(GetLib(pi
[i
].library
),
85 -pi
[i
].whichfunc
* LIB_VECTSIZE
,
86 __AROS_GETVECADDR(GetLib(pi
[i
].patchlibrary
), pi
[i
].whichpatchfunc
));
91 patches_installed
= TRUE
;
94 /*********************************************************************************************/