1
0
mirror of synced 2025-02-17 11:08:33 +01:00

Generate randomly and read unique id files for each songs

This commit is contained in:
0aubsq 2022-03-02 10:14:56 +01:00
parent 7a37f669ff
commit 61f06f009d
5 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View File

@ -17,6 +17,7 @@
/Test/dll/SlimDX.*
/Test/dll/FDK.dll
/Test/NamePlate.json
/Test/Favorite.json
/Test/SongsIgnored/*
/Test/xadec.dll
/Test/SoundDecoder.dll

View File

@ -1186,6 +1186,7 @@ namespace TJAPlayer3
public STDGBVALUE<int> LEVEL;
public bool bLyrics;
public int[] LEVELtaiko = new int[(int)Difficulty.Total] { -1, -1, -1, -1, -1, -1, -1 };
public CSongUniqueID uniqueID;
// Tower lifes
public int LIFE;
@ -1457,7 +1458,9 @@ namespace TJAPlayer3
Dan_C = new Dan_C[CExamInfo.cMaxExam];
pDan_LastChip = new CChip[1];
DanSongs.Number = 0;
}
/*
public CDTX(string str全入力文字列, int difficulty)
: this()
{
@ -1476,18 +1479,21 @@ namespace TJAPlayer3
this.On活性化();
this.t入力_全入力文字列から(str全入力文字列, str全入力文字列, db再生速度, nBGMAdjust, difficulty);
}
*/
public CDTX(string strファイル名, bool bヘッダのみ, double db再生速度, int nBGMAdjust, int difficulty)
: this()
{
this.On活性化();
this.t入力(strファイル名, bヘッダのみ, db再生速度, nBGMAdjust, 0, 0, false, difficulty);
}
/*
public CDTX(string strファイル名, bool bヘッダのみ, double db再生速度, int nBGMAdjust, int nReadVersion, int difficulty)
: this()
{
this.On活性化();
this.t入力(strファイル名, bヘッダのみ, db再生速度, nBGMAdjust, nReadVersion, 0, false, difficulty);
}
*/
public CDTX(string strファイル名, bool bヘッダのみ, double db再生速度, int nBGMAdjust, int nReadVersion, int nPlayerSide, bool bSession, int difficulty)
: this()
{
@ -1949,6 +1955,10 @@ namespace TJAPlayer3
this.strファイル名の絶対パス = Path.GetFullPath(strファイル名);
this.strファイル名 = Path.GetFileName(this.strファイル名の絶対パス);
this.strフォルダ名 = Path.GetDirectoryName(this.strファイル名の絶対パス) + @"\";
// Unique ID parsing/generation
this.uniqueID = new CSongUniqueID(this.strフォルダ名 + @"\uniqueID.json");
//if ( this.e種別 != E種別.SMF )
{
try

View File

@ -141,7 +141,9 @@ namespace TJAPlayer3
}
#region[ ]
CDTX dtx = new CDTX( fileinfo.FullName, false, 1.0, 0, 1 );
C曲リストード c曲リストード = new C曲リストード();
c曲リストード.eード種別 = C曲リストード.Eード種別.SCORE;

View File

@ -60,6 +60,7 @@ namespace TJAPlayer3
string strDTXファイルパス = TJAPlayer3.strコンパクトモードファイル;
CDTX cdtx = new CDTX( strDTXファイルパス, true, 1.0, 0, 0 );
if( File.Exists( cdtx.strフォルダ名 + @"set.def" ) )
cdtx = new CDTX( strDTXファイルパス, true, 1.0, 0, 1 );

View File

@ -120,6 +120,7 @@
<Compile Include="Animations\FadeOut.cs" />
<Compile Include="Animations\IAnimatable.cs" />
<Compile Include="Animations\Linear.cs" />
<Compile Include="Common\CCrypto.cs" />
<Compile Include="Common\Favorites.cs" />
<Compile Include="Common\ConfigManager.cs" />
<Compile Include="Common\Discord.cs" />
@ -174,6 +175,7 @@
<Compile Include="Songs\CDTX.cs" />
<Compile Include="Songs\CDTXCompanionFileFinder.cs" />
<Compile Include="Songs\CDTXStyleExtractor.cs" />
<Compile Include="Songs\CSongUniqueID.cs" />
<Compile Include="Songs\CScoreIni.cs" />
<Compile Include="Songs\CStrジャンルtoNum.cs" />
<Compile Include="Songs\C曲リストードComparers\ComparerChain.cs" />