chore: copy array instead of calling memcpy
This commit is contained in:
parent
f3b6c4f3fe
commit
91aa98eef7
|
@ -76,9 +76,7 @@ pub fn draw(state: *State, tex_id: GLuint, cpu: *Arm7tdmi) void {
|
||||||
break :blk;
|
break :blk;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Ideally, state.title = cpu.bus.pak.title
|
state.title = cpu.bus.pak.title ++ [_:0]u8{};
|
||||||
// since state.title is a [12:0]u8 and cpu.bus.pak.title is a [12]u8
|
|
||||||
std.mem.copy(u8, &state.title, &cpu.bus.pak.title);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue