changeset 121:bfced396acca draft

NES_ROM: style fix Switch around the order of a statment so it look like the other branch of the if.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Wed, 02 Oct 2019 09:09:16 -0400
parents 0c40b4e8270e
children d3ee52820f6b
files nes.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nes.py
+++ b/nes.py
@@ -46,8 +46,8 @@
         self.PRG = body[0:PRG_size]
         if CHR_size == 0:
             # No chr, just read the whole ROM as tiles
+            self.CHR = None
             self.tile_data = list(body)
-            self.CHR = None
         else:
             self.CHR = body[PRG_size:PRG_size+CHR_size]
             self.tile_data = list(self.CHR)