summaryrefslogtreecommitdiff
path: root/src/logo/linux_def.c
diff options
context:
space:
mode:
author諏訪子 <suwako@076.moe>2024-06-19 19:38:19 +0900
committer諏訪子 <suwako@076.moe>2024-06-19 19:38:19 +0900
commit9941a4d3d29f99a46e7f27bcad3653af87e26731 (patch)
tree4bed2c208d6df291feae0c40b0de6d2dd9bb4e56 /src/logo/linux_def.c
parentc73167415c76ec418fa2aa3ef45df6b3e0d55df8 (diff)
ロゴのコードの再書
Diffstat (limited to 'src/logo/linux_def.c')
-rw-r--r--src/logo/linux_def.c75
1 files changed, 0 insertions, 75 deletions
diff --git a/src/logo/linux_def.c b/src/logo/linux_def.c
deleted file mode 100644
index 12a9ef2..0000000
--- a/src/logo/linux_def.c
+++ /dev/null
@@ -1,75 +0,0 @@
-#include "linux_def.h"
-
-#include <string.h>
-
-void getDistro(const char *distroname) {
- if (strncmp((char *)distroname, "alpine", strlen("alpine")) == 0) {
-#undef DISTRO
-#undef COLOR
-#undef TITLECOLOR
-#define DISTRO DISTRO_ALPINE
-#define COLOR MAGENTA
-#define TITLECOLOR BLUE
- } else if (strncmp((char *)distroname, "artix", strlen("artix")) == 0) {
-#undef DISTRO
-#undef COLOR
-#undef TITLECOLOR
-#define DISTRO DISTRO_ARCH
-#define COLOR CYAN
-#define TITLECOLOR CYAN
- } else if (strncmp((char *)distroname, "arch", strlen("arch")) == 0) {
-#undef DISTRO
-#undef COLOR
-#undef TITLECOLOR
-#define DISTRO DISTRO_ARTIX
-#define COLOR CYAN
-#define TITLECOLOR CYAN
- } else if (strncmp((char *)distroname, "crux", strlen("crux")) == 0) {
-#undef DISTRO
-#undef COLOR
-#undef TITLECOLOR
-#define DISTRO DISTRO_CRUX
-#define COLOR MAGENTA
-#define TITLECOLOR BLUE
- } else if (strncmp((char *)distroname, "debian", strlen("debian")) == 0) {
-#undef DISTRO
-#undef COLOR
-#undef TITLECOLOR
-#define DISTRO DISTRO_DEBIAN
-#define COLOR RED
-#define TITLECOLOR RED
- } else if (strncmp((char *)distroname, "devuan", strlen("devuan")) == 0) {
-#undef DISTRO
-#undef COLOR
-#undef TITLECOLOR
-#define DISTRO DISTRO_DEVUAN
-#define COLOR MAGENTA
-#define TITLECOLOR MAGENTA
- } else if (strncmp((char *)distroname, "gentoo", strlen("gentoo")) == 0) {
-#undef DISTRO
-#undef COLOR
-#undef TITLECOLOR
-#define DISTRO DISTRO_GENTOO
-#define COLOR MAGENTA
-#define TITLECOLOR MAGENTA
- } else if (
- strncmp((char *)distroname,
- "postmarketos",
- strlen("postmarketos")
- ) == 0
- ) {
-#undef DISTRO
-#undef COLOR
-#undef TITLECOLOR
-#define DISTRO DISTRO_POSTMARKETOS
-#define COLOR GREEN
-#define TITLECOLOR GREEN
- } else if (strncmp((char *)distroname, "void", strlen("void")) == 0) {
-#undef DISTRO
-#undef COLOR
-#undef TITLECOLOR
-#define DISTRO DISTRO_VOID
-#define COLOR WHITE
-#define TITLECOLOR GREEN
- }
-}