Repository navigation
デスクトップ版の設定をメニューからまとめて変えられるようにし、配布物で OpenAL を読めるようにする - #1439
Merged
Merged
Conversation
- 「設定」メニューの「設定...」で、素材・表示・ログのタブに分けた設定のウィンドウを開く
(素材フォルダの設定のウィンドウを広げ、SettingsWindow にする)
- 表示: 表示言語(OS の言語に合わせる・対応言語)
- ログ: レベル・ファイルに出すか・フォルダ・残す日数。保存したときから効かせる。
引数・環境変数でレベルを指定しているときはそう示す
- 「ヘルプ」メニューに「SRC#Avalonia の使い方」「ログのフォルダを開く」を加える
- ヘルプに「SRC#Avaloniaの使い方」(メニュー・表示倍率・設定・素材パック)を加え、
インストール(SoundFont の同梱・拡張データフォルダ)とログのページを今の作りに合わせる
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016o9WHY8U3cQ2HiDnotdcP6
Contributor
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-pebble-0ddb1c400-1439.eastasia.azurestaticapps.net |
Contributor
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-coast-005428600-1439.eastasia.azurestaticapps.net |
自己完結の単一ファイルに詰めたネイティブライブラリは起動時に一時フォルダへ 展開されるが、Silk.NET の読み込みはその展開先を探さない。OS に OpenAL が 入っていない Windows などで「OpenAL を初期化できません」となり、音が鳴らなかった。 soft_oal.dll・libopenal.so・libopenal.dylib は単一ファイルから外し、 Silk.NET が探す実行ファイルの隣に置く。 初期化できないときは、プロセスのアーキテクチャと、実行ファイルの隣に OpenAL が あるかをログに残す。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016o9WHY8U3cQ2HiDnotdcP6
Contributor
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-pebble-0ddb1c400-1439.eastasia.azurestaticapps.net |
Contributor
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-coast-005428600-1439.eastasia.azurestaticapps.net |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
srcs.jsonを手で書くしかなく、メニューから開けるヘルプにも SRC#Avalonia の操作と設定の説明がなかった。1. 設定のウィンドウ
「設定」メニューの「設定...」で開きます。これまでの「素材フォルダの設定」のウィンドウを広げ、タブに分けました(
SettingsWindow)。srcs.jsonExtDataPath・ExtDataPath2・Option/SoundFontOption/LanguageLog/Level・Log/File・Log/Path・Log/RetainDaysLogHost.ApplyConfig)メニュー
ヘルプ(SRC.Sharp.Help)
menu.mdとmenu.ymlの両方に載せた。SoundFontフォルダも入っている。docs/gui/avalonia.mdを更新した。2. 配布物で OpenAL を読めるようにする
IncludeNativeLibrariesForSelfExtract)に詰めたネイティブライブラリは、起動時に一時フォルダへ展開される。一方、Silk.NET の読み込み(DefaultPathResolver)は、その展開先を探さない。探すのは実行ファイルの場所・runtimesフォルダ・OS の標準の場所など。そのため、OS に OpenAL がない環境で読めなかった。soft_oal.dll・libopenal.so・libopenal.dylib)は単一ファイルから外し(ExcludeFromSingleFile)、実行ファイルの隣に置く(SRCSharpAvalonia.csprojのKeepOpenALBesideExecutable)。確認
SRCSharpAvaloniaTests: 41 件成功、1 件スキップ。追加・更新したテストは次のとおり。LogSettings.FromConfigで読めること)SRCSoundTests: 13 件成功、1 件スキップ。soft_oal.dll・libopenal.soが実行ファイルの隣に置かれることを確認した。libopenal.so.1を一時的に隠した状態で--smokeで起動し、OpenAL の警告が出ないことを確認した。🤖 Generated with Claude Code
https://claude.ai/code/session_016o9WHY8U3cQ2HiDnotdcP6