Skip to content

Commit

Permalink
[Core] Moved asset entries to their own files
Browse files Browse the repository at this point in the history
  • Loading branch information
CadeEvs committed Sep 14, 2022
1 parent 8db068b commit c082630
Show file tree
Hide file tree
Showing 135 changed files with 755 additions and 567 deletions.
1 change: 1 addition & 0 deletions FrostyCmd/ProfileCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using FrostySdk.Deobfuscators;
using FrostySdk.IO;
using FrostySdk.Managers;
using FrostySdk.Managers.Entries;

namespace FrostyCmd
{
Expand Down
1 change: 1 addition & 0 deletions FrostyCmd/ShaderBlockDepotDump.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Collections.Generic;
using System.IO;
using System.Text;
using FrostySdk.Managers.Entries;

namespace FrostyCmd
{
Expand Down
1 change: 1 addition & 0 deletions FrostyCmd/ShaderDbDump.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using FrostySdk.Managers.Entries;

namespace FrostyCmd
{
Expand Down
1 change: 1 addition & 0 deletions FrostyEditor/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using System.Linq;
using Newtonsoft.Json;
using System.Collections.Generic;
using FrostySdk.Managers.Entries;

namespace FrostyEditor
{
Expand Down
1 change: 1 addition & 0 deletions FrostyEditor/Windows/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
using FrostySdk;
using FrostySdk.IO;
using FrostySdk.Managers;
using FrostySdk.Managers.Entries;
using Microsoft.Win32;
using Bookmarks = Frosty.Core.Bookmarks;

Expand Down
1 change: 1 addition & 0 deletions FrostyEditor/Windows/PatchSummaryWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using FrostySdk.IO;
using System.IO;
using Frosty.Core.Controls;
using FrostySdk.Managers.Entries;

namespace FrostyEditor.Windows
{
Expand Down
1 change: 1 addition & 0 deletions FrostyModManager/Windows/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
using FrostyCore;
using Frosty.Core.Controls;
using System.IO.Compression;
using FrostySdk.Managers.Entries;
using Newtonsoft.Json;

namespace FrostyModManager
Expand Down
1 change: 1 addition & 0 deletions FrostyModSupport/Actions/FifaBundle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Linq;
using System.Security.Cryptography;
using System.Threading;
using FrostySdk.Managers.Entries;

namespace Frosty.ModSupport
{
Expand Down
1 change: 1 addition & 0 deletions FrostyModSupport/Actions/HeatBundle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.IO;
using System.Linq;
using System.Threading;
using FrostySdk.Managers.Entries;

namespace Frosty.ModSupport
{
Expand Down
1 change: 1 addition & 0 deletions FrostyModSupport/Actions/ManifestBundle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.IO;
using System.Linq;
using System.Threading;
using FrostySdk.Managers.Entries;

namespace Frosty.ModSupport
{
Expand Down
1 change: 1 addition & 0 deletions FrostyModSupport/Actions/Standard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Collections.Generic;
using System.IO;
using System.Threading;
using FrostySdk.Managers.Entries;

namespace Frosty.ModSupport
{
Expand Down
1 change: 1 addition & 0 deletions FrostyModSupport/FrostyModExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using FrostySdk.Managers.Entries;

namespace Frosty.ModSupport
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Frosty.Controls;
using Frosty.Core.Windows;
using System.Collections.Generic;
using FrostySdk.Managers.Entries;

namespace Frosty.Core
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/AssetDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Collections.Generic;
using System.IO;
using System.Windows.Media;
using FrostySdk.Managers.Entries;

namespace Frosty.Core
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Attributes/RegisterCustomHandlerAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using FrostySdk.Managers;
using System;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Attributes
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Attributes/RegisterProfileAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FrostySdk.Interfaces;

namespace Frosty.Core.Attributes
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Bookmarks/AssetBookmarkTarget.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Frosty.Core.Converters;
using FrostySdk.Managers;
using System.Windows.Media;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Bookmarks
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Controls/Editors/FrostyPointerRefEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using System.Windows.Media;
using Frosty.Core.Windows;
using System.Linq;
using FrostySdk.Managers.Entries;

//using System.IO;

Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Controls/Editors/FrostyResourceRefEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Controls.Editors
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Controls/FrostyAssetEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Controls
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Controls/FrostyAssetListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Controls
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Controls/FrostyClipboard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Controls
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Controls/FrostyDataExplorer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Frosty.Hash;
using Frosty.Core.Commands;
using System.Windows.Data;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Controls
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Windows;
using System.Windows.Data;
using Frosty.Core.Windows;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Converters
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/FrostyProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Frosty.Controls;
using Frosty.Core.Windows;
using System.Windows;
using FrostySdk.Managers.Entries;

namespace Frosty.Core
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Handlers/LegacyCustomActionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Handlers
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/IO/FrostyModWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.IO
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Interfaces/IEditorWindow.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Frosty.Core.Controls;
using FrostySdk.Managers;
using System.Windows.Controls;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Interfaces
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Legacy/LegacyFileEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using FrostySdk.Managers;
using System;
using System.Collections.Generic;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Legacy
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Legacy/LegacyFileManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Legacy
{
Expand Down
9 changes: 9 additions & 0 deletions FrostyPlugin/Managers/PluginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using FrostySdk.IO;
using FrostySdk.Managers;
using Frosty.Core.Mod;
using FrostySdk.Managers.Entries;

namespace Frosty.Core
{
Expand Down Expand Up @@ -392,21 +393,27 @@ public ICustomActionHandler GetCustomHandler(string ebxType)
public ICustomActionHandler GetCustomHandler(uint handlerHash)
{
if (!customHandlers.ContainsKey(handlerHash))
{
return null;
}
return (ICustomActionHandler)Activator.CreateInstance(customHandlers[handlerHash]);
}

public ICustomActionHandler GetCustomHandler(ResourceType resType)
{
if (!resCustomHandlers.ContainsKey(resType))
{
return null;
}
return (ICustomActionHandler)Activator.CreateInstance(resCustomHandlers[resType]);
}

public ICustomAssetCustomActionHandler GetCustomAssetHandler(string type)
{
if (!customAssetHandlers.ContainsKey(type))
{
return null;
}
return (ICustomAssetCustomActionHandler)Activator.CreateInstance(customAssetHandlers[type]);
}

Expand All @@ -419,7 +426,9 @@ public ICustomAssetCustomActionHandler GetCustomAssetHandler(string type)
public byte[] GetShader(ShaderType type, string name)
{
if (!shaders.ContainsKey(name))
{
return null;
}

ShaderDefinition shaderDef = null;
switch (type)
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/BaseModResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using FrostySdk.IO;
using FrostySdk.Managers;
using System.Collections.Generic;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/BundleModResource.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using FrostySdk.IO;
using FrostySdk.Managers;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/ChunkResource.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using FrostySdk.IO;
using FrostySdk.Managers;
using System;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/EbxResource.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using FrostySdk.Managers;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/EditorModResource.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using FrostySdk.IO;
using FrostySdk.Managers;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/HandlerExtraData.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using FrostySdk.Managers;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/ICustomHandler.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Frosty.Core.IO;
using FrostySdk.Managers;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/IModCustomHandler.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using FrostySdk.Managers;
using System.Collections.Generic;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/InitFsResource.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using FrostySdk.Managers;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/ResResource.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using FrostySdk.IO;
using FrostySdk.Managers;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/RuntimeChunkResource.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using FrostySdk.Managers;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/RuntimeEbxResource.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using FrostySdk.Managers;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Mod/RuntimeResResource.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using FrostySdk.Managers;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Mod
{
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Screens/DeferredRenderScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using System.Runtime.InteropServices;
using System.Windows.Input;
using Frosty.Hash;
using FrostySdk.Managers.Entries;
using DXUT = Frosty.Core.Viewport.DXUT;

namespace Frosty.Core.Screens
Expand Down
1 change: 1 addition & 0 deletions FrostyPlugin/Sdk/ClassesSdkCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using System.Linq;
using System.Reflection;
using System.Text;
using FrostySdk.Managers.Entries;

namespace Frosty.Core.Sdk
{
Expand Down
Loading

0 comments on commit c082630

Please sign in to comment.