Skip to content

Commit

Permalink
Merge branch 'NetStandard' of https://github.com/vchelaru/FlatRedBall
Browse files Browse the repository at this point in the history
…into NetStandard
  • Loading branch information
vchelaru committed Apr 5, 2024
2 parents 62f521e + dd9348d commit 47db0ed
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
7 changes: 6 additions & 1 deletion FRBDK/Glue/Glue/CodeGeneration/PauseCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Text;
using FlatRedBall.Glue.SaveClasses;
using FlatRedBall.Glue.CodeGeneration.CodeBuilder;
using FlatRedBall.Glue.Elements;

namespace FlatRedBall.Glue.CodeGeneration
{
Expand Down Expand Up @@ -86,8 +87,12 @@ private static CodeBuilder.ICodeBlock GenerateSetToIgnorePausing(CodeBuilder.ICo
}


var ati = nos.GetAssetTypeInfo();

if (nos.GetAssetTypeInfo() != null && nos.GetAssetTypeInfo().CanIgnorePausing)
var canIgnorePausing = ati != null && ati.CanIgnorePausing &&
(ati.IsPositionedObject || nos.IsList || ati == AvailableAssetTypes.CommonAtis.ShapeCollection);

if (canIgnorePausing)
{
codeBlock.Line("FlatRedBall.Instructions.InstructionManager.IgnorePausingFor(" + nos.InstanceName + ");");
}
Expand Down
4 changes: 2 additions & 2 deletions FRBDK/Glue/Glue/VSHelpers/Projects/DesktopGlLinuxProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public override string ProcessInclude(string path)
{
var returnValue = base.ProcessInclude(path);

return returnValue.ToLowerInvariant();
return returnValue;
}

public override string ProcessLink(string path)
{
var returnValue = base.ProcessLink(path);
// Linux is case-sensitive
return returnValue.ToLowerInvariant();
return returnValue;
}
}
}
4 changes: 2 additions & 2 deletions FRBDK/Glue/Glue/VSHelpers/Projects/FnaDesktopProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ public override string ProcessInclude(string path)
{
var returnValue = base.ProcessInclude(path);

return returnValue.ToLowerInvariant();
return returnValue;
}

public override string ProcessLink(string path)
{
var returnValue = base.ProcessLink(path);
// Linux is case-sensitive
return returnValue.ToLowerInvariant();
return returnValue;
}

public override bool IsFrbSourceLinked()
Expand Down
4 changes: 2 additions & 2 deletions FRBDK/Glue/Glue/VSHelpers/Projects/IosMonogameProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ public override string ProcessInclude(string path)
{
var returnValue = base.ProcessInclude(path);

return returnValue.ToLowerInvariant();
return returnValue;
}

public override string ProcessLink(string path)
{
var returnValue = base.ProcessLink(path);
// iOS is case-sensitive
return returnValue.ToLowerInvariant();
return returnValue;
}
// Is this valid?
public override string NeededVisualStudioVersion => "10.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ public override string ProcessInclude(string path)
{
var returnValue = base.ProcessInclude(path);

return returnValue.ToLowerInvariant();
return returnValue;
}

public override string ProcessLink(string path)
{
var returnValue = base.ProcessLink(path);
// Linux is case-sensitive
return returnValue.ToLowerInvariant();
return returnValue;
}
}
}

0 comments on commit 47db0ed

Please sign in to comment.