1
0
mirror of https://github.com/fumiama/CMoe-Counter.git synced 2026-06-05 02:00:24 +08:00

optimize: sync upstream

This commit is contained in:
源文雨
2025-01-14 23:00:44 +09:00
parent 02f15b1c59
commit 70d2a6f399
4 changed files with 28 additions and 2 deletions

View File

@@ -13,6 +13,9 @@
##### rule34(r34)
![Rule34](https://counter.seku.su/cmoe?name=demo&theme=r34)
##### rule34-big(r3b)
![Rule34](https://counter.seku.su/cmoe?name=demo&theme=r3b)
##### gelbooru(gb)
![Gelbooru](https://counter.seku.su/cmoe?name=demo&theme=gb)

View File

@@ -18,7 +18,7 @@
eg:<img src="/cmoe?name=index" alt="Moe Count!"/>
</h3>
<i>
Data can access by anyone, please<span style="color: #ff4500;">DO NOT</span>
Data can access by anyone, please <span style="color: #ff4500;">DO NOT</span>
enter personal information
</i>
<details>
@@ -35,6 +35,8 @@
<img src="/cmoe?name=demo&theme=mbh" alt="Moebooru-Hentai"/>
<h5>rule34(r34)</h5>
<img src="/cmoe?name=demo&theme=r34" alt="Rule34"/>
<h5>rule34-big(r3b)</h5>
<img src="/cmoe?name=demo&theme=r3b" alt="Rule34-Big"/>
<h5>gelbooru(gb)</h5>
<img src="/cmoe?name=demo&theme=gb" alt="Gelbooru"/>
<h5>gelbooru-h(gbh)</h5>
@@ -75,6 +77,7 @@
<option value="mb">moebooru</option>
<option value="mbh">moebooru-h</option>
<option value="r34">rule34</option>
<option value="r3b">rule34-big</option>
<option value="gb">gelbooru</option>
<option value="gbh">gelbooru-h</option>
<option value="asl">asoul</option>

3
cmoe.c
View File

@@ -114,13 +114,14 @@ static void draw(int count, char* theme, uint32_t color) {
if (theme) {
cmp_and_set_type(mbh) else
cmp_and_set_type(r34) else
cmp_and_set_type(r3b) else
cmp_and_set_type(gb) else
cmp_and_set_type(gbh) else
cmp_and_set_type(asl) else
cmp_and_set_type(nix) else
cmp_and_set_type(mbs)
isbigtiny = (
(theme_type == (char**)gb || theme_type == (char**)gbh) |
(theme_type == (char**)gb || theme_type == (char**)gbh || theme_type == (char**)r3b) |
((theme_type == (char**)nix || theme_type == (char**)mbs) << 1) |
((theme_type == (char**)mbs) << 2)
);

19
cmoe.h

File diff suppressed because one or more lines are too long