File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1229,13 +1229,19 @@ bool __fastcall XgLoadSettings(void)
1229
1229
}
1230
1230
1231
1231
if (!app_key.QuerySz (L" SoundFile0" , sz, _countof (sz))) {
1232
- StringCchCopy (xg_aszSoundFiles[0 ], _countof (xg_aszSoundFiles[0 ]), sz);
1232
+ if (PathFileExistsW (sz)) {
1233
+ StringCchCopy (xg_aszSoundFiles[0 ], _countof (xg_aszSoundFiles[0 ]), sz);
1234
+ }
1233
1235
}
1234
1236
if (!app_key.QuerySz (L" SoundFile1" , sz, _countof (sz))) {
1235
- StringCchCopy (xg_aszSoundFiles[1 ], _countof (xg_aszSoundFiles[1 ]), sz);
1237
+ if (PathFileExistsW (sz)) {
1238
+ StringCchCopy (xg_aszSoundFiles[1 ], _countof (xg_aszSoundFiles[1 ]), sz);
1239
+ }
1236
1240
}
1237
1241
if (!app_key.QuerySz (L" SoundFile2" , sz, _countof (sz))) {
1238
- StringCchCopy (xg_aszSoundFiles[2 ], _countof (xg_aszSoundFiles[2 ]), sz);
1242
+ if (PathFileExistsW (sz)) {
1243
+ StringCchCopy (xg_aszSoundFiles[2 ], _countof (xg_aszSoundFiles[2 ]), sz);
1244
+ }
1239
1245
}
1240
1246
1241
1247
// 保存先のリストを取得する。
You can’t perform that action at this time.
0 commit comments