diff options
Diffstat (limited to 'src/com/sneed/pkrandom/ctr/NCCH.java')
-rw-r--r-- | src/com/sneed/pkrandom/ctr/NCCH.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/sneed/pkrandom/ctr/NCCH.java b/src/com/sneed/pkrandom/ctr/NCCH.java index ccf735c..8db5a4e 100644 --- a/src/com/sneed/pkrandom/ctr/NCCH.java +++ b/src/com/sneed/pkrandom/ctr/NCCH.java @@ -251,11 +251,7 @@ public class NCCH { this.reopenROM(); // Initialize new ROM - File file = new File(filename); - if (!file.canWrite()) { - throw new CannotWriteToLocationException("The randomizer cannot write to this location: " + filename); - } - RandomAccessFile fNew = new RandomAccessFile(file, "rw"); + RandomAccessFile fNew = new RandomAccessFile(filename, "rw"); // Read the header and exheader and write it to the output ROM byte[] header = new byte[header_and_exheader_size]; |