feat: add new characters

This commit is contained in:
源文雨 2024-04-29 15:54:48 +09:00
parent 4e05eb71be
commit 837e1a03af
9 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View File

@ -52,3 +52,4 @@ Mkfile.old
dkms.conf
/build
.DS_Store

2
c302.c
View File

@ -21,7 +21,7 @@ int main(int argc, char **argv) {
http_error(HTTP500, "Argument Count Error.");
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;
const struct iovec iov[4] = {
{(void *)&len, sizeof(uint32_t)},

6
c302.h
View File

@ -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/nijika/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

BIN
imgs/hitori.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
imgs/ikuyo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
imgs/nijika.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
imgs/ryo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

BIN
imgs/yaeka.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

BIN
imgs/yui.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB