mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix #1792
This commit is contained in:
@@ -26,8 +26,15 @@ internal sealed partial class GameConfigurationFileService : IGameConfigurationF
|
||||
{
|
||||
string serverCacheFolder = runtimeOptions.GetDataFolderServerCacheFolder();
|
||||
string source = Path.Combine(serverCacheFolder, ConfigurationFileName);
|
||||
|
||||
if (File.Exists(source))
|
||||
{
|
||||
string? directory = Path.GetDirectoryName(destination);
|
||||
if (string.IsNullOrEmpty(directory) || !Directory.Exists(directory))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
File.Copy(source, destination, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user