This PR refactor main method of MainLoader to enhence readability and maintainability.
このPRリファクタは、MainLoaderのメインメソッドで、読み取り可能性とメンテナンス性を高めます
What changed?
split main function code into private functions
check64BitArchitecture: 64bit check
configLogger: logger setting
parseArgsIntoConfig: parsing args into bmspath and mode variable (args を bmspath およびモードに解析する)
isModeConfigured: check BMSPlayerMode variable is configured to PRACTICE, REPLAY ...
rename BMSPlayerMode variable auto to mode
comment
Hello, I am a user who enjoys bms through beatoraja
Thank you for developing the code for users who enjoy bms!
I have interested in beatoraja codes.
So I started to learn about your codes to refactor or enhance program logics.
My code in PR may seem lacking and code smell...
And I maybe misunderstood the code
So If you give me your opinion, I will reflect it.
Thanks!
Description
This PR refactor main method of MainLoader to enhence readability and maintainability. このPRリファクタは、MainLoaderのメインメソッドで、読み取り可能性とメンテナンス性を高めます
What changed?
check64BitArchitecture
: 64bit checkconfigLogger
: logger settingparseArgsIntoConfig
: parsing args into bmspath and mode variable (args を bmspath およびモードに解析する)isModeConfigured
: check BMSPlayerMode variable is configured to PRACTICE, REPLAY ...auto
tomode
comment
Hello, I am a user who enjoys bms through beatoraja Thank you for developing the code for users who enjoy bms! I have interested in beatoraja codes. So I started to learn about your codes to refactor or enhance program logics.
My code in PR may seem lacking and code smell... And I maybe misunderstood the code So If you give me your opinion, I will reflect it. Thanks!
翻訳機を使って文章がおかしいかもしれませんのでご了承ください
こんにちは。私はbeateraja )を通じてbmsを楽しんでいるユーザーです BMSを楽しむユーザーのためのコードを開発してくれてありがとう! 私はbeatorajaコードに興味があります。 そこで、プログラムロジックをリファクタリングまたは強化するためのコードについて学び始めました。
私のPRコードが欠けているように見えるかもしれません··· 私はコードを誤解しているかもしれません😿 なので、ご意見をいただければ反映させていただきます。 ありがとう!🙏