* updated mepo (1.2.1 -> 1.3.3)
[t2sde.git] / package / zig / mepo / 0004-zig-0.13-adapt-to-new-Dir.writeFile-API-aka-Dir.writ.patch
blob969d2152efc710da9a504914d137bad3a0fa74f7
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/mepo/0004-zig-0.13-adapt-to-new-Dir.writeFile-API-aka-Dir.writ.patch
3 # Copyright (C) 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 From e370ef83141ac5caa41b65c665e86233020ff125 Mon Sep 17 00:00:00 2001
15 From: "lauren n. liberda" <lauren@selfisekai.rocks>
16 Date: Sat, 8 Jun 2024 02:51:12 +0200
17 Subject: [PATCH] zig 0.13: adapt to new Dir.writeFile API (aka Dir.writeFile2)
19 ---
20 src/TileCache.zig | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
23 diff --git a/src/TileCache.zig b/src/TileCache.zig
24 index 0b1fa63..17e662c 100644
25 --- a/src/TileCache.zig
26 +++ b/src/TileCache.zig
27 @@ -425,7 +425,7 @@ fn download_loop_transfer_complete(tile_cache: *@This(), msg: *curl.CURLMsg) !vo
28 // Save to FS
29 if (is_valid_png_data) {
30 const path = try png_path(tile_cache.allocator, p.get(p.pref.tile_cache_url).t.?, coords);
31 - try cache_dir.writeFile(path, datum_array);
32 + try cache_dir.writeFile(.{ .sub_path = path, .data = datum_array });
35 if (tile_cache.transfer_map.get(coords).?.load_to_texture) {