Ejemplo n.º 1
0
        public void WriteAcfFile(string appId, string contents)
        {
            string acfFileName = string.Format("appmanifest_{0}.acf", appId);
            string acfPath     = Path.Combine(SteamDirectory, acfFileName);

            SteamDirParsingUtils.GetAndReplaceDirectoryNameFromAcf(ref contents);   //This will strip any absolute pathing on the install dir, absolute paths cause issues when moving things around, and are uneccessary.

            WingmanServer.SendSignal_RemoveAcfFileFromHitList(acfPath);
            File.WriteAllText(acfPath, contents);
        }
Ejemplo n.º 2
0
        public void WriteAcfFile(string appId, string contents)
        {
            string acfFileName = string.Format("appmanifest_{0}.acf", appId);
            string acfPath     = Path.Combine(SteamDirectory, acfFileName);

            SteamDirParsingUtils.GetAndReplaceDirectoryNameFromAcf(ref contents);   //This will strip any absolute pathing on the install dir, absolute paths cause issues when moving things around, and are uneccessary.

            TransferManager.Instance.AcfFileWatchList.Remove(acfPath.ToLower());

            File.WriteAllText(acfPath, contents);
        }