From ae7cb3fa93a9a3cd5e5d86786b21350c77487afc Mon Sep 17 00:00:00 2001 From: haxsam Date: Sat, 18 Jan 2025 22:08:45 +0100 Subject: [PATCH] Update to latest zig master updated raylib and raygui --- README.md | 2 +- build.zig.zon | 10 +++++----- lib/preludes/raylib-prelude.zig | 8 ++++---- lib/raylib.zig | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 4ef2b0b..077bd3c 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Manually tweaked, auto-generated [raylib](https://github.com/raysan5/raylib) bindings for zig. -Bindings tested on raylib version 5.6-dev and Zig 0.13.0 +Bindings tested on raylib version 5.6-dev and Zig 0.14.0-dev.2802+257054a14 Thanks to all the [contributors](https://github.com/Not-Nik/raylib-zig/graphs/contributors) for their help with this binding. diff --git a/build.zig.zon b/build.zig.zon index 7a2b5a2..99f6619 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -3,15 +3,15 @@ .version = "5.6.0-dev", .dependencies = .{ .raylib = .{ - .url = "git+https://github.com/raysan5/raylib#783ca612ccfe6f291998bbbe50480c0531659b7f", - .hash = "1220c644102509a37c894615c3fb51f603cce98a66a9701b28d43776edf4be3e8140", + .url = "git+https://github.com/raysan5/raylib#e70f9157bcae046804e754e98a2694adcfdbfa5d", + .hash = "1220f6aef0d678ba6e3d67a60069b5f32dc965a930c797f463840d224759d615b864", }, .raygui = .{ - .url = "https://github.com/raysan5/raygui/archive/1e03efca48c50c5ea4b4a053d5bf04bad58d3e43.tar.gz", - .hash = "122062b24f031e68f0d11c91dfc32aed5baf06caf26ed3c80ea1802f9e788ef1c358", + .url = "git+https://github.com/raysan5/raygui#76b36b597edb70ffaf96f046076adc20d67e7827", + .hash = "1220ce6e40b454766d901ac4a19b2408f84365fcad4e4840c788b59f34a0ed698883", }, }, - .minimum_zig_version = "0.13.0", + .minimum_zig_version = "0.14.0-dev.2802+257054a14", .paths = .{ "build.zig", "build.zig.zon", diff --git a/lib/preludes/raylib-prelude.zig b/lib/preludes/raylib-prelude.zig index 6c2eb3f..0e84efc 100644 --- a/lib/preludes/raylib-prelude.zig +++ b/lib/preludes/raylib-prelude.zig @@ -2293,8 +2293,8 @@ pub fn textFormat(text: [*:0]const u8, args: anytype) [*:0]const u8 { comptime { const info = @typeInfo(@TypeOf(args)); switch (info) { - .Struct => { - if (!info.Struct.is_tuple) + .@"struct" => { + if (!info.@"struct".is_tuple) @compileError("Args should be in a tuple (call this function like textFormat(.{arg1, arg2, ...});)!"); }, else => { @@ -2311,8 +2311,8 @@ pub fn traceLog(logLevel: TraceLogLevel, text: [*:0]const u8, args: anytype) voi comptime { const info = @typeInfo(@TypeOf(args)); switch (info) { - .Struct => { - if (!info.Struct.is_tuple) + .@"struct" => { + if (!info.@"struct".is_tuple) @compileError("Args should be in a tuple (call this function like traceLog(.{arg1, arg2, ...});)!"); }, else => { diff --git a/lib/raylib.zig b/lib/raylib.zig index aa98247..cdfdaca 100644 --- a/lib/raylib.zig +++ b/lib/raylib.zig @@ -2293,8 +2293,8 @@ pub fn textFormat(text: [*:0]const u8, args: anytype) [*:0]const u8 { comptime { const info = @typeInfo(@TypeOf(args)); switch (info) { - .Struct => { - if (!info.Struct.is_tuple) + .@"struct" => { + if (!info.@"struct".is_tuple) @compileError("Args should be in a tuple (call this function like textFormat(.{arg1, arg2, ...});)!"); }, else => { @@ -2311,8 +2311,8 @@ pub fn traceLog(logLevel: TraceLogLevel, text: [*:0]const u8, args: anytype) voi comptime { const info = @typeInfo(@TypeOf(args)); switch (info) { - .Struct => { - if (!info.Struct.is_tuple) + .@"struct" => { + if (!info.@"struct".is_tuple) @compileError("Args should be in a tuple (call this function like traceLog(.{arg1, arg2, ...});)!"); }, else => {