Skip to content

Commit

Permalink
1.0 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanilor committed Oct 18, 2018
1 parent b52d5ba commit e33cf6b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>Progress Renderer</name>
<author>Lanilor</author>
<url>https://github.com/Lanilor/Progress-Renderer</url>
<targetVersion>0.19.0</targetVersion>
<targetVersion>1.0.0</targetVersion>
<description>
&lt;size=20&gt;Progress Renderer (scheduled map renderings)&lt;/size&gt;

Expand Down
Binary file modified Assemblies/ProgressRenderer.dll
Binary file not shown.
Binary file added Progress Renderer 1.0.0.zip
Binary file not shown.
17 changes: 10 additions & 7 deletions Source/MapComponents/MapComponent_RenderManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ public override void MapComponentTick()
{
return;
}
// Update timing variables
lastRenderedHour = currHour;
lastRenderedCounter++;
// Check if rendering is enabled
if (!PRModSettings.enabled)
{
return;
}
// Show message window or print message
if (PRModSettings.renderFeedback == RenderFeedback.Window && PRModSettings.encoding != "jpg_fluxthreaded")
{
Expand All @@ -112,12 +120,7 @@ public override void MapComponentTick()
Messages.Message("LPR_Rendering".Translate(), MessageTypeDefOf.CautionInput, false);
}
// Start rendering
lastRenderedHour = currHour;
lastRenderedCounter++;
if (PRModSettings.enabled)
{
Find.CameraDriver.StartCoroutine(DoRendering());
}
Find.CameraDriver.StartCoroutine(DoRendering());
}

public override void ExposeData()
Expand Down Expand Up @@ -467,8 +470,8 @@ private string CreateFilePath(FileNamePattern fileNamePattern, bool addTmpSubdir
if (PRModSettings.createSubdirs)
{
path = Path.Combine(path, Find.World.info.seedString);
Directory.CreateDirectory(path);
}
Directory.CreateDirectory(path);
// Create additional subdir for numbered symlinks
if (addTmpSubdir)
{
Expand Down

0 comments on commit e33cf6b

Please sign in to comment.