Unified locales #391
@ -14,10 +14,16 @@ namespace Ryujinx.BuildValidationTasks
|
|||||||
|
|||||||
{
|
{
|
||||||
string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
|
string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
|
||||||
|
|
||||||
path = path.Split(new string[] { "src" }, StringSplitOptions.None)[0];
|
if (path.Split(new string[] { "src" }, StringSplitOptions.None).Length == 1 )
|
||||||
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
|
|||||||
|
{
|
||||||
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
|
|||||||
|
//i assume that we are in a build directory in the solution dir
|
||||||
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
|
|||||||
path = new FileInfo(path).Directory.GetDirectories("src")[0].GetDirectories("Ryujinx")[0].GetDirectories("Assets")[0].GetFiles("locales.json")[0].FullName;
|
path = new FileInfo(path).Directory.Parent.GetDirectories("src")[0].GetDirectories("Ryujinx")[0].GetDirectories("Assets")[0].GetFiles("locales.json")[0].FullName;
|
||||||
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
|
|||||||
|
}
|
||||||
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
|
|||||||
|
else
|
||||||
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
|
|||||||
|
{
|
||||||
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
|
|||||||
|
path = path.Split(new string[] { "src" }, StringSplitOptions.None)[0];
|
||||||
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
|
|||||||
|
path = new FileInfo(path).Directory.GetDirectories("src")[0].GetDirectories("Ryujinx")[0].GetDirectories("Assets")[0].GetFiles("locales.json")[0].FullName;
|
||||||
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
|
|||||||
|
}
|
||||||
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
|
|||||||
|
|
||||||
string data;
|
string data;
|
||||||
|
|
||||||
|
|||||||
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
![]() A minor comment: A minor comment: `LocalesJSON` -> `LocalesJson`
|
@ -11,7 +11,7 @@
|
|||||||
<PackageReference Include="Newtonsoft.Json" />
|
<PackageReference Include="Newtonsoft.Json" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<UsingTask TaskName="Ryujinx.BuildValidationTasks.LocaleValidationTask" TaskFactory="TaskHostFactory" AssemblyFile="$(ProjectDir)bin\$(Configuration)\netstandard2.0\Ryujinx.BuildValidationTasks.dll" />
|
<UsingTask TaskName="Ryujinx.BuildValidationTasks.LocaleValidationTask" TaskFactory="TaskHostFactory" AssemblyFile="$(TargetDir)Ryujinx.BuildValidationTasks.dll" />
|
||||||
|
|
||||||
<Target Name="LocalesJsonValidation" AfterTargets="AfterBuild">
|
<Target Name="LocalesJsonValidation" AfterTargets="AfterBuild">
|
||||||
<LocaleValidationTask />
|
<LocaleValidationTask />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user
A minor comment:
LocalesJSON
->LocalesJson
A minor comment:
LocalesJSON
->LocalesJson