Andrei Alexeyev
26ee23d04d
build,vfs,rwops: add compatibility with older libzip
2021-04-19 02:21:49 +03:00
Andrei Alexeyev
e23a720034
ci: upgrade to ubuntu 21.04
2021-04-19 01:50:44 +03:00
Andrei Alexeyev
1a67f51add
ci: revert to installing meson via pip on ubuntu
...
0.53.0 doesn't have --force-fallback-for
2021-04-19 01:40:30 +03:00
Andrei Alexeyev
12701459cf
ci: upgrade to Ubuntu 20.04
2021-04-19 01:38:20 +03:00
Andrei Alexeyev
b3b46717e5
build: require SDL >= 2.0.10
2021-04-19 01:32:30 +03:00
Andrei Alexeyev
6a89117f39
update gamecontrollerdb [skip ci]
2021-04-19 01:25:18 +03:00
Andrei Alexeyev
c1141fbea7
ci: force subproject fallback for cglm
2021-04-19 00:57:47 +03:00
Andrei Alexeyev
622fd1e48b
build: stop vendoring cglm
...
* Remove cglm from submodules
* Add cglm to list of dependencies
* Prefer system version of cglm, with a wrap fallback (as with other
dependencies)
2021-04-19 00:50:20 +03:00
p-sam
9530fcf759
switch: fix meson not being able to deduct type sizes
2021-04-18 13:54:08 +00:00
p-sam
2977ec2f42
switch: add missing include
2021-04-18 13:52:13 +00:00
Andrei Alexeyev
5a51842401
shader/cutscene: don't initialize distort_strength uniform
...
Apparently GLSL ES does not allow this. We set this uniform explicitly
in the code, so this is redundant anyway.
2021-04-18 16:33:09 +03:00
Andrei Alexeyev
c5bd04128b
video: more sensible step size for windowed mode list generation
...
Previously scaling_factor would skip past 1.0, which is what our assets
are actually optimized for...
2021-04-13 20:26:23 +03:00
Andrei Alexeyev
4d8470b0c5
fbmgr: add common resize strategy for screen-sized framebuffers
2021-04-13 20:17:30 +03:00
Andrei Alexeyev
0880e7696f
build: update libzip options
2021-04-13 20:07:35 +03:00
Andrei Alexeyev
ef1e0eb827
stage2: nerf amulet of harm boss HP
2021-04-09 16:31:50 +03:00
Andrei Alexeyev
96459b19a7
build: update libwebp wrap to 1.2.0
2021-04-09 12:41:55 +03:00
Andrei Alexeyev
177577239d
build: update libzip wrap
2021-04-06 03:57:29 +03:00
Andrei Alexeyev
ec012f9747
scripts/mkbasis: expose --uastc-rdo parameter
2021-04-05 07:25:06 +03:00
Andrei Alexeyev
cf3ee28419
readme: bump Python requirement to 3.7
2021-03-30 02:07:25 +03:00
Andrei Alexeyev
326e499f7e
shaderlib/cache: switch to zstd compression
2021-03-28 15:18:11 +03:00
Andrei Alexeyev
d99f23efd7
readme: add python-zstandard to build deps
2021-03-28 15:05:20 +03:00
Andrei Alexeyev
5f9bbad0b9
ci: install python-zstandard from pip
2021-03-28 15:03:57 +03:00
Andrei Alexeyev
6c4473b4a1
build/emscripten: include *.basis.zst in gfx bundle
2021-03-28 14:59:19 +03:00
Andrei Alexeyev
764c6caeb3
build: prevent pack script stdout buffering
2021-03-28 14:58:26 +03:00
Andrei Alexeyev
551d2c4f61
build: exclude a few more file types from compression
2021-03-28 14:57:36 +03:00
Andrei Alexeyev
91639d1c43
scripts/pack: add zstd support
2021-03-28 14:43:02 +03:00
Andrei Alexeyev
6f5e0716eb
scripts/mkbasis: use more aggressive zstd compression
2021-03-28 05:44:34 +03:00
Andrei Alexeyev
b1d931b813
scripts/mkbasis: output with -uastc_rdo_l 1 in UASTC mode
...
Reduces size of zstd-compressed files by roughly ~40%
2021-03-27 19:43:30 +02:00
Andrei Alexeyev
bd5f5fa9b2
scripts/mkbasis: pass -f to zstd
2021-03-27 19:06:30 +02:00
Andrei Alexeyev
f82b9573b8
scripts/mkbasis: compress with zstd if output filename ends with .zst
2021-03-27 19:03:22 +02:00
Andrei Alexeyev
da4e39576a
build: bump required libzip version
2021-03-27 18:32:05 +02:00
Andrei Alexeyev
f5b4477f0d
build: add libzstd subproject
2021-03-27 18:29:56 +02:00
Andrei Alexeyev
2f8aaa6a41
basisu_cache: switch to zstd
2021-03-26 22:09:25 +02:00
Andrei Alexeyev
f324942b0a
rwops_zstd: fix memory management error in writer
2021-03-26 22:08:57 +02:00
Andrei Alexeyev
3de1d96f52
vfs: transparent decompression of *.zst files
...
A zstd-compressed file "foobar.foo.zst" will appear in the filesystem as
a normal uncompressed file "foobar.foo". The raw compressed data is
still available under the original .zst filename.
If both "foobar.foo" and "foobar.foo.zst" exist, the former is
preferred and won't be shadowed.
This is implemented as a wrapper layer, much like readonly_wrapper.
It is currently applied on top of plain directories that contribute to
/res, but not to zipped packages. Zip files support zstd as a
compression method, so we'll probably rely on that instead.
2021-03-26 21:45:57 +02:00
Andrei Alexeyev
5a1de97f6e
rwops_zstd: try to detect content size of seekable streams
2021-03-26 21:37:51 +02:00
Andrei Alexeyev
64511df0df
strbuf: add strbuf_cat and strbuf_ncat
2021-03-26 21:30:10 +02:00
Andrei Alexeyev
32c9dac8dd
rwops_zlib: fix SDL_RWWrapZlibWriter producing raw deflate streams
2021-03-25 21:17:22 +02:00
Andrei Alexeyev
1edcdf8a31
rwops_trace: add error logging
2021-03-25 20:55:35 +02:00
Andrei Alexeyev
12227f0348
rwops_zipfile: support manual zstd decompression
2021-03-25 20:54:22 +02:00
Andrei Alexeyev
3df55eb6ac
rwops_zstd: fix decoding of small streams
2021-03-25 20:53:28 +02:00
Andrei Alexeyev
fff174e99d
rwops_zlib: remove redundant code
2021-03-23 12:49:08 +02:00
Andrei Alexeyev
43e12888bf
rwops_zstd: optional seek emulation (untested)
2021-03-23 12:49:08 +02:00
Andrei Alexeyev
724f4803f1
resource/font: handle unspecified src path in .font file
2021-03-23 12:11:53 +02:00
Andrei Alexeyev
620b0df6ea
rwops_trace: arbitrary string tags; cleaner logging macro
2021-03-23 12:10:04 +02:00
Andrei Alexeyev
8706426ea2
rwops_zlib: various improvements:
...
* Add compression level parameter to writer wrappers
* Add APIs for raw deflate streams
* Add optional seeking emulation for reader wrappers
* Handle inflate/deflate init errors
2021-03-23 12:05:47 +02:00
Andrei Alexeyev
248b96e95d
rwops_zlib: remove unused API
2021-03-23 09:46:26 +02:00
Andrei Alexeyev
a60a1e270b
rwops: move seek emulation from zipfile to util
2021-03-23 08:39:01 +02:00
Andrei Alexeyev
3732a983db
vfs_zippath: store compression method instead of 'seekable' boolean
2021-03-23 08:34:04 +02:00
Andrei Alexeyev
f2b012aed1
rwops: Add zstd compression stream wrappers
2021-03-22 17:45:11 +02:00