Skip to content

Commit

Permalink
changed the global root directory to be the same across PC and mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlucerne committed Jul 6, 2022
1 parent 9576fa9 commit e84a8b7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal class AndroidDataService : IUserDataService, IPersistentDataService, IT
{
/// <summary>Root directory for all data services.</summary>
public readonly static string GlobalRootDirectory =
$@"{System.IO.Directory.GetCurrentDirectory()}/mod.io";
$@"{Application.persistentDataPath}/mod.io";

#region Data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal class LinuxDataService : IUserDataService, IPersistentDataService, ITem
{
/// <summary>Root directory for all data services.</summary>
public readonly static string GlobalRootDirectory =
$@"{System.IO.Directory.GetCurrentDirectory()}/mod.io";
$@"{Application.persistentDataPath}/mod.io";

#region Data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal class OsxDataService : IUserDataService, IPersistentDataService, ITempD
{
/// <summary>Root directory for all data services.</summary>
public readonly static string GlobalRootDirectory =
$@"{System.IO.Directory.GetCurrentDirectory()}/mod.io";
$@"{Application.persistentDataPath}/mod.io";

#region Data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal class WindowsDataService : IUserDataService, IPersistentDataService, IT
{
/// <summary>Root directory for all data services.</summary>
public readonly static string GlobalRootDirectory =
$@"{System.IO.Directory.GetCurrentDirectory()}/mod.io";
$@"{Application.persistentDataPath}/mod.io";

#region Data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal class iOSDataService : IUserDataService, IPersistentDataService, ITempD
{
/// <summary>Root directory for all data services.</summary>
public readonly static string GlobalRootDirectory =
$@"{System.IO.Directory.GetCurrentDirectory()}/mod.io";
$@"{Application.persistentDataPath}/mod.io";

#region Data

Expand Down

0 comments on commit e84a8b7

Please sign in to comment.