diff options
author | Sebastian Leonhardt <sebastian.leonhardt@web.de> | 2016-01-08 01:05:36 +0100 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-30 17:24:16 -0400 |
commit | 102c3742487dba76ec72d5f56a2c3041344b2d68 (patch) | |
tree | 4931ad34d2cc0bac56d9984b9ead355d012ad63a /apps/plugins/xrick/system/basic_funcs.c | |
parent | 6f1e67e5e318ba2fd0f5ec1892c7b6633ec6521c (diff) | |
download | rockbox-102c3742487dba76ec72d5f56a2c3041344b2d68.tar.gz rockbox-102c3742487dba76ec72d5f56a2c3041344b2d68.zip |
added xrick game
original xrick code by 'BigOrno' at:
http://www.bigorno.net/xrick/
Rockbox port, plus bugfixes at:
https://github.com/pierluigi-vicinanza/xrick
Further changes:
* Additonal fixes from g#3026
* Port to modern plugin API
* Add Pluginlib keymap fallback
* Support all >1bpp screens
* Fix build warnings in miniz
* Better error message when resources are missing
Change-Id: Id83928bc2539901b0221692f65cbca41389c58e7
Diffstat (limited to 'apps/plugins/xrick/system/basic_funcs.c')
-rw-r--r-- | apps/plugins/xrick/system/basic_funcs.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/apps/plugins/xrick/system/basic_funcs.c b/apps/plugins/xrick/system/basic_funcs.c new file mode 100644 index 0000000000..fbc025a6ef --- /dev/null +++ b/apps/plugins/xrick/system/basic_funcs.c | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * xrick/system/basic_funcs.c | ||
3 | * | ||
4 | * Copyright (C) 2008-2014 Pierluigi Vicinanza. All rights reserved. | ||
5 | * | ||
6 | * The use and distribution terms for this software are contained in the file | ||
7 | * named README, which can be found in the root of this distribution. By | ||
8 | * using this software in any fashion, you are agreeing to be bound by the | ||
9 | * terms of this license. | ||
10 | * | ||
11 | * You must not remove this notice, or any other, from this software. | ||
12 | */ | ||
13 | |||
14 | #include "xrick/system/basic_funcs.h" | ||
15 | |||
16 | #ifdef USE_DEFAULT_ENDIANNESS_FUNCTIONS | ||
17 | |||
18 | extern inline uint16_t swap16(uint16_t x); | ||
19 | extern inline uint32_t swap32(uint32_t x); | ||
20 | |||
21 | extern inline uint16_t htobe16(uint16_t host); | ||
22 | extern inline uint16_t htole16(uint16_t host); | ||
23 | extern inline uint16_t betoh16(uint16_t big_endian); | ||
24 | extern inline uint16_t letoh16(uint16_t little_endian); | ||
25 | |||
26 | extern inline uint32_t htobe32(uint32_t host); | ||
27 | extern inline uint32_t htole32(uint32_t host); | ||
28 | extern inline uint32_t betoh32(uint32_t big_endian); | ||
29 | extern inline uint32_t letoh32(uint32_t little_endian); | ||
30 | |||
31 | #endif /* USE_DEFAULT_ENDIANNESS_FUNCTIONS */ | ||
32 | |||
33 | /* eof */ | ||