예제 #1
0
 private void SaveSaveGameDataToDisk(SaveGameData p_saveGameData, String p_file)
 {
     CreateUserSubPath();
     using (FileStream fileStream = File.Create(Path.Combine(Path.Combine(GamePaths.UserGamePath, LegacyLogic.Instance.ServiceWrapper.GetUserName()), p_file)))
     {
         using (BinaryWriter binaryWriter = new BinaryWriter(fileStream))
         {
             p_saveGameData.Write(binaryWriter);
         }
     }
 }