File tree Expand file tree Collapse file tree 4 files changed +30
-7
lines changed Expand file tree Collapse file tree 4 files changed +30
-7
lines changed Original file line number Diff line number Diff line change @@ -104,4 +104,14 @@ rules:
104104 destinations :
105105 - name : default
106106 path : " /SuperMetroid/Rando"
107- ` ` `
107+ ` ` `
108+
109+ ## Troubleshooting
110+
111+ Problem: RomLoader hangs without any input
112+ Solutions:
113+ 1. try restaring usb2snes.exe
114+ 2. power off and back on your sd2snes
115+ 3. load a non-special chip/MSU1 ROM through the sd2snes menu
116+
117+ Basically RomLoader is having trouble interacting with the usb2snes.
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def Boot(self, romname):
9292 else :
9393 raise usb2snesException ("Boot: not attached to usb2snes. Try executing Attach first." )
9494
95- def Menu (self , romname ):
95+ def Menu (self ):
9696 if self .attached :
9797 cmd = {
9898 'Opcode' : 'Menu' ,
Original file line number Diff line number Diff line change 66import yaml
77
88from py2snes import usb2snes
9+ from py2snes import usb2snesException
10+
11+
12+ def show_exception_and_exit (exc_type , exc_value , tb ):
13+ import traceback
14+ traceback .print_exception (exc_type , exc_value , tb )
15+ input ("Press key to exit." )
16+ sys .exit (- 1 )
17+
18+ sys .excepthook = show_exception_and_exit
19+
920
1021# load the configuration file (if it exists, otherwise use default config)
1122scriptpath = os .path .dirname (sys .argv [0 ])
@@ -72,10 +83,7 @@ def main():
7283 else :
7384 path = config ['default_destination' ]
7485 romname = filename
75- print ("making {path} directory if it doesn't exist" .format (
76- path = path
77- ))
78- conn .MakeDir ('/romloader' )
86+ conn .MakeDir ('/romloader' )
7987 conn .List (path )
8088 print ("copying rom to {fullpath}" .format (
8189 fullpath = path + '/' + romname
@@ -87,7 +95,7 @@ def main():
8795 conn .Boot (path + '/' + romname )
8896 conn .close ()
8997
90- sleep (15 )
98+ sleep (5 )
9199
92100
93101def matchrule (name ):
Original file line number Diff line number Diff line change 1+ import py2snes
2+
3+ conn = py2snes .usb2snes ()
4+ conn .Attach ()
5+ print (conn .Info ())
You can’t perform that action at this time.
0 commit comments