mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Mac classic: Import some functionality directly
This commit is contained in:
parent
ca8f617b1b
commit
19c9c15e62
2 changed files with 18 additions and 2 deletions
|
@ -19,7 +19,6 @@
|
|||
#include <MacMemory.h>
|
||||
#include <Processes.h>
|
||||
#include <Files.h>
|
||||
#include <Timer.h>
|
||||
|
||||
const cc_result ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */
|
||||
const cc_result ReturnCode_FileNotFound = ENOENT;
|
||||
|
@ -30,6 +29,13 @@ const cc_result ReturnCode_DirectoryExists = EEXIST;
|
|||
const char* Platform_AppNameSuffix = " MAC68k";
|
||||
cc_bool Platform_SingleProcess = true;
|
||||
|
||||
|
||||
/*########################################################################################################################*
|
||||
*---------------------------------------------------Imported headers------------------------------------------------------*
|
||||
*#########################################################################################################################*/
|
||||
// Availability: in InterfaceLib 7.1 and later
|
||||
static void Microseconds(UnsignedWide* microTickCount) FOURWORDINLINE(0xA193, 0x225F, 0x22C8, 0x2280);
|
||||
|
||||
/*########################################################################################################################*
|
||||
*---------------------------------------------------------Memory----------------------------------------------------------*
|
||||
*#########################################################################################################################*/
|
||||
|
|
|
@ -14,10 +14,20 @@
|
|||
#include <Dialogs.h>
|
||||
#include <Fonts.h>
|
||||
#include <Events.h>
|
||||
#include <Scrap.h>
|
||||
#include <DiskInit.h>
|
||||
static WindowPtr win;
|
||||
|
||||
|
||||
/*########################################################################################################################*
|
||||
*---------------------------------------------------Imported headers------------------------------------------------------*
|
||||
*#########################################################################################################################*/
|
||||
|
||||
// Availability: in InterfaceLib 7.1 and later
|
||||
static long GetScrap(Handle dst, FourCharCode type, SInt32* offset) ONEWORDINLINE(0xA9FD);
|
||||
// Availability: in InterfaceLib 7.1 and later
|
||||
static OSStatus PutScrap(SInt32 srcLen, FourCharCode type, const void* src) ONEWORDINLINE(0xA9FE);
|
||||
|
||||
|
||||
/*########################################################################################################################*
|
||||
*--------------------------------------------------Public implementation--------------------------------------------------*
|
||||
*#########################################################################################################################*/
|
||||
|
|
Loading…
Reference in a new issue