mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-24 23:32:06 +00:00
31 lines
766 B
C
31 lines
766 B
C
#pragma once
|
|
|
|
#include <Files.h>
|
|
|
|
#if TARGET_API_MAC_CARBON
|
|
inline OSErr Create(ConstStr255Param fileName, short vRefNum, OSType creator, OSType fileType)
|
|
{
|
|
return HCreate(vRefNum, 0, fileName, creator, fileType);
|
|
}
|
|
|
|
inline OSErr OpenDF(ConstStr255Param fileName, short vRefNum, short *refNum)
|
|
{
|
|
return HOpenDF(vRefNum, 0, fileName, fsCurPerm, refNum);
|
|
}
|
|
|
|
inline OSErr OpenRF(ConstStr255Param fileName, short vRefNum, short *refNum)
|
|
{
|
|
return HOpenRF(vRefNum, 0, fileName, fsCurPerm, refNum);
|
|
}
|
|
|
|
inline OSErr FSDelete(ConstStr255Param fileName, short vRefNum)
|
|
{
|
|
return HDelete(vRefNum, 0, fileName);
|
|
}
|
|
|
|
inline OSErr Rename(ConstStr255Param oldName, short vRefNum, ConstStr255Param newName)
|
|
{
|
|
return HRename(vRefNum, 0, oldName, newName);
|
|
}
|
|
#endif
|