summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
author諏訪子 <suwako@076.moe>2024-06-21 22:14:36 +0900
committer諏訪子 <suwako@076.moe>2024-06-21 22:14:36 +0900
commit56870db1adfb83c415787bdcb9471ba04d3eb86f (patch)
tree964bc3d59d3e88b214f8717075216bceda6f54c0 /main.c
parent95eedef25d4fad567445dc4f74cd604a4ab3ab1d (diff)
ストレージの表示
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/main.c b/main.c
index 9fefc47..3dd62fc 100644
--- a/main.c
+++ b/main.c
@@ -20,6 +20,7 @@
#include "src/cpu.h"
#include "src/gpu.h"
#include "src/memory.h"
+#include "src/storage.h"
const char *sofname = "farfetch";
const char *version = "0.0.1";
@@ -239,13 +240,20 @@ int main(int argc, char *argv[]) {
printf("\n");
lc++;
+ const char *storage = display_storage();
+ if (storage) {
+ printf("%s ", LOGO[lc]);
+ printf("%sStorage%s: %s\n", color, reset, storage);
+ lc++;
+ free((void *)storage);
+ }
+
for (size_t i = lc; i < ls; i++) {
printf("%s\n", LOGO[i]);
}
// TODO:
// * 端末
- // * ストレージ
return 0;
}