mirror of
https://github.com/fumiama/C302.git
synced 2025-01-18 20:20:13 +09:00
feat: add new characters
This commit is contained in:
parent
4e05eb71be
commit
837e1a03af
1
.gitignore
vendored
1
.gitignore
vendored
@ -52,3 +52,4 @@ Mkfile.old
|
|||||||
dkms.conf
|
dkms.conf
|
||||||
|
|
||||||
/build
|
/build
|
||||||
|
.DS_Store
|
||||||
|
2
c302.c
2
c302.c
@ -21,7 +21,7 @@ int main(int argc, char **argv) {
|
|||||||
http_error(HTTP500, "Argument Count Error.");
|
http_error(HTTP500, "Argument Count Error.");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
uint32_t i = time(NULL) % (sizeof(urls)/sizeof(char*));
|
int i = time(NULL) % (sizeof(urls)/sizeof(char*));
|
||||||
uint32_t len = sizeof(HTTP302HEAD)-1 + urlsl[i] + 4 + sizeof(CONTENT)-1;
|
uint32_t len = sizeof(HTTP302HEAD)-1 + urlsl[i] + 4 + sizeof(CONTENT)-1;
|
||||||
const struct iovec iov[4] = {
|
const struct iovec iov[4] = {
|
||||||
{(void *)&len, sizeof(uint32_t)},
|
{(void *)&len, sizeof(uint32_t)},
|
||||||
|
6
c302.h
6
c302.h
@ -25,9 +25,11 @@ static const char* urls[] = {
|
|||||||
"https://bocchi.rocks/assets/img/page/character/hitori/main.png", // 後藤ひとり
|
"https://bocchi.rocks/assets/img/page/character/hitori/main.png", // 後藤ひとり
|
||||||
"https://bocchi.rocks/assets/img/page/character/nijika/main.png", // 伊地知虹夏
|
"https://bocchi.rocks/assets/img/page/character/nijika/main.png", // 伊地知虹夏
|
||||||
"https://bocchi.rocks/assets/img/page/character/ryo/main.png", // 山田リョウ
|
"https://bocchi.rocks/assets/img/page/character/ryo/main.png", // 山田リョウ
|
||||||
"https://bocchi.rocks/assets/img/page/character/ikuyo/main.png" // 喜多郁代
|
"https://bocchi.rocks/assets/img/page/character/ikuyo/main.png", // 喜多郁代
|
||||||
|
"https://orthrossoft.jp/assets/images/character/whole_body-yui.png", // 片桐ユイ
|
||||||
|
"https://orthrossoft.jp/assets/images/character/whole_body-yaeka.png" // 片桐ヤエカ
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint16_t urlsl[] = {62, 62, 59, 61};
|
static const uint16_t urlsl[] = {62, 62, 59, 61, 65, 67};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
BIN
imgs/hitori.png
Normal file
BIN
imgs/hitori.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 61 KiB |
BIN
imgs/ikuyo.png
Normal file
BIN
imgs/ikuyo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 58 KiB |
BIN
imgs/nijika.png
Normal file
BIN
imgs/nijika.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 56 KiB |
BIN
imgs/ryo.png
Normal file
BIN
imgs/ryo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 55 KiB |
BIN
imgs/yaeka.png
Normal file
BIN
imgs/yaeka.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 196 KiB |
BIN
imgs/yui.png
Normal file
BIN
imgs/yui.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 217 KiB |
Loading…
x
Reference in New Issue
Block a user