Esempio n. 1
0
        static void SwfFileProcess(string swf_path)
        {
            var swf_hash       = SwfEditorUtils.GetFileHashWithVersion(swf_path);
            var swf_asset_path = Path.ChangeExtension(swf_path, ".asset");

            SwfEditorUtils.LoadOrCreateAsset <SwfAsset>(swf_asset_path, (swf_asset, created) => {
                if (!string.IsNullOrEmpty(swf_asset.Hash) && swf_asset.Hash == swf_hash)
                {
                    return(true);
                }
                else if (created)
                {
                    var default_settings = SwfEditorUtils.GetSettingsHolder().Settings;
                    swf_asset.Settings   = default_settings;
                    swf_asset.Overridden = default_settings;
                }
                return(SafeLoadSwfAsset(swf_path, swf_hash, swf_asset));
            });
        }