Эх сурвалжийг харах

gw: Index-cue generated SCP and Kryoflux files.
Almost all external tools and emulators seem to need this.
Fixes #69

Keir Fraser 4 жил өмнө
parent
commit
48f165a8ef

+ 5 - 0
scripts/greaseweazle/image/kryoflux.py

@@ -183,6 +183,11 @@ class KryoFlux(Image):
             check_index(f)
 
         flux = track.flux()
+
+        # HxC crashes or fails to load non-index-cued stream files.
+        # So let's give it what it wants.
+        flux.cue_at_index()
+
         factor = sck / flux.sample_freq
         dat = bytearray()
 

+ 6 - 0
scripts/greaseweazle/image/scp.py

@@ -176,6 +176,12 @@ class SCP(Image):
         """
 
         flux = track.flux()
+
+        # External tools and emulators generally seem to work best (or only)
+        # with index-cued SCP image files. So let's make sure we give them
+        # what they want.
+        flux.cue_at_index()
+
         if not flux.index_cued:
             self.index_cued = False