mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-22 00:32:44 +00:00
PBGetCatInfo uses fs spec / dirID
This commit is contained in:
parent
183078925e
commit
24e47c7f9b
@ -52,6 +52,7 @@
|
|||||||
#include "os_internal.h"
|
#include "os_internal.h"
|
||||||
#include "toolbox.h"
|
#include "toolbox.h"
|
||||||
#include "stackframe.h"
|
#include "stackframe.h"
|
||||||
|
#include "fs_spec.h"
|
||||||
|
|
||||||
using ToolBox::Log;
|
using ToolBox::Log;
|
||||||
|
|
||||||
@ -187,9 +188,16 @@ namespace OS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sname = ToolBox::ReadPString(ioNamePtr, true);
|
sname = ToolBox::ReadPString(ioNamePtr, true);
|
||||||
|
{
|
||||||
|
uint32_t ioDirID = memoryReadLong(parm + _ioDirID);
|
||||||
|
sname = FSSpecManager::ExpandPath(sname, ioDirID);
|
||||||
|
}
|
||||||
|
|
||||||
Log(" PBGetCatInfo(%s)\n", sname.c_str());
|
Log(" PBGetCatInfo(%s)\n", sname.c_str());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
if (::stat(sname.c_str(), &st) < 0)
|
if (::stat(sname.c_str(), &st) < 0)
|
||||||
@ -341,6 +349,10 @@ namespace OS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string sname = ToolBox::ReadPString(ioNamePtr, true);
|
std::string sname = ToolBox::ReadPString(ioNamePtr, true);
|
||||||
|
{
|
||||||
|
uint32_t ioDirID = memoryReadLong(parm + _ioDirID);
|
||||||
|
sname = FSSpecManager::ExpandPath(sname, ioDirID);
|
||||||
|
}
|
||||||
|
|
||||||
Log(" PBSetCatInfo(%s)\n", sname.c_str());
|
Log(" PBSetCatInfo(%s)\n", sname.c_str());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user