From fbd6839454e22ceea6203e6848d2593de0a699ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Tue, 10 Oct 2023 08:24:02 +0200 Subject: [PATCH] cook: add cook_disable() --- depot | 2 +- engine/joint/v4k.h | 4 ++++ engine/split/v4k_main.c | 4 ++++ engine/v4k.c | 4 ++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/depot b/depot index 8eb9226..9a8f0bc 160000 --- a/depot +++ b/depot @@ -1 +1 @@ -Subproject commit 8eb9226fcff6bdbbb5ddb28741575066aad494f5 +Subproject commit 9a8f0bc21f2eed3bdf114ff8bda79381102c5cb1 diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index e9892a6..f886324 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -607226,6 +607226,10 @@ void v4k_init() { __argc = 0; } + #ifdef COOK_DISABLED + cook_disable(); + #endif + // create or update cook.zip file if( /* !COOK_ON_DEMAND && */ file_exist(COOK_INI) && cook_jobs() ) { cook_start(COOK_INI, "**", 0|COOK_ASYNC|COOK_CANCELABLE ); diff --git a/engine/split/v4k_main.c b/engine/split/v4k_main.c index b9f96ec..6b8e50c 100644 --- a/engine/split/v4k_main.c +++ b/engine/split/v4k_main.c @@ -87,6 +87,10 @@ void v4k_init() { __argc = 0; } + #ifdef COOK_DISABLED + cook_disable(); + #endif + // create or update cook.zip file if( /* !COOK_ON_DEMAND && */ file_exist(COOK_INI) && cook_jobs() ) { cook_start(COOK_INI, "**", 0|COOK_ASYNC|COOK_CANCELABLE ); diff --git a/engine/v4k.c b/engine/v4k.c index 8da6a8e..2440ecb 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -25402,6 +25402,10 @@ void v4k_init() { __argc = 0; } + #ifdef COOK_DISABLED + cook_disable(); + #endif + // create or update cook.zip file if( /* !COOK_ON_DEMAND && */ file_exist(COOK_INI) && cook_jobs() ) { cook_start(COOK_INI, "**", 0|COOK_ASYNC|COOK_CANCELABLE );