File tree 6 files changed +8
-7
lines changed
6 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
+ using System . IO ;
3
4
using System . Xml . Serialization ;
4
5
using UnityEngine ;
5
6
@@ -86,7 +87,7 @@ public enum ExampleMode
86
87
void Awake ( )
87
88
{
88
89
SecondaryFolder =
89
- Application . dataPath + XmlStorageConsts . Separator + XmlStorageConsts . BackDirectory + XmlStorageConsts . Separator + "Saves2" + XmlStorageConsts . Separator ;
90
+ Directory . GetCurrentDirectory ( ) + XmlStorageConsts . Separator + "Saves2" + XmlStorageConsts . Separator ;
90
91
91
92
if ( this . set == null )
92
93
{
@@ -111,3 +112,4 @@ void Start()
111
112
}
112
113
}
113
114
}
115
+
Original file line number Diff line number Diff line change 1
- using System . IO ;
1
+ using System . Diagnostics ;
2
+ using System . IO ;
2
3
using System . Text ;
4
+ using UnityEngine ;
3
5
4
6
namespace XmlStorage . Systems . Utilities
5
7
{
Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ public static class XmlStorageConsts
18
18
public static readonly char Slash = '/' ;
19
19
/// <summary>ピリオド</summary>
20
20
public static readonly string Period = @"." ;
21
- /// <summary>パスにおいて、ディレクトリを一つ戻る</summary>
22
- public static readonly string BackDirectory = @".." ;
23
21
24
22
/// <summary>ファイルに保存する時のエンコード情報</summary>
25
23
public static readonly UTF8Encoding Encode = new UTF8Encoding ( false ) ;
@@ -37,8 +35,7 @@ public static readonly string DefaultSubDirectoryName
37
35
/// <summary>デフォルトの保存ディレクトリのフルパス</summary>
38
36
public static readonly string DefaultSaveDirectory
39
37
= FileUtils . AdjustAsDirectoryPath (
40
- Directory . GetCurrentDirectory ( ) + Separator + BackDirectory + Separator + DefaultSubDirectoryName
41
- //Application.dataPath + Separator + BackDirectory + Separator + DefaultSubDirectoryName
38
+ Directory . GetCurrentDirectory ( ) + Separator + DefaultSubDirectoryName
42
39
) ;
43
40
}
44
41
}
File renamed without changes.
Original file line number Diff line number Diff line change 1
- 7.1.0
1
+ 7.1.1
You can’t perform that action at this time.
0 commit comments