From 98f5ab5aa00f4d6b83079e6ee4e228b401356198 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 31 Oct 2021 12:23:26 +0200 Subject: Changed format of resources.lgr Resources are now stored in a ZIP archive, and it comes with an explicit version number. All the old embed/bincat stuff was removed as unnecessary. resources.lgr is also a valid fontpack, for loading the built-in fonts. IssueID #363 --- src/resources.h | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/resources.h (limited to 'src/resources.h') diff --git a/src/resources.h b/src/resources.h new file mode 100644 index 00000000..a9a5c767 --- /dev/null +++ b/src/resources.h @@ -0,0 +1,60 @@ +/* Copyright 2021 Jaakko Keränen + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + +#pragma once + +#include + +iDeclareType(Archive) + +iBool init_Resources (const char *path); +void deinit_Resources (void); + +const iArchive * archive_Resources (void); + +extern iBlock blobAbout_Resources; +extern iBlock blobHelp_Resources; +extern iBlock blobLagrange_Resources; +extern iBlock blobLicense_Resources; +extern iBlock blobVersion_Resources; +extern iBlock blobArghelp_Resources; +extern iBlock blobDe_Resources; +extern iBlock blobEn_Resources; +extern iBlock blobEo_Resources; +extern iBlock blobEs_Resources; +extern iBlock blobEs_MX_Resources; +extern iBlock blobFi_Resources; +extern iBlock blobFr_Resources; +extern iBlock blobGl_Resources; +extern iBlock blobIa_Resources; +extern iBlock blobIe_Resources; +extern iBlock blobIsv_Resources; +extern iBlock blobPl_Resources; +extern iBlock blobRu_Resources; +extern iBlock blobSk_Resources; +extern iBlock blobSr_Resources; +extern iBlock blobTok_Resources; +extern iBlock blobUk_Resources; +extern iBlock blobZh_Hans_Resources; +extern iBlock blobZh_Hant_Resources; +extern iBlock imageShadow_Resources; +extern iBlock fontpackDefault_Resources; -- cgit v1.2.3