From c090875e9bccc36d5b5bfbfa8ab1e95ab3b99c4e Mon Sep 17 00:00:00 2001 From: Jakads Date: Sun, 20 Oct 2019 04:32:14 +0900 Subject: [PATCH] v1.3.1 update --- README.md | 7 +++++++ convert.py | 13 ++++++++----- version.txt | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2d6fe92..9b57560 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,13 @@ Supports all keys (4K~9K) ## Changelog +### v1.3.1 + +* Added window title +* Typo, whoops +* Bug fixes + * Updating fails if the original .exe has a whitespace in its name + ### v1.3 * [#4](https://github.com/jakads/Malody-to-Osumania/issues/4) - __**Supports multiple BPMs**__ diff --git a/convert.py b/convert.py index f1a1738..f3672d1 100644 --- a/convert.py +++ b/convert.py @@ -9,10 +9,12 @@ from tqdm import tqdm import string import random +import ctypes try: - version = "1.3" + version = "1.3.1" date = "October 20th, 2019" + ctypes.windll.kernel32.SetConsoleTitleW(f"Malody to osu!mania Converter v{version}") #https://stackoverflow.com/questions/7387276 if getattr(sys, 'frozen', False): os.chdir(os.path.split(sys.executable)[0]) @@ -68,9 +70,9 @@ def choose(): 'echo (i) Restarting . . .', "echo (i) All the files you've dragged in will be converted very soon!", 'timeout /t 5 /nobreak >nul', - f'del {filename}', - f'rename {rand}.exe {filename}', - f'start {filename} --:update {" ".join(sys.argv[1:]) if len(sys.argv)>1 else ""}', + f'del "{filename}"', + f'rename {rand}.exe "{filename}"', + f'start cmd /c "{filename}" --:update {" ".join(sys.argv[1:]) if len(sys.argv)>1 else ""}', f'del {rand}.bat'])) os.startfile(f'{rand}.bat') sys.exit() @@ -302,7 +304,8 @@ def compress(compressname, name, bglist, soundlist): mcname.append(mctmp) if not MCDragged and not ZIPDragged: - print("\n[X] FILEERROR: None of the files you've dragged in are supported. This program only accepts .mc, .mcz, .zip files, or folders with them.") + #print("\n[X] FILEERROR: None of the files you've dragged in are supported. This program only accepts .mc, .mcz, .zip files, or folders with them.") + print("\n[X] FILEERROR: None of the files you've dragged in are supported. This program only accepts .mc, .mcz, or .zip files.") print("(i) Press any key to exit.") getch() sys.exit() diff --git a/version.txt b/version.txt index a58941b..6261a05 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.3 \ No newline at end of file +1.3.1 \ No newline at end of file