cook: add cook_disable()

main
Dominik Madarász 2023-10-10 08:24:02 +02:00
parent 94ecaa9399
commit fbd6839454
4 changed files with 13 additions and 1 deletions

2
depot

@ -1 +1 @@
Subproject commit 8eb9226fcff6bdbbb5ddb28741575066aad494f5 Subproject commit 9a8f0bc21f2eed3bdf114ff8bda79381102c5cb1

View File

@ -607226,6 +607226,10 @@ void v4k_init() {
__argc = 0; __argc = 0;
} }
#ifdef COOK_DISABLED
cook_disable();
#endif
// create or update cook.zip file // create or update cook.zip file
if( /* !COOK_ON_DEMAND && */ file_exist(COOK_INI) && cook_jobs() ) { if( /* !COOK_ON_DEMAND && */ file_exist(COOK_INI) && cook_jobs() ) {
cook_start(COOK_INI, "**", 0|COOK_ASYNC|COOK_CANCELABLE ); cook_start(COOK_INI, "**", 0|COOK_ASYNC|COOK_CANCELABLE );

View File

@ -87,6 +87,10 @@ void v4k_init() {
__argc = 0; __argc = 0;
} }
#ifdef COOK_DISABLED
cook_disable();
#endif
// create or update cook.zip file // create or update cook.zip file
if( /* !COOK_ON_DEMAND && */ file_exist(COOK_INI) && cook_jobs() ) { if( /* !COOK_ON_DEMAND && */ file_exist(COOK_INI) && cook_jobs() ) {
cook_start(COOK_INI, "**", 0|COOK_ASYNC|COOK_CANCELABLE ); cook_start(COOK_INI, "**", 0|COOK_ASYNC|COOK_CANCELABLE );

View File

@ -25402,6 +25402,10 @@ void v4k_init() {
__argc = 0; __argc = 0;
} }
#ifdef COOK_DISABLED
cook_disable();
#endif
// create or update cook.zip file // create or update cook.zip file
if( /* !COOK_ON_DEMAND && */ file_exist(COOK_INI) && cook_jobs() ) { if( /* !COOK_ON_DEMAND && */ file_exist(COOK_INI) && cook_jobs() ) {
cook_start(COOK_INI, "**", 0|COOK_ASYNC|COOK_CANCELABLE ); cook_start(COOK_INI, "**", 0|COOK_ASYNC|COOK_CANCELABLE );