mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-29 08:44:15 +01:00
shell fillet fix, pc rtc printing
This commit is contained in:
parent
6b04dc3f56
commit
8a8a3b4439
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -530,7 +530,7 @@ class SC64:
|
|||||||
if (isv):
|
if (isv):
|
||||||
print('IS-Viewer64 support set to [ENABLED]')
|
print('IS-Viewer64 support set to [ENABLED]')
|
||||||
if (self.__get_config(self.__CfgId.ROM_SHADOW_ENABLE)):
|
if (self.__get_config(self.__CfgId.ROM_SHADOW_ENABLE)):
|
||||||
print('ROM shadow enabled - ISV support will NOT work (use --no-shadow option to disable it)')
|
print('ROM shadow enabled - IS-Viewer64 will NOT work (use --no-shadow option to disable it)')
|
||||||
|
|
||||||
if (disks):
|
if (disks):
|
||||||
dd = DD64Image()
|
dd = DD64Image()
|
||||||
@ -587,8 +587,12 @@ class SC64:
|
|||||||
dd.unload()
|
dd.unload()
|
||||||
print(f'64DD disk ejected - {os.path.basename(disks[current_image])}')
|
print(f'64DD disk ejected - {os.path.basename(disks[current_image])}')
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
pass
|
||||||
|
|
||||||
if (dd and dd.loaded):
|
if (dd and dd.loaded):
|
||||||
self.__set_config(self.__CfgId.DD_DISK_STATE, self.__DDDiskState.EJECTED)
|
self.__set_config(self.__CfgId.DD_DISK_STATE, self.__DDDiskState.EJECTED)
|
||||||
|
if (isv):
|
||||||
|
self.__set_config(self.__CfgId.ISV_ENABLE, False)
|
||||||
|
|
||||||
|
|
||||||
class EnumAction(argparse.Action):
|
class EnumAction(argparse.Action):
|
||||||
@ -676,7 +680,9 @@ if __name__ == '__main__':
|
|||||||
print(f'CIC seed set to [0x{args.cic:X}]')
|
print(f'CIC seed set to [0x{args.cic:X}]')
|
||||||
|
|
||||||
if (args.rtc):
|
if (args.rtc):
|
||||||
sc64.set_rtc(datetime.now())
|
value = datetime.now()
|
||||||
|
sc64.set_rtc(value)
|
||||||
|
print(f'RTC set to [{value.strftime("%Y-%m-%d %H:%M:%S")}]')
|
||||||
|
|
||||||
if (args.rom):
|
if (args.rom):
|
||||||
with open(args.rom, 'rb+') as f:
|
with open(args.rom, 'rb+') as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user