mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-31 01:42:02 +00:00
Small fixes to CM and the autorun task
This commit is contained in:
parent
013041a0c0
commit
bce85a8e7a
@ -807,7 +807,7 @@
|
|||||||
<Content Include="lib\AssettoCorsaSharedMemory.dll" />
|
<Content Include="lib\AssettoCorsaSharedMemory.dll" />
|
||||||
<Content Include="lib\Ets2SdkClient.dll" />
|
<Content Include="lib\Ets2SdkClient.dll" />
|
||||||
<Content Include="lib\SDKDLL.dll">
|
<Content Include="lib\SDKDLL.dll">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="LogitechLedEnginesWrapper.dll">
|
<Content Include="LogitechLedEnginesWrapper.dll">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
|||||||
Binary file not shown.
@ -116,8 +116,9 @@ namespace Artemis.Settings
|
|||||||
{
|
{
|
||||||
// Overwrite any existing tasks in case the installation folder changed
|
// Overwrite any existing tasks in case the installation folder changed
|
||||||
var path = Path.GetTempFileName();
|
var path = Path.GetTempFileName();
|
||||||
|
var artemisPath = AppDomain.CurrentDomain.BaseDirectory.Substring(0, AppDomain.CurrentDomain.BaseDirectory.Length - 1);
|
||||||
var xml = Resources.Artemis_autorun
|
var xml = Resources.Artemis_autorun
|
||||||
.Replace("{{executablePath}}", AppDomain.CurrentDomain.BaseDirectory + "Artemis.exe")
|
.Replace("{{artemisPath}}", AppDomain.CurrentDomain.BaseDirectory)
|
||||||
.Replace("{{author}}", System.Security.Principal.WindowsIdentity.GetCurrent().Name);
|
.Replace("{{author}}", System.Security.Principal.WindowsIdentity.GetCurrent().Name);
|
||||||
File.WriteAllText(path, xml);
|
File.WriteAllText(path, xml);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user