16 char Key[10], s[512], *c;
18 char *OldBuffer, *OldCommentBuffer;
24 OSDLan = TAP_GetSystemVar(SYSVAR_OsdLan);
48 for(i = 0; i < NrStrings; i++)
51 TAP_SPrint(Key,
"%s_%3.3lu",
iso639_1(OSDLan), i);
55 if(!s[0] && (FallbackLang >= 0))
57 TAP_SPrint(Key,
"%s_%3.3lu",
iso639_1(FallbackLang), i);
63 while((c = strchr(c,
'\\')))
65 if(c[1] ==
'r') *c =
'\r';
66 else if(c[1] ==
'n') *c =
'\n';
69 memmove(c + 1, c + 2, strchr(c,
'\0') - c - 1);
71 TotalLength += (strlen(s) + 1);
77 for(i = 0; i < NrStrings; i++)
79 TAP_SPrint(Key,
"%s_%3.3lu",
iso639_1(OSDLan), i);
83 if(!s[0] && (FallbackLang >= 0))
85 TAP_SPrint(Key,
"%s_%3.3lu",
iso639_1(FallbackLang), i);
91 while((c = strchr(c,
'\\')))
93 if(c[1] ==
'r') *c =
'\r';
94 else if(c[1] ==
'n') *c =
'\n';
97 memmove(c + 1, c + 2, strchr(c,
'\0') - c - 1);
bool INIGetString(char *Key, char *Value, char *DefaultValue, dword MaxLength)
INILOCATION INIOpenFile(char *FileName, char *AppName)
INILOCATION LangLoadStrings(char *LangFile, dword NrStrings, int FallbackLang, char *AppName)
void LangUnloadStrings(void)
bool HDD_TAP_PushDir(void)
char * iso639_1(int OSDLan)
@ INILOCATION_AtCurrentDir
bool HDD_TAP_PopDir(void)