Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MainLoader : refactor main method #756

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FRESH-TUNA
Copy link

Description

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!

翻訳機を使って文章がおかしいかもしれませんのでご了承ください

こんにちは。私はbeateraja )を通じてbmsを楽しんでいるユーザーです
BMSを楽しむユーザーのためのコードを開発してくれてありがとう!
私はbeatorajaコードに興味があります。
そこで、プログラムロジックをリファクタリングまたは強化するためのコードについて学び始めました。

私のPRコードが欠けているように見えるかもしれません···
私はコードを誤解しているかもしれません😿
なので、ご意見をいただければ反映させていただきます。
ありがとう!🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant