;
; resources.sh
;
; Access to shared resource DLL
;
;  1995-1998 Straylight
;

;----- Licensing note -------------------------------------------------------
;
; This file is part of Straylight's Sapphire library.
;
; Sapphire is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2, or (at your option)
; any later version.
;
; Sapphire is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with Sapphire.  If not, write to the Free Software Foundation,
; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

;----- Overview -------------------------------------------------------------
;
; Functions provided:
;
;  resource_init
;  resource_find

		[	:LNOT::DEF:resources__dfn
		GBLL	resources__dfn

; --- resources_init ---
;
; On entry:	--
;
; On exit:	--
;
; Use:		Initialises the shared resource system, setting up the
;		link to the SapphRes DLL.  Note that this initialisation is
;		/not/ performed automatically.

		IMPORT	resources_init

; --- resources_find ---
;
; On entry:	R0 == resource code
;		R1 == pointer to name (only for rsType_template)
;
; On exit:	CS if found, and
;		  R0 == pointer to resource
;		  R1 == pointer to resource limit (only for rsType_message)
;		else CC and
;		  R0,R1 preserved
;
; Use:		Locates resources in the shared resource DLL.

		IMPORT	resources_find

;----- Resource types -------------------------------------------------------

		^	0
rsType_sprite	#	1
rsType_message	#	1
rsType_template	#	1

		]

;----- That's all, folks ----------------------------------------------------

		END
