From 7ed99d614f3acf4597ff87d23e3dbc95be164e66 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Mon, 25 Apr 2016 11:57:41 -0700 Subject: [PATCH] Fixed KBoot segment creation --- atrcopy/kboot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atrcopy/kboot.py b/atrcopy/kboot.py index edf0623..e8a9ba9 100644 --- a/atrcopy/kboot.py +++ b/atrcopy/kboot.py @@ -52,4 +52,5 @@ class KBootImage(DiskImageBase): def get_file_segment(self, dirent): start = dirent.exe_start end = dirent.exe_start + dirent.exe_size - return XexSegment(self.bytes[start:end], self.style[start:end], 0, 0, 0, start, name="KBoot Executable") + raw = self.rawdata[start:end] + return XexSegment(raw, 0, 0, start, end, name="KBoot Executable")