disable dev menu functionality

This commit is contained in:
Nicholas Dyer 2023-01-26 15:17:09 -05:00
parent 44986e62c0
commit e5584bd439
No known key found for this signature in database
GPG Key ID: E4E6388793FA2105

View File

@ -13,17 +13,13 @@ if __name__ == '__main__':
# enable dev mode if --dev argument is passed # enable dev mode if --dev argument is passed
if len(sys.argv) > 0: if len(sys.argv) > 0:
for args in sys.argv: for arg in sys.argv:
if args == '--dev': match arg:
enable_dev = True case '--delete-save':
if args == '--delete-save':
save_dir = os.path.join(Path.home(), '.pocket_friends') save_dir = os.path.join(Path.home(), '.pocket_friends')
os.remove(save_dir + '/save.json') os.remove(save_dir + '/save.json')
if not enable_dev:
game_main() game_main()
else:
dev_menu_main()
pygame.quit() pygame.quit()
sys.exit() sys.exit()