]> git.ayabusa.dev Git - thoryum.git/commitdiff
Fixed some stuff master
authorYo man <yo man>
Mon, 15 Jun 2026 18:13:10 +0000 (20:13 +0200)
committerYo man <yo man>
Mon, 15 Jun 2026 18:13:10 +0000 (20:13 +0200)
Makefile
src/main.c
src/unzip.c

index d5c85f7f23f47265439154d57aba334ad04764c9..fde9099055cae93b82a109d353c3c66dd34ae68c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
-DBG_CFLAGS = -Wall -Wextra -g -fsanitize=address
+DBG_CFLAGS = -Wall -Wextra -g
 PROD_CFLAGS = -Wall -Wextra -Os
 LIBS = -lzip -lcurl 
-SRC = src/main.c src/cpu.c src/downloader.c src/cli.c src/unzip.c
-OBJ = build/main.o build/cpu.o build/downloader.o build/cli.o build/unzip.o
+SRC = src/main.c src/cpu.c src/downloader.c src/cli.c src/unzip.c src/path.c
+OBJ = build/main.o build/cpu.o build/downloader.o build/cli.o build/unzip.o build/path.o
 RES = build/Thoryum
 
 release: CFLAGS = $(PROD_CFLAGS)
index 2a72d396e9ae1782b8c46c54bd1b46185024232b..0939c5bf1646207abf2bcdb3ee9d4a221ecfdfb8 100644 (file)
@@ -85,12 +85,12 @@ void install(struct ctx *ctx) {
     printf("Patching .desktop file\n");
     char *desktop_path = patch_desktop_file(install_loc);
 
-    printf("Register that shit up\n");
+    printf("Register that shit up '%s'\n", desktop_path);
     register_desktop(desktop_path);
 
+    printf("Cya gang ;D\n");
     free(install_loc);
     free(desktop_path);
-    printf("Cya gang ;D\n");
 }
 
 void update(struct ctx *ctx) {
@@ -117,6 +117,7 @@ int main(int argc, char **argv) {
 
     if (!ctx->silent) {
         printf("Are you sure you want to procede with the installation of Thorium ? [y/n] ");
+               fflush(stdout);
         char response;
         scanf("%c", &response);
         if (toupper(response) != 'Y') {
index 1c27f4e09ff55f9d3db243ba4dc395b88b655b79..f1bf4583fa4d34da4935d039f146cf6e6861dcae 100644 (file)
@@ -39,8 +39,9 @@ int zip_extract_to(char *zip_path, char *extract_loc) {
             int len = strlen(sb.name);
 
             path name = init_path(extract_loc);
-            cat_path(name, (const path)sb.name);
+            name = cat_path(name, (const path)sb.name);
             len = strlen(name);
+                       printf("extracticng file '%s' to '%s'\n", sb.name, name);
 
             if (name[len - 1] == '/')
                 safe_create_dir(name);