Decompiled source of VietnameseLanguagePack v1.0.1

VietnameseLanguagePack.dll

Decompiled 3 weeks ago
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using Microsoft.CodeAnalysis;
using YuanAPI;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")]
[assembly: AssemblyCompany("VietnameseLanguagePack")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+377ed58015a835b1f94d45277f17f4067311e40b")]
[assembly: AssemblyProduct("VietnameseLanguagePack")]
[assembly: AssemblyTitle("VietnameseLanguagePack")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace VietnameseLanguagePack
{
	[BepInDependency("cc.lymone.HoL.YuanAPI", "0.1.2")]
	[BepInPlugin("cc.lymone.HoL.VietnameseLanguagePack", "VietnameseLanguagePack", "1.0.0")]
	public class VietnameseLanguagePackPlugin : BaseUnityPlugin
	{
		private const string MODNAME = "VietnameseLanguagePack";

		private const string MODGUID = "cc.lymone.HoL.VietnameseLanguagePack";

		private const string VERSION = "1.0.0";

		private void Awake()
		{
			Localization.RegisterLocale("vi-VN", "Tiếng Việt", new List<string>(1) { "en-US" });
			Assembly executingAssembly = Assembly.GetExecutingAssembly();
			string directoryName = Path.GetDirectoryName(executingAssembly.Location);
			Localization.LoadFromPath(directoryName);
		}
	}
}