Skip to content

Commit

Permalink
v1.3.1 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakads committed Oct 19, 2019
1 parent 177a0a2 commit c090875
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**__
Expand Down
13 changes: 8 additions & 5 deletions convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3
1.3.1

0 comments on commit c090875

Please sign in to comment.