Skip to content

Commit

Permalink
Merge pull request #28 from hozuki/file-structure
Browse files Browse the repository at this point in the history
Updated file structure.
  • Loading branch information
hozuki committed Mar 2, 2017
2 parents f675c25 + 4447cc6 commit 49c7172
Show file tree
Hide file tree
Showing 643 changed files with 901 additions and 1,129 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using DereTore.ACB;
using DereTore.ACB.Serialization;
using DereTore.Exchange.Archive.ACB;
using DereTore.Exchange.Archive.ACB.Serialization;

namespace DereTore.Applications.AcbMaker.Cgss {
namespace DereTore.Apps.AcbMaker.Cgss {
public sealed class AcfReferenceTable : UtfRowBase {

[UtfField(0, ColumnStorage.Constant)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using DereTore.ACB.Serialization;
using DereTore.Exchange.Archive.ACB.Serialization;

namespace DereTore.Applications.AcbMaker.Cgss {
namespace DereTore.Apps.AcbMaker.Cgss {
public sealed class CommandTable : UtfRowBase {

[UtfField(0)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using DereTore.ACB.Serialization;
using DereTore.Exchange.Archive.ACB.Serialization;

namespace DereTore.Applications.AcbMaker.Cgss {
namespace DereTore.Apps.AcbMaker.Cgss {
[UtfTable("CueName")] // Optional. The 'Table' in 'CueNameTable' is ignored by default.
public sealed class CueNameTable : UtfRowBase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using DereTore.ACB.Serialization;
using DereTore.Exchange.Archive.ACB.Serialization;

namespace DereTore.Applications.AcbMaker.Cgss {
namespace DereTore.Apps.AcbMaker.Cgss {
public sealed class CueTable : UtfRowBase {

[UtfField(0)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using DereTore.ACB.Serialization;
using DereTore.Exchange.Archive.ACB.Serialization;

namespace DereTore.Applications.AcbMaker.Cgss {
namespace DereTore.Apps.AcbMaker.Cgss {
public sealed class HeaderTable : UtfRowBase {

[UtfField(0)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using DereTore.ACB.Serialization;
using DereTore.Exchange.Archive.ACB.Serialization;

namespace DereTore.Applications.AcbMaker.Cgss {
namespace DereTore.Apps.AcbMaker.Cgss {
public sealed class SequenceTable : UtfRowBase {

[UtfField(0)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using DereTore.ACB.Serialization;
using DereTore.Exchange.Archive.ACB.Serialization;

namespace DereTore.Applications.AcbMaker.Cgss {
namespace DereTore.Apps.AcbMaker.Cgss {
public sealed class SynthTable : UtfRowBase {

[UtfField(0)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using DereTore.ACB.Serialization;
using DereTore.Exchange.Archive.ACB.Serialization;

namespace DereTore.Applications.AcbMaker.Cgss {
namespace DereTore.Apps.AcbMaker.Cgss {
public sealed class TrackTable : UtfRowBase {

[UtfField(0)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using DereTore.ACB.Serialization;
using DereTore.Exchange.Archive.ACB.Serialization;

namespace DereTore.Applications.AcbMaker.Cgss {
namespace DereTore.Apps.AcbMaker.Cgss {
public sealed class WaveformTable : UtfRowBase {

[UtfField(0)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ProjectGuid>{7516898D-66CC-4084-A218-29F19A503673}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DereTore.Applications.AcbMaker</RootNamespace>
<RootNamespace>DereTore.Apps.AcbMaker</RootNamespace>
<AssemblyName>AcbMaker</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
Expand Down Expand Up @@ -66,13 +66,13 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DereTore.ACB\DereTore.ACB.csproj">
<Project>{eecf4baa-9c9e-4687-a616-0f5c65c5f14b}</Project>
<Name>DereTore.ACB</Name>
<ProjectReference Include="..\..\Exchange\DereTore.Exchange.Archive.ACB\DereTore.Exchange.Archive.ACB.csproj">
<Project>{EECF4BAA-9C9E-4687-A616-0F5C65C5F14B}</Project>
<Name>DereTore.Exchange.Archive.ACB</Name>
</ProjectReference>
<ProjectReference Include="..\DereTore.HCA\DereTore.HCA.csproj">
<ProjectReference Include="..\..\Exchange\DereTore.Exchange.Audio.HCA\DereTore.Exchange.Audio.HCA.csproj">
<Project>{7c6fadd7-a0bb-4bf3-8992-3d89ace1cc69}</Project>
<Name>DereTore.HCA</Name>
<Name>DereTore.Exchange.Audio.HCA</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using System.IO;
using DereTore.ACB.Serialization;
using DereTore.Applications.AcbMaker.Cgss;
using DereTore.HCA;
using DereTore.Apps.AcbMaker.Cgss;
using DereTore.Exchange.Archive.ACB.Serialization;
using DereTore.Exchange.Audio.HCA;

namespace DereTore.Applications.AcbMaker {
namespace DereTore.Apps.AcbMaker {
internal static class Program {

private static int Main(string[] args) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ProjectGuid>{D8F919A6-AC4D-4B22-A214-8258B241F507}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DereTore.Applications.AcbUnzip</RootNamespace>
<RootNamespace>DereTore.Apps.AcbUnzip</RootNamespace>
<AssemblyName>AcbUnzip</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
Expand Down Expand Up @@ -61,14 +61,14 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DereTore.ACB\DereTore.ACB.csproj">
<Project>{eecf4baa-9c9e-4687-a616-0f5c65c5f14b}</Project>
<Name>DereTore.ACB</Name>
</ProjectReference>
<ProjectReference Include="..\DereTore.Common\DereTore.Common.csproj">
<ProjectReference Include="..\..\Common\DereTore.Common\DereTore.Common.csproj">
<Project>{DBD0DA4A-0057-4D04-AD69-0E7267D72793}</Project>
<Name>DereTore.Common</Name>
</ProjectReference>
<ProjectReference Include="..\..\Exchange\DereTore.Exchange.Archive.ACB\DereTore.Exchange.Archive.ACB.csproj">
<Project>{EECF4BAA-9C9E-4687-A616-0F5C65C5F14B}</Project>
<Name>DereTore.Exchange.Archive.ACB</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using System.IO;
using DereTore.ACB;
using DereTore.Exchange.Archive.ACB;

namespace DereTore.Applications.AcbUnzip {
namespace DereTore.Apps.AcbUnzip {
internal static class Program {

private static void Main(string[] args) {
Expand Down Expand Up @@ -46,4 +46,4 @@ private static void WriteFile(Stream sourceStream, FileStream outputStream) {
private static readonly string DirTemplate = "_acb_{0}";

}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<ProjectGuid>{87D41A40-A33F-499F-8635-22C6D99475A6}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DereTore.Applications.Hca2Wav</RootNamespace>
<AssemblyName>HCA2WAV</AssemblyName>
<RootNamespace>DereTore.Apps.Hca2Wav</RootNamespace>
<AssemblyName>hca2wav</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down Expand Up @@ -52,7 +52,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="CommandLine, Version=1.9.71.2, Culture=neutral, PublicKeyToken=de6f01bd326f8c32, processorArchitecture=MSIL">
<HintPath>..\packages\CommandLineParser.1.9.71\lib\net40\CommandLine.dll</HintPath>
<HintPath>..\..\packages\CommandLineParser.1.9.71\lib\net40\CommandLine.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
Expand All @@ -68,13 +68,13 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DereTore.HCA\DereTore.HCA.csproj">
<ProjectReference Include="..\..\Exchange\DereTore.Exchange.Audio.HCA\DereTore.Exchange.Audio.HCA.csproj">
<Project>{7c6fadd7-a0bb-4bf3-8992-3d89ace1cc69}</Project>
<Name>DereTore.HCA</Name>
<Name>DereTore.Exchange.Audio.HCA</Name>
</ProjectReference>
<ProjectReference Include="..\DereTore.StarlightStage\DereTore.StarlightStage.csproj">
<ProjectReference Include="..\..\Common\DereTore.Common.StarlightStage\DereTore.Common.StarlightStage.csproj">
<Project>{abd7f1b5-c4e3-4200-8e44-98b183dfee2c}</Project>
<Name>DereTore.StarlightStage</Name>
<Name>DereTore.Common.StarlightStage</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using CommandLine;
using DereTore.HCA;
using DereTore.StarlightStage;
using DereTore.Common.StarlightStage;
using DereTore.Exchange.Audio.HCA;

namespace DereTore.Applications.Hca2Wav {
namespace DereTore.Apps.Hca2Wav {
public sealed class Options {

[Option('i', "in", Required = true)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using System.Globalization;
using System.IO;
using DereTore.HCA;
using DereTore.StarlightStage;
using DereTore.Common.StarlightStage;
using DereTore.Exchange.Audio.HCA;

namespace DereTore.Applications.Hca2Wav {
namespace DereTore.Apps.Hca2Wav {
internal static class Program {

private static int Main(string[] args) {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ProjectGuid>{22DA9276-BAE2-4328-9B74-522D5333E09C}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DereTore.Applications.CipherConverter</RootNamespace>
<RootNamespace>DereTore.Apps.Hcacc</RootNamespace>
<AssemblyName>hcacc</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
Expand Down Expand Up @@ -57,9 +57,9 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DereTore.HCA\DereTore.HCA.csproj">
<ProjectReference Include="..\..\Exchange\DereTore.Exchange.Audio.HCA\DereTore.Exchange.Audio.HCA.csproj">
<Project>{7c6fadd7-a0bb-4bf3-8992-3d89ace1cc69}</Project>
<Name>DereTore.HCA</Name>
<Name>DereTore.Exchange.Audio.HCA</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Globalization;
using System.IO;
using DereTore.HCA;
using DereTore.Exchange.Audio.HCA;

namespace DereTore.Applications.CipherConverter {
namespace DereTore.Apps.Hcacc {
internal static class Program {

private static int Main(string[] args) {
Expand Down Expand Up @@ -58,7 +58,7 @@ private static int Main(string[] args) {
try {
using (var inputStream = new FileStream(inputFileName, FileMode.Open, FileAccess.Read)) {
using (var outputStream = new FileStream(outputFileName, FileMode.Create, FileAccess.Write)) {
var converter = new HCA.CipherConverter(inputStream, outputStream, ccFrom, ccTo);
var converter = new Exchange.Audio.HCA.CipherConverter(inputStream, outputStream, ccFrom, ccTo);
converter.Convert();
}
}
Expand Down
File renamed without changes.
File renamed without changes.
70 changes: 70 additions & 0 deletions Apps/Hcaenc/DereTore.Apps.Hcaenc.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{5B8FCABB-7663-4047-997C-BD14C06EF301}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DereTore.Apps.Hcaenc</RootNamespace>
<AssemblyName>hcaenc</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Core" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
using System;
using System.Runtime.InteropServices;

namespace DereTore.Applications.Encoder {
namespace DereTore.Apps.Hcaenc {
internal static class Program {

private static int Main(string[] args) {
if (Environment.Is64BitProcess) {
Console.WriteLine(UnsupportedBuildMessage);
return -2;
}
if (args.Length != 2) {
Console.WriteLine(HelpMessage);
return -1;
Expand All @@ -18,6 +22,7 @@ private static int Main(string[] args) {
private static extern int hcaencEncodeToFile([MarshalAs(UnmanagedType.LPStr)] string lpstrInputFile, [MarshalAs(UnmanagedType.LPStr)] string lpstrOutputFile, int nQuality, int nCutoff, ulong ullKey);

private static readonly string HelpMessage = "Usage: hcaenc.exe <input WAVE> <output HCA>";
private static readonly string UnsupportedBuildMessage = "hcaenc only has 32-bit version due to the limits of hcaenc_lite.dll.";

}
}
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 49c7172

Please sign in to comment.