1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
extern "C" void FsChangeToProgramDirC();
extern "C" void FsGetAppDataDirC(char* o_szPath, int iLength, const char *szOverrideBundleId);
extern "C" bool FsFileOpenDialogC(char *szPath, int iLength, struct file_dialog_info *pFI);
extern "C" bool FsFileSaveDialogC(char *szPath, int iLength, struct file_dialog_info *pFI);
extern "C" bool FsGetClipboardTextC(char *szText, int iLength);
extern "C" int FsMessageBoxC(char* szHeader, char* szMessage);
void FsChangeToProgramDir()
{
FsChangeToProgramDirC();
}
void FsGetAppDataDir(char* o_szPath, int iLength, const char *szOverrideBundleId)
{
FsGetAppDataDirC(o_szPath, iLength, szOverrideBundleId);
}
bool FsFileOpenDialog(char *szPath, int iLength, struct file_dialog_info *pFI)
{
return FsFileOpenDialogC(szPath, iLength, pFI);
}
bool FsFileSaveDialog(char *szPath, int iLength, struct file_dialog_info *pFI)
{
return FsFileSaveDialogC(szPath, iLength, pFI);
}
bool FsGetClipboardText(char *szText, int iLength)
{
return FsGetClipboardTextC(szText, iLength);
}
void FsMessageBox(char* szHeader, char* szMessage)
{
FsMessageBoxC(szHeader, szMessage);
}
|