mirror of
https://github.com/elliotnunn/mac-rom.git
synced 2024-12-26 18:29:56 +00:00
mucking around
This commit is contained in:
parent
35d10f2b06
commit
a2598146d1
4721
OS/StartMgr/StartNativeManagers.a
Normal file
4721
OS/StartMgr/StartNativeManagers.a
Normal file
File diff suppressed because it is too large
Load Diff
BIN
OS/StartMgr/StartNativeManagers.c.o
Normal file
BIN
OS/StartMgr/StartNativeManagers.c.o
Normal file
Binary file not shown.
1485
StartInterstix.better
Normal file
1485
StartInterstix.better
Normal file
File diff suppressed because it is too large
Load Diff
34
StartNativeManagers.c
Normal file
34
StartNativeManagers.c
Normal file
@ -0,0 +1,34 @@
|
||||
#include <Memory.h>
|
||||
#include <Types.h>
|
||||
|
||||
OSErr GetSharedLibrary(
|
||||
unsigned char *libName,
|
||||
long archType,
|
||||
long options,
|
||||
long *connID,
|
||||
Ptr *mainAddr,
|
||||
Str255 errMessage) = {0x3F3C,0x0001,0xAA5A};
|
||||
|
||||
|
||||
void myfunc(void)
|
||||
{
|
||||
THz z, y;
|
||||
Ptr p;
|
||||
Ptr mainAddr;
|
||||
Str255 scratch;
|
||||
OSErr err;
|
||||
|
||||
z = GetZone();
|
||||
y = *(THz *)0x2A6;
|
||||
SetZone(y);
|
||||
|
||||
p = NewPtrSys(8);
|
||||
if(p)
|
||||
{
|
||||
err = GetSharedLibrary("\pUSBFamilyExpertLib", 'pwpc', 1, (long *)(p + 4), &mainAddr, scratch);
|
||||
if(!err)
|
||||
{
|
||||
SetZone(z);
|
||||
}
|
||||
}
|
||||
}
|
BIN
StartNativeManagers.c.o
Normal file
BIN
StartNativeManagers.c.o
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user