glfw: move constants into separate modules
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
166d621797
commit
6308a2f8dd
4 changed files with 30 additions and 25 deletions
|
|
@ -262,7 +262,7 @@ fn confirmAppleSDKAgreement(allocator: *std.mem.Allocator) !bool {
|
|||
if (try stdin.readUntilDelimiterOrEof(buf[0..], '\n')) |user_input| {
|
||||
try stdout.print("\n", .{});
|
||||
var in = user_input;
|
||||
if (in[in.len-1] == '\r') in = in[0..in.len-1];
|
||||
if (in[in.len - 1] == '\r') in = in[0 .. in.len - 1];
|
||||
return std.mem.eql(u8, in, "y") or std.mem.eql(u8, in, "Y") or std.mem.eql(u8, in, "yes") or std.mem.eql(u8, in, "");
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue