mirror of
https://github.com/ksherlock/mpw.git
synced 2025-01-09 13:30:34 +00:00
RM::CurResFile
This commit is contained in:
parent
ceeabfb1b0
commit
68852c9d16
@ -281,6 +281,19 @@ namespace RM
|
||||
}
|
||||
|
||||
|
||||
uint16_t CurResFile(uint16_t trap)
|
||||
{
|
||||
|
||||
Log("%04x CurResFile()\n", trap);
|
||||
|
||||
ResFileRefNum refNum = ::CurResFile();
|
||||
|
||||
ToolReturn<2>(-1, refNum);
|
||||
return SetResError(::ResError());
|
||||
}
|
||||
|
||||
|
||||
|
||||
// todo -- move since it's not RM related.
|
||||
uint16_t UnloadSeg(uint16_t trap)
|
||||
{
|
||||
|
@ -20,6 +20,8 @@ namespace RM
|
||||
uint16_t OpenResFile(uint16_t trap);
|
||||
|
||||
uint16_t SetResLoad(uint16_t trap);
|
||||
|
||||
uint16_t CurResFile(uint16_t trap);
|
||||
}
|
||||
|
||||
|
||||
|
@ -188,6 +188,10 @@ namespace ToolBox {
|
||||
d0 = RM::Get1NamedResource(trap);
|
||||
break;
|
||||
|
||||
case 0xa994:
|
||||
d0 = RM::CurResFile(trap);
|
||||
break;
|
||||
|
||||
case 0xA997:
|
||||
d0 = RM::OpenResFile(trap);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user