Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Fixed #4
Browse files Browse the repository at this point in the history
  • Loading branch information
hexstr committed Jul 4, 2022
1 parent 10eecf3 commit 347c2e5
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 577 deletions.
5 changes: 2 additions & 3 deletions FGOAssetsModifyTool/CatAndMouseGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static string GetMD5String(string input)
}
}

private FileType fileType;
public FileType fileType;
public CatAndMouseGame(FileType _)
{
fileType = _;
Expand Down Expand Up @@ -256,14 +256,13 @@ public static void OtherHomeBuilding(string data, out byte[] home, out byte[] in
else
info[i] = bytes[i];
}

public byte[] MouseGame4(byte[] data, string key)
{
byte[] info;
byte[] home;
OtherHomeBuilding(key, out home, out info);

byte[] array = MouseHomeMain(data, baseData, baseTop, false);
byte[] array = MouseHomeMain(data, home, info, false);
if (array == null)
{
Console.WriteLine("MouseHomeMain failed");
Expand Down
10 changes: 9 additions & 1 deletion FGOAssetsModifyTool/Configuration.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.IO;
using System.Text.Json.Nodes;

namespace FGOAssetsModifyTool
{
Expand All @@ -9,11 +10,15 @@ public static class Configuration
public static DirectoryInfo ScriptsFolder = new DirectoryInfo(NowPath + @"\Android\Scripts");
public static string GameDataFolder = new DirectoryInfo(NowPath + @"\Android\gamedata\").FullName;
public static string GameDataUnpackFolder = new DirectoryInfo(NowPath + @"\Android\gamedata\unpack_master\").FullName;
public static string GameDataUnpackAssetBundleFolder = new DirectoryInfo(NowPath + @"\Android\gamedata\unpack_assetbundle\").FullName;
public static string GameDataRawPath = new DirectoryInfo(NowPath + @"\Android\gamedata\raw").FullName;
public static string GameDataMasterPath = new DirectoryInfo(NowPath + @"\Android\gamedata\master").FullName;
public static string GameDataAssetBundlePath = new DirectoryInfo(NowPath + @"\Android\gamedata\assetbundle").FullName;
public static string GameDataAssetBundleKeyPath = new DirectoryInfo(NowPath + @"\Android\gamedata\assetbundleKey").FullName;
public static DirectoryInfo DecryptedFolder = new DirectoryInfo(NowPath + @"\Decrypted\");
public static string EncryptedFolder = new DirectoryInfo(NowPath + @"\Encrypted\").FullName;
public static DirectoryInfo DecryptedScriptsFolder = new DirectoryInfo(NowPath + @"\DecryptedScripts\");
public static string EncryptedScriptsFolder = new DirectoryInfo(NowPath + @"\EncryptedScripts\").FullName;

static Configuration()
{
if (!Directory.Exists(AssetsFolder.FullName))
Expand All @@ -28,6 +33,9 @@ static Configuration()
if (!Directory.Exists(GameDataUnpackFolder))
Directory.CreateDirectory(GameDataUnpackFolder);

if (!Directory.Exists(GameDataUnpackAssetBundleFolder))
Directory.CreateDirectory(GameDataUnpackAssetBundleFolder);

if (!Directory.Exists(DecryptedFolder.FullName))
Directory.CreateDirectory(DecryptedFolder.FullName);

Expand Down

0 comments on commit 347c2e5

Please sign in to comment.