20 lines
521 B
C#
20 lines
521 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using System.IO;
|
|
namespace BITKit
|
|
{
|
|
public class Base64Parser : MonoBehaviour
|
|
{
|
|
public string path;
|
|
public string outputPath;
|
|
public string json;
|
|
[ContextMenu(nameof(Decompress))]
|
|
public void Decompress()
|
|
{
|
|
var base64 = File.ReadAllText(path);
|
|
var json = GZipHelper.GZipDecompressString(base64);
|
|
File.WriteAllText(outputPath, json);
|
|
}
|
|
}
|
|
} |