Skip to content

Commit 65166e2

Browse files
author
Jay
committed
Update modules
1 parent a2e30ae commit 65166e2

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

build.zig.zon

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.{
22
.name = .engine,
3-
.version = "0.1.4",
3+
.version = "0.1.5",
44
.fingerprint = 0xe8a81a8d0aa558d5,
55
.minimum_zig_version = "0.14.1",
66
.dependencies = .{
@@ -17,16 +17,12 @@
1717
.hash = "zigimg-0.1.0-lly-O_qZEgAP5eJWUbcWtL9Jv4V_BGcK5p-570Hiaj7k",
1818
},
1919
.praxis = .{
20-
.url = "git+https://github.com/loftafi/praxis.git#57f6a0f23ec8191d4737210459ce55bacbea65d6",
21-
.hash = "praxis-0.0.5-FPf2NdwnBABFfnBZneRdaZy3rDXeTaoX2aIEh5UaVxnL",
20+
.url = "git+https://github.com/loftafi/praxis.git#88063206b43a36296cae30f70fa0bc57b522fe48",
21+
.hash = "praxis-0.0.6-FPf2NQlSBAAqxeJPwt1QE1JXoRaFMPj3U-erNdGbpxDL",
2222
},
2323
.resources = .{
24-
.url = "git+https://github.com/loftafi/resources.git#09023ba562719f24ef476b3ada7440de257f73a1",
25-
.hash = "resources-0.0.3-J0GwI_L3AABhc5cgaEnpL01G0wdVxhjFzsfwAQOwkQ20",
26-
},
27-
.engine = .{
28-
.url = "git+https://github.com/loftafi/engine.git#18177694370fbca822b4c6126c241015e677acba",
29-
.hash = "engine-0.0.7-1VilCuSnIgOeyLStVG4j6eY1Vt4wsM3wyogkoA1HgGum",
24+
.url = "git+https://github.com/loftafi/resources.git#76f9900675106f929473937a87643e1c52e7f73c",
25+
.hash = "resources-0.0.5-J0GwI4n5AACORm1ztLSveKfXRHIvLxv7nrxtSl8FJaip",
3026
},
3127
},
3228
.paths = .{

src/read_bundle.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ pub fn sdl_load_bundle(
204204

205205
try self.by_uid.put(r.uid, r);
206206
for (r.sentences.items) |sentence| {
207-
self.by_filename.add(sentence, r) catch |e| {
207+
self.by_filename.add(self.arena_allocator, sentence, r) catch |e| {
208208
err("Bundle contains invalid filename: {s} -> {s}. {any}", .{ bundle_filename, sentence, e });
209209
return error.ResourceReadError;
210210
};
@@ -216,7 +216,7 @@ pub fn sdl_load_bundle(
216216
var it = unique.words.iterator();
217217
while (it.next()) |word| {
218218
if (word.key_ptr.*.len > 0) {
219-
self.by_word.add(word.key_ptr.*, r) catch |e| {
219+
self.by_word.add(self.arena_allocator, word.key_ptr.*, r) catch |e| {
220220
err("Bundle contains invalid filename word size: {s} -> {s} {any}", .{ bundle_filename, word.key_ptr.*, e });
221221
return error.ResourceReadError;
222222
};

0 commit comments

Comments
 (0)