chore: copy array instead of calling memcpy

This commit is contained in:
Rekai Nyangadzayi Musuka 2023-03-11 00:30:34 -06:00
parent f3b6c4f3fe
commit 91aa98eef7
1 changed files with 1 additions and 3 deletions

View File

@ -76,9 +76,7 @@ pub fn draw(state: *State, tex_id: GLuint, cpu: *Arm7tdmi) void {
break :blk;
};
// Ideally, state.title = cpu.bus.pak.title
// 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);
state.title = cpu.bus.pak.title ++ [_:0]u8{};
}
}
}