disable dev menu functionality
This commit is contained in:
parent
44986e62c0
commit
e5584bd439
|
@ -13,17 +13,13 @@ if __name__ == '__main__':
|
|||
|
||||
# enable dev mode if --dev argument is passed
|
||||
if len(sys.argv) > 0:
|
||||
for args in sys.argv:
|
||||
if args == '--dev':
|
||||
enable_dev = True
|
||||
if args == '--delete-save':
|
||||
save_dir = os.path.join(Path.home(), '.pocket_friends')
|
||||
os.remove(save_dir + '/save.json')
|
||||
for arg in sys.argv:
|
||||
match arg:
|
||||
case '--delete-save':
|
||||
save_dir = os.path.join(Path.home(), '.pocket_friends')
|
||||
os.remove(save_dir + '/save.json')
|
||||
|
||||
if not enable_dev:
|
||||
game_main()
|
||||
else:
|
||||
dev_menu_main()
|
||||
game_main()
|
||||
|
||||
pygame.quit()
|
||||
sys.exit()
|
||||
|
|
Loading…
Reference in New Issue