タスク: pygame.mixerが実行されないようにする

Issue #573 resolved
k4nagatsuki repo owner created an issue

issue #557・issue #571を参照してください。

内部的には残しておき、隠しオプションなりフラグなりで切り離す形にします。

Comments (4)

  1. 暗黒 騎士
    Traceback (most recent call last):
      File "cardwirth.py", line 33, in <module>
        main()
      File "cardwirth.py", line 27, in main
        app = cw.frame.MyApp(0)
      File "wx\_core.pyo", line 8628, in __init__
      File "wx\_core.pyo", line 8196, in _BootstrapApp
      File "cw\frame.pyo", line 1313, in OnInit
      File "cw\frame.pyo", line 57, in __init__
      File "cw\frame.pyo", line 141, in _start_wx
      File "cw\thread.pyo", line 54, in __init__
      File "cw\thread.pyo", line 71, in init_pygame
      File "cw\util.pyo", line 538, in init
    AttributeError: 'NoneType' object has no attribute 'setting'
    Traceback (most recent call last):
      File "cw\frame.pyo", line 517, in OnDestroy
    AttributeError: 'NoneType' object has no attribute '_running'
    

    存在しないサウンドフォントにチェックがある状態で起動しようとするとエラーが出るのですが、 if cw.cwpy.setting.sdlmixer_enabled:のAttributeエラーで止まっているということは 多分起動時はsettingより早く初期化してるからでしょうか?

  2. k4nagatsuki reporter

    pull request #2066

    そうですね、うっかりしていました。ありがとうございます。

  3. Log in to comment