Files
@ r5312:ffd375effb01
Branch filter:
Location: cpp/openttd-patchpack/source/newgrf_text.h - annotation
r5312:ffd375effb01
540 B
text/x-c
(svn r7468) -Codechange: [win32] Add some comments to MB/WIDE_TO_WIDE/MB_[BUFFER] macros and
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
r3601:85f189a0e58b r3601:85f189a0e58b r3601:85f189a0e58b r3601:85f189a0e58b r3601:85f189a0e58b r3601:85f189a0e58b r3601:85f189a0e58b r3601:85f189a0e58b r3821:e56e6e9edcad r3601:85f189a0e58b r4912:d420151de4c6 r3601:85f189a0e58b r3601:85f189a0e58b r5228:68969c6ab65b r3601:85f189a0e58b r3601:85f189a0e58b | /* $Id$ */
#ifndef NEWGRF_TEXT_H
#define NEWGRF_TEXT_H
/** @file
* Header of Action 04 "universal holder" structure and functions
*/
StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid, bool new_scheme, const char *text_to_add, StringID def_string);
StringID GetGRFStringID(uint32 grfid, uint16 stringid);
char *GetGRFString(char *buff, uint16 stringid, const char* last);
void CleanUpStrings(void);
void SetCurrentGrfLangID(const char *iso_name);
char *TranslateTTDPatchCodes(const char *str);
#endif /* NEWGRF_TEXT_H */
|