mirror of https://github.com/fairyglade/ly.git
Makes requested changes
This commit is contained in:
parent
5d5297c2f4
commit
e4f07d2244
|
|
@ -37,8 +37,9 @@ pub fn alphaBlit(x: usize, y: usize, tb_width: usize, tb_height: usize, cells: [
|
||||||
|
|
||||||
fn toBigNumber(char: u8, bigclock: Bigclock) []const u21 {
|
fn toBigNumber(char: u8, bigclock: Bigclock) []const u21 {
|
||||||
const locale_chars = switch (bigclock) {
|
const locale_chars = switch (bigclock) {
|
||||||
.fa => fa.locale_chars,
|
.fa => fa.locale_chars,
|
||||||
else => en.locale_chars,
|
.en => en.locale_chars,
|
||||||
|
.none => unreachable,
|
||||||
};
|
};
|
||||||
return switch (char) {
|
return switch (char) {
|
||||||
'0' => &locale_chars.ZERO,
|
'0' => &locale_chars.ZERO,
|
||||||
|
|
|
||||||
|
|
@ -90,13 +90,14 @@ pub fn configFieldHandler(_: std.mem.Allocator, field: ini.IniField) ?ini.IniFie
|
||||||
// It also includes the ability to change active bigclock's language
|
// It also includes the ability to change active bigclock's language
|
||||||
var mapped_field = field;
|
var mapped_field = field;
|
||||||
|
|
||||||
if (std.mem.eql(u8, field.value, "true"))
|
if (std.mem.eql(u8, field.value, "true")){
|
||||||
mapped_field.value = "en";
|
mapped_field.value = "en";
|
||||||
if (std.mem.eql(u8, field.value, "false"))
|
mapped_config_fields = true;
|
||||||
|
}else if (std.mem.eql(u8, field.value, "false")){
|
||||||
mapped_field.value = "none";
|
mapped_field.value = "none";
|
||||||
|
mapped_config_fields = true;
|
||||||
|
}
|
||||||
mapped_config_fields = true;
|
|
||||||
return mapped_field;
|
return mapped_field;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue