External function quick reference - PMStanley/ARMax GitHub Wiki
External functions
function AddDataAsFile(buffer :PChar; bufferSize : integer; name : PChar): integer; stdCall; external 'ARMaxDLL.dll';
function AddFileToSave(fileName : PChar): integer; stdCall; external 'ARMaxDLL.dll';
function AsciiToSJis(input : char): shortInt; stdCall; external 'ARMaxDLL.dll';
function CopyFileToBuffer(itemNum : integer; buffer : PChar; bufferSize : integer): integer; stdCall; external 'ARMaxDLL.dll';
function DeleteFileInSave(itemNum : integer): integer; stdCall; external 'ARMaxDLL.dll';
function DeleteFileInSaveByName(fileName : PChar): integer; stdCall; external 'ARMaxDLL.dll';
function ExtractAFile(itemNum : integer; location : PChar): integer; stdCall; external 'ARMaxDLL.dll';
function ExtractAFileAs(itemNum : integer; fileName : PChar): integer; stdCall; external 'ARMaxDLL.dll';
function FileDetails(itemNum: integer; name: PChar; nameLength: integer; var fileSize: integer): integer; stdCall; external 'ARMaxDLL.dll';
function FileExistsInSave(name : PChar): integer; stdCall; external 'ARMaxDLL.dll';
function FileExistsInSavePos(name : PChar): integer; stdCall; external 'ARMaxDLL.dll';
function FreeMaxSave: integer; stdcall; external 'ARMaxDLL.dll';
function GetFileSize(itemNum : integer): integer; stdCall; external 'ARMaxDLL.dll';
function GetRootDir(buffer : PChar; buffersize : integer): integer; stdCall; external 'ARMaxDLL.dll';
function InitMaxSave: integer; stdcall; external 'ARMaxDLL.dll';
function LoadSave(fileName : PChar): integer; stdcall; external 'ARMaxDLL.dll';
function NumberOfFiles: integer; stdcall; external 'ARMaxDLL.dll';
function ReplaceFileInSave(existingFileName : PChar; newFile : Pchar): integer; stdCall; external 'ARMaxDLL.dll';
function SJisToAscii(input : shortInt): char; stdCall; external 'ARMaxDLL.dll';
function SaveMaxFile(fileName : PChar): integer; stdCall; external 'ARMaxDLL.dll';
function SetRootDir(name : PChar): integer; stdCall; external 'ARMaxDLL.dll';