A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
Some switch statements (uVisualGears.pas) are not lined up on the : so the internal code blocks are not aligned (lined up on the start of the label instead). Some function contents are indented against begin/end of function, some are not, some function begin/end are themselves indented (adler32). Also inconsistency in things like assigning of variables (whitespace before :=) and use of brackets in tests. Probably needs further review for possible code errors.
/* This file is NOT open source. See "license.txt" to read the full license provided with the Xfire SDK. */
#ifndef __XFIREGAMECLIENT_H__
#define __XFIREGAMECLIENT_H__
#ifdef __cplusplus
extern "C" {
#endif
/*
** XfireIsLoaded()
**
** returns 1 if application can talk to Xfire, 0 otherwise
*/
int XfireIsLoaded();
/*
** XfireSetCustomGameDataA()
**
** ANSI version to tell xfire of custom game data
*/
int XfireSetCustomGameDataA(int num_keys, const char **keys, const char **values);
/*
** XfireSetCustomGameDataA()
**
** UNICODE version to tell xfire of custom game data
*/
int XfireSetCustomGameDataW(int num_keys, const wchar_t **keys, const wchar_t **values);
/*
** XfireSetCustomGameDataUTF8()
**
** UTF8 version to tell xfire of custom game data
*/
int XfireSetCustomGameDataUTF8(int num_keys, const char **keys, const char **values);
#ifdef UNICODE
#define XfireSetCustomGameData XfireSetCustomGameDataW
#else
#define XfireSetCustomGameData XfireSetCustomGameDataA
#endif
#ifdef __cplusplus
}
#endif
#endif /* __XFIREGAMECLIENT_H__ */