Fix resource URI for Android.
This commit is contained in:
@@ -117,7 +117,7 @@ namespace Cryville.Crtr.Browsing {
|
||||
using (var reader = new StreamReader(metaFile.FullName)) {
|
||||
meta = JsonConvert.DeserializeObject<ChartMeta>(reader.ReadToEnd());
|
||||
}
|
||||
return new Uri(Path.Combine(_items[id].Name, string.Format("{0}.json", meta.data)));
|
||||
return new Uri(PlatformConfig.FileProtocolPrefix + Path.Combine(_items[id].FullName, string.Format("{0}.json", meta.data)));
|
||||
}
|
||||
|
||||
public bool ImportItemFrom(Uri uri) {
|
||||
|
@@ -399,9 +399,7 @@ namespace Cryville.Crtr {
|
||||
screenSize = new Vector2(Screen.width, Screen.height);
|
||||
frustumPlanes = GeometryUtility.CalculateFrustumPlanes(Camera.main);
|
||||
|
||||
FileInfo chartFile = new FileInfo(
|
||||
Game.GameDataPath + "/charts/" + Settings.Default.LoadChart
|
||||
);
|
||||
FileInfo chartFile = new FileInfo(Settings.Default.LoadChart);
|
||||
|
||||
FileInfo rulesetFile = new FileInfo(
|
||||
Game.GameDataPath + "/rulesets/" + Settings.Default.LoadRuleset
|
||||
|
Reference in New Issue
Block a user