Merge branch 'main' of dev.v4.games:v4games/v4k

main
Dominik Madarász 2024-08-01 07:14:27 +02:00
commit 927669505c
25 changed files with 37555 additions and 37558 deletions

10
MAKE.sh 100644 → 100755
View File

@ -75,15 +75,19 @@ while [ $# -ge 1 ]; do
fi
if [ "$1" = "dbg" ]; then
export build=dbg
export flags="-O0 -g"
export flags="-O0 -g -DDEBUG"
fi
if [ "$1" = "dev" ]; then
export build=dev
export flags="-O1 -g"
export flags="-O0 -g -DNDEBUG=1"
fi
if [ "$1" = "ret" ]; then
export build=ret
export flags="-O3 -DNDEBUG=3 -DENABLE_RETAIL"
fi
if [ "$1" = "rel" ]; then
export build=rel
export flags="-O3 -DNDEBUG"
export flags="-O3 -DNDEBUG=2"
fi
if [ "$1" = "gcc" ]; then
export cc=gcc

2
depot

@ -1 +1 @@
Subproject commit 01f1199523561529b0a4a8f581a05211adb1458d
Subproject commit a2784f8ff2c1afe9bee7350acb86fc605bb47cde

View File

@ -937,7 +937,10 @@ ase_t* cute_aseprite_load_from_memory(const void* memory, int size, void* mem_ct
s_skip(s, sizeof(uint32_t)); // File size.
int magic = (int)s_read_uint16(s);
if (magic != 0xA5E0) return CUTE_ASEPRITE_FREE(ase, mem_ctx), 0; // CUTE_ASEPRITE_ASSERT(magic == 0xA5E0); //< r-lyeh: soft abort
if (magic != 0xA5E0) {
CUTE_ASEPRITE_FREE(ase, mem_ctx); // CUTE_ASEPRITE_ASSERT(magic == 0xA5E0); //< r-lyeh: soft abort
return NULL;
}
ase->frame_count = (int)s_read_uint16(s);
ase->w = s_read_uint16(s);

View File

@ -148,7 +148,7 @@ static char* luaL_prepbuffsize(luaL_Buffer* B, size_t sz) {
# define ARCH_X86
#elif defined __amd64__ || defined _M_X64
# define ARCH_X64
#elif defined __arm__ || defined __ARM__ || defined ARM || defined __ARM || defined __arm
#elif defined __arm__ || defined __ARM__ || defined ARM || defined __ARM || defined __arm || defined __arm64__
# define ARCH_ARM
#elif defined OS_LINUX && defined __TINYC__ //< @r-lyeh: tcc+linux
# define ARCH_X64 //< @r-lyeh: tcc+linux

View File

@ -161,6 +161,7 @@ static char *ui_filter = 0;
{{FILE:3rd_plmpeg.h}}
{{FILE:3rd_jo_mpeg.h}}
//#define _RTL_RUN_ONCE _RTL_RUN_ONCE2 // __MINGW64__
#undef I
{{FILE:3rd_https.h}}
#undef F2
#undef F3

View File

@ -109,13 +109,7 @@ const char * app_exec( const char *cmd ) {
// pick the fastest code path per platform
#if is(osx)
for( FILE *fp = popen( cmd, "r" ); fp; rc = pclose(fp), fp = 0) {
// while( fgets(buf, 4096 - 1, fp) ) {}
}
// if( rc != 0 ) {
// char *r = strrchr(buf, '\r'); if(r) *r = 0;
// char *n = strrchr(buf, '\n'); if(n) *n = 0;
// }
rc = system(cmd);
#elif is(win32)
STARTUPINFOA si = {0}; si.cb = sizeof(si);
PROCESS_INFORMATION pi = {0};

View File

@ -182001,7 +182001,7 @@ static char* luaL_prepbuffsize(luaL_Buffer* B, size_t sz) {
# define ARCH_X86
#elif defined __amd64__ || defined _M_X64
# define ARCH_X64
#elif defined __arm__ || defined __ARM__ || defined ARM || defined __ARM || defined __arm
#elif defined __arm__ || defined __ARM__ || defined ARM || defined __ARM || defined __arm || defined __arm64__
# define ARCH_ARM
#elif defined OS_LINUX && defined __TINYC__ //< @r-lyeh: tcc+linux
# define ARCH_X64 //< @r-lyeh: tcc+linux
@ -255294,6 +255294,7 @@ void jo_write_mpeg(FILE *fp, const unsigned char *bgrx, int width, int height, i
#endif
#line 0
//#define _RTL_RUN_ONCE _RTL_RUN_ONCE2 // __MINGW64__
#undef I
#line 1 "3rd_https.h"
/*
------------------------------------------------------------------------------

View File

@ -25115,13 +25115,7 @@ const char * app_exec( const char *cmd ) {
// pick the fastest code path per platform
#if is(osx)
for( FILE *fp = popen( cmd, "r" ); fp; rc = pclose(fp), fp = 0) {
// while( fgets(buf, 4096 - 1, fp) ) {}
}
// if( rc != 0 ) {
// char *r = strrchr(buf, '\r'); if(r) *r = 0;
// char *n = strrchr(buf, '\n'); if(n) *n = 0;
// }
rc = system(cmd);
#elif is(win32)
STARTUPINFOA si = {0}; si.cb = sizeof(si);
PROCESS_INFORMATION pi = {0};

0
tools/PVRTexToolCLI.osx 100644 → 100755
View File

0
tools/ark.osx 100644 → 100755
View File

BIN
tools/ase2ini.osx 100644 → 100755

Binary file not shown.

0
tools/ass2iqe.osx 100644 → 100755
View File

BIN
tools/cook.osx 100644 → 100755

Binary file not shown.

0
tools/cuttlefish.osx 100644 → 100755
View File

0
tools/ffmpeg.osx 100644 → 100755
View File

0
tools/furnace.osx 100644 → 100755
View File

0
tools/iqe2iqm.osx 100644 → 100755
View File

0
tools/mid2wav.osx 100644 → 100755
View File

0
tools/mod2wav.osx 100644 → 100755
View File

0
tools/ninja.osx 100644 → 100755
View File

0
tools/premake5.osx 100644 → 100755
View File

0
tools/sfxr2wav.osx 100644 → 100755
View File

0
tools/xlsx2ini.osx 100644 → 100755
View File