summaryrefslogtreecommitdiff
path: root/src/resources.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-31 12:23:26 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-31 12:23:26 +0200
commit98f5ab5aa00f4d6b83079e6ee4e228b401356198 (patch)
tree3760877ce19431b821b66ae8b43a9fecea201460 /src/resources.h
parenta7596f683456da5274ecb33d4043a9eb47858c99 (diff)
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
Diffstat (limited to 'src/resources.h')
-rw-r--r--src/resources.h60
1 files changed, 60 insertions, 0 deletions
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 @@
1/* Copyright 2021 Jaakko Keränen <jaakko.keranen@iki.fi>
2
3Redistribution and use in source and binary forms, with or without
4modification, are permitted provided that the following conditions are met:
5
61. Redistributions of source code must retain the above copyright notice, this
7 list of conditions and the following disclaimer.
82. Redistributions in binary form must reproduce the above copyright notice,
9 this list of conditions and the following disclaimer in the documentation
10 and/or other materials provided with the distribution.
11
12THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
13ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
16ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
22
23#pragma once
24
25#include <the_Foundation/block.h>
26
27iDeclareType(Archive)
28
29iBool init_Resources (const char *path);
30void deinit_Resources (void);
31
32const iArchive * archive_Resources (void);
33
34extern iBlock blobAbout_Resources;
35extern iBlock blobHelp_Resources;
36extern iBlock blobLagrange_Resources;
37extern iBlock blobLicense_Resources;
38extern iBlock blobVersion_Resources;
39extern iBlock blobArghelp_Resources;
40extern iBlock blobDe_Resources;
41extern iBlock blobEn_Resources;
42extern iBlock blobEo_Resources;
43extern iBlock blobEs_Resources;
44extern iBlock blobEs_MX_Resources;
45extern iBlock blobFi_Resources;
46extern iBlock blobFr_Resources;
47extern iBlock blobGl_Resources;
48extern iBlock blobIa_Resources;
49extern iBlock blobIe_Resources;
50extern iBlock blobIsv_Resources;
51extern iBlock blobPl_Resources;
52extern iBlock blobRu_Resources;
53extern iBlock blobSk_Resources;
54extern iBlock blobSr_Resources;
55extern iBlock blobTok_Resources;
56extern iBlock blobUk_Resources;
57extern iBlock blobZh_Hans_Resources;
58extern iBlock blobZh_Hant_Resources;
59extern iBlock imageShadow_Resources;
60extern iBlock fontpackDefault_Resources;