probably some useless code

This commit is contained in:
Kelvin Sherlock 2013-05-23 21:44:36 -04:00
parent 1e27acd16a
commit 1828c9e5f2
2 changed files with 15 additions and 5 deletions

View File

@ -41,6 +41,7 @@ namespace OS
uint16_t FlushVol(uint16_t trap);
uint16_t GetFileInfo(uint16_t trap);
uint16_t HGetFileInfo(uint16_t trap);
uint16_t SetFileInfo(uint16_t trap);
uint16_t GetEOF(uint16_t trap);

View File

@ -204,6 +204,18 @@ namespace OS {
return OS::Open(0xa000);
}
uint16_t PBHOpenDF(uint32_t paramBlock)
{
// PBHOpen... is identical to PBOpen... except
// that it accepts a directory ID in ioDirID.
Log(" PBHOpenDF\n");
// same as Open but slightly different handling of . files.
return OS::Open(0xa000);
}
uint16_t FSDispatch(uint16_t trap)
{
@ -219,16 +231,13 @@ namespace OS {
switch (selector)
{
//case 0x0009:
//return PBGetCatInfo(paramBlock);
//break;
case 0x1a:
case 0x001a:
return PBOpenDF(paramBlock);
break;
default:
fprintf(stderr, "HFSDispatch: selector %08x not implemented\n",
fprintf(stderr, "FSDispatch: selector %08x not implemented\n",
selector);
exit(1);
}