mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-21 18:55:16 +00:00
Change send patch to follow make file rules
This commit is contained in:
parent
000d24a7db
commit
0147f4d738
1 changed files with 12 additions and 11 deletions
|
@ -35,36 +35,37 @@ if '.' not in consoleIP:
|
||||||
print(sys.argv[0], "ERROR: Please specify with `IP=[Your console's IP]`")
|
print(sys.argv[0], "ERROR: Please specify with `IP=[Your console's IP]`")
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
isNeedOtherSwitch = True
|
isNeedOtherSwitch = False
|
||||||
|
|
||||||
altSwitchIP = sys.argv[2]
|
|
||||||
if '.' not in altSwitchIP:
|
|
||||||
isNeedOtherSwitch = False
|
|
||||||
|
|
||||||
consolePort = 5000
|
consolePort = 5000
|
||||||
|
|
||||||
if len(sys.argv) < 4:
|
if len(sys.argv) < 3:
|
||||||
projName = 'StarlightBase'
|
projName = 'StarlightBase'
|
||||||
else:
|
else:
|
||||||
projName = sys.argv[3]
|
projName = sys.argv[2]
|
||||||
|
|
||||||
|
if len(sys.argv) < 5:
|
||||||
|
user = 'crafty'
|
||||||
|
passwd = 'boss'
|
||||||
|
else:
|
||||||
|
user = sys.argv[3]
|
||||||
|
passwd = sys.argv[4]
|
||||||
|
|
||||||
curDir = os.curdir
|
curDir = os.curdir
|
||||||
|
|
||||||
ftp = FTP()
|
ftp = FTP()
|
||||||
|
|
||||||
otherftp = FTP()
|
|
||||||
|
|
||||||
print(f'Connecting to {consoleIP}... ', end='')
|
print(f'Connecting to {consoleIP}... ', end='')
|
||||||
ftp.connect(consoleIP, consolePort)
|
ftp.connect(consoleIP, consolePort)
|
||||||
print('logging into server...', end='')
|
print('logging into server...', end='')
|
||||||
ftp.login('crafty','boss')
|
ftp.login(user,passwd)
|
||||||
print('Connected!')
|
print('Connected!')
|
||||||
|
|
||||||
if isNeedOtherSwitch:
|
if isNeedOtherSwitch:
|
||||||
print(f'Connecting to {altSwitchIP}... ', end='')
|
print(f'Connecting to {altSwitchIP}... ', end='')
|
||||||
otherftp.connect(altSwitchIP, consolePort)
|
otherftp.connect(altSwitchIP, consolePort)
|
||||||
print('logging into server...', end='')
|
print('logging into server...', end='')
|
||||||
otherftp.login('crafty','boss')
|
otherftp.login(user,passwd)
|
||||||
print('Connected!')
|
print('Connected!')
|
||||||
|
|
||||||
patchDirectories = []
|
patchDirectories = []
|
||||||
|
|
Loading…
Reference in a new issue