Commit graph

147 commits

Author SHA1 Message Date
738e0b101b Splitted wszst.py into a module, removed "utf-8 support for path" with cwd because wiimm's tools already support many non-ascii caracter, this simplify the code. 2021-07-26 22:57:45 +02:00
fc3030532b added doctype and type hint to all function, replaced copyfile function by shutil.copyfile 2021-07-25 17:53:29 +02:00
a6ec86c61d Added docstring and more type hint tp Game, Gui and Track to make the code more understandable 2021-07-25 14:55:19 +02:00
ee8fea9c5f reimplemented track selection by star 2021-07-23 21:30:56 +02:00
94b15f076d get_track_name function created bad track suffix 2021-07-22 23:49:17 +02:00
4ac7ac3fe5 fixed track download and sha1 check, track should now be downloaded faster and in parallel 2021-07-22 22:35:41 +02:00
53ee294915 track highlight functionnality weren't implemented since code rework 2021-07-21 22:52:49 +02:00
cc1ee7374b - retro track prefix wouldn't change prefix
- patch_bmg part about changing wii track name have now better variable name and more comment
2021-07-20 22:54:52 +02:00
1b8dc36fac - fixed missing last 10 cup icon
- simplified get_cup_icon function by using stroke_width and stroke_fill argument
- fixed track download
2021-07-19 21:34:22 +02:00
01ac79f623 added in_thread decorator, wszst module is now always used to edit file, ctconfig is now property of Game class and no more Gui 2021-07-18 22:17:03 +02:00
014e4fe259 fixed error and remerged directory into a single file, it is way easier to read, navigate, and code 2021-07-18 14:46:33 +02:00
2f42ed599c fixed intendation error and a function that have been renamed. 2021-07-18 11:44:34 +02:00
a01b390ce0 splitted all class in source into directory 2021-07-18 11:03:35 +02:00
d9b9f56169 merged a maximum of source file with object (object will be re-separated in multiple folder next commit) 2021-07-17 23:32:53 +02:00
2990b1a652 created a Option class, merged get_github_file with Track and install_mod with Game 2021-07-17 22:24:05 +02:00
2f171311bc installer will now detect if it is a dev version, and can change url to download track 2021-07-17 21:05:09 +02:00
57efdf2da3 edited source to use CT_Config, Game, Cup and Track 2021-07-17 19:30:51 +02:00
c041f55cb9 added ctfile code, fixed issue, load from json function 2021-07-16 22:44:41 +02:00
6c5f8b1fe8 added extract game code 2021-07-16 12:01:29 +02:00
42a96db471 added ctfile creation for CT_Config, Cup, Track 2021-07-16 11:29:44 +02:00
af67bffafe started reworking the code to have a CT_Config, Cup, Game and Track class to make the code way, way more easier to understand and to read 2021-07-16 00:32:12 +02:00
44dfbc6273 some prefix didn't had "R" at the end (CNR was CN, SHR was SH, ...) 2021-07-15 12:01:34 +02:00
8235e5ce9c random track (wiimm cup) are now white 2021-07-15 11:48:12 +02:00
fd5a2a957e reworked color system, you can now choose a version where track will be highlighted, only prefix and suffix will now be colored 2021-07-15 11:43:27 +02:00
ff98213786 renamed count_track to load_ct_config, reworked function to load ct_config into variables, called in __init__.py 2021-07-14 22:27:03 +02:00
2c41c0f04c translated to english, added an exception for SystemExit to avoid an error when updating 2021-07-14 14:44:47 +02:00
6d1411e199 added "track selection" menu allowing you to only install mod for 3, 2 or 1 star track (track from other Mario Kart are not affected) 2021-07-14 12:01:07 +02:00
be9036310b english and french have been switched in the code: english is now the main language, making the code way more easier to read for non-french user. 2021-07-14 00:23:37 +02:00
55a3d99e0b removed debug line, if can't download, skip sha1 check part 2021-06-24 14:25:34 +02:00
7679e69c0c track will now be checked for their sha1 2021-06-24 13:08:27 +02:00
4e6a015f8c fixed check_track_sha1 subprocess.run 2021-06-24 13:08:02 +02:00
d72a1dbaa0 added button in menu to check track sha1 2021-06-24 13:07:36 +02:00
b9abcd2919 if option in default_option isn't found, default value will be added to option.json 2021-06-24 11:26:53 +02:00
68c82393d6 added check_track_sha1 to avoid download issue 2021-06-24 11:26:15 +02:00
23dddaadf3 added --modify arg and changed ID to RMCx60 2021-06-20 12:46:43 +02:00
f581e728f8 contracted 2 line into 1 2021-06-20 12:46:14 +02:00
16e0cad559 install mod button will now show game version 2021-06-20 12:45:10 +02:00
37a5255db9 added text replacement 2021-06-20 12:43:48 +02:00
d3892b6e3c version is now loaded when counting track 2021-06-20 10:01:24 +02:00
ef5ab72131 added note about MenuSingle_?.szs 2021-06-20 10:00:47 +02:00
6e3396ccd5 added Menu.bmg support 2021-06-20 10:00:17 +02:00
444c0f6f92 game's ID is now MKFx01 and game name is "Mario Kart Wii Faraphel {self.VERSION}" 2021-06-20 09:59:44 +02:00
0e491c591e moved region_ID definition to definition.py 2021-06-20 09:55:16 +02:00
7891b47a91 moved game's version from definition.py to ct_config.json 2021-06-20 09:53:32 +02:00
7db29fc9bd moved url to definition.py 2021-06-19 22:08:19 +02:00
ffb75f868d if can't connect to internet, download will automatically be disabled. 2021-06-19 22:04:17 +02:00
6af12b562c if there's no more process in process_list, return 1 2021-06-19 14:43:07 +02:00
4d70a85fd3 added a .copy() to avoid "changed size" issue 2021-06-19 13:15:41 +02:00
d356f8f250 removed 3 useless return 0 causing issue. 2021-06-19 12:58:26 +02:00
3ca04e0e8e rewrote last clean_process part and added a return 0 2021-06-19 12:42:46 +02:00