OSDN Git Service

[Refactor] .cfgファイル読み込み処理のリファクタリング #635
authorshimitei <shimitei@gmail.com>
Sat, 27 Mar 2021 07:14:52 +0000 (16:14 +0900)
committershimitei <shimitei@gmail.com>
Sun, 28 Mar 2021 22:25:13 +0000 (07:25 +0900)
commitb4c4b61b72acbfed19c02ad18f09a867912cc285
treed6b71e11b972198ac90e8f2b60d88a6523837f8c
parenta587b848ac6723efaa454de6b1aad5484eafcbe2
[Refactor] .cfgファイル読み込み処理のリファクタリング #635

.cfgの読み取りクラスCfgReaderを作成し、処理を置き換えた。
データ構造を配列からmapに変更し、再生時の対象ファイル取得を簡略化した。

sound.cfgの[Device]項目は、効果音再生には不要なこととBGMの同設定項目と競合するため削除した。
15 files changed:
Hengband/Hengband/Hengband.vcxproj
Hengband/Hengband/Hengband.vcxproj.filters
lib/xtra/sound/sound.cfg
src/Makefile.am
src/main-win.cpp
src/main-win/main-win-cfg-reader.cpp [new file with mode: 0644]
src/main-win/main-win-cfg-reader.h [new file with mode: 0644]
src/main-win/main-win-file-utils.cpp
src/main-win/main-win-file-utils.h
src/main-win/main-win-music.cpp
src/main-win/main-win-music.h
src/main-win/main-win-sound.cpp
src/main-win/main-win-sound.h
src/main/scene-table.cpp
src/main/scene-table.h