mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
Merge branch 'master' into feature/AnonymousTypeTests
This commit is contained in:
commit
f7ce3dc111
8 changed files with 41 additions and 18 deletions
|
|
@ -15,6 +15,10 @@
|
|||
#define VSVersion "vs2019"
|
||||
#endif
|
||||
|
||||
#ifndef RealPath
|
||||
#define RealPath {userappdata}
|
||||
#endif
|
||||
|
||||
#if BuildConfiguration == "DevKit"
|
||||
; devkit releases are not compressed
|
||||
#pragma warning "Building Dev Kit release"
|
||||
|
|
@ -36,7 +40,8 @@ AppSupportURL=http://www.goCosmos.org/
|
|||
AppUpdatesURL=http://www.goCosmos.org/
|
||||
AppVersion={#ChangeSetVersion}
|
||||
SetupMutex=CosmosSetupMutexName,Global\CosmoSetupMutexName
|
||||
DefaultDirName={userappdata}\Cosmos User Kit
|
||||
UsePreviousAppDir=false
|
||||
DefaultDirName={#RealPath}\Cosmos User Kit
|
||||
DefaultGroupName=Cosmos User Kit
|
||||
OutputDir=.\Setup\Output
|
||||
OutputBaseFilename=CosmosUserKit-{#ChangeSetVersion}-{#VSVersion}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -29,7 +29,8 @@ namespace Cosmos.Build.Builder.BuildTasks
|
|||
_defines = new Dictionary<string, string>()
|
||||
{
|
||||
["BuildConfiguration"] = configuration,
|
||||
["ChangeSetVersion"] = releaseVersion
|
||||
["ChangeSetVersion"] = releaseVersion,
|
||||
["RealPath"] = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -162,18 +162,6 @@ namespace Cosmos.Build.Builder
|
|||
{
|
||||
xKey.SetValue("DevKit", _cosmosDir);
|
||||
}
|
||||
|
||||
// Launch VS
|
||||
|
||||
if (!App.BuilderConfiguration.NoVsLaunch)
|
||||
{
|
||||
var vsInstance = _visualStudioInstance;
|
||||
var vsPath = Path.Combine(vsInstance.GetInstallationPath(), "Common7", "IDE", "devenv.exe");
|
||||
|
||||
var kernelSlnPath = Path.Combine(_cosmosDir, "Kernel.sln");
|
||||
|
||||
yield return new StartProcessTask(vsPath, kernelSlnPath, "Visual Studio (Kernel.sln)");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@ namespace Cosmos.Core
|
|||
|
||||
if (!(rs == ""))
|
||||
{
|
||||
return rs;
|
||||
return rs.Trim();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,5 +10,9 @@ namespace Cosmos.Core_Plugs.System.Threading
|
|||
{
|
||||
return aData -= 1;
|
||||
}
|
||||
public static int Increment(ref int aData)
|
||||
{
|
||||
return aData += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -164,6 +164,27 @@ namespace Cosmos.HAL
|
|||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get device.
|
||||
/// </summary>
|
||||
/// <param name="bus">Bus ID.</param>
|
||||
/// <param name="slot">Slot position ID.</param>
|
||||
/// <param name="function">Function ID.</param>
|
||||
/// <returns></returns>
|
||||
public static PCIDevice GetDevice(uint bus, uint slot, uint function)
|
||||
{
|
||||
foreach (var xDevice in Devices)
|
||||
{
|
||||
if (xDevice.bus == bus &&
|
||||
xDevice.slot == slot &&
|
||||
xDevice.function == function)
|
||||
{
|
||||
return xDevice;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static PCIDevice GetDeviceClass(ClassID Class, SubclassID SubClass)
|
||||
{
|
||||
foreach (var xDevice in Devices)
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ namespace Cosmos.System.Graphics
|
|||
//now reading size of BITMAPINFOHEADER should be 40 - bytes 14 -> 18
|
||||
stream.Read(_int, 0, 4);
|
||||
uint infoHeaderSize = BitConverter.ToUInt32(_int, 0);
|
||||
if (infoHeaderSize != 40 && infoHeaderSize != 56) // 56 - is BITMAPV3INFOHEADER, where we ignore the additional values see https://web.archive.org/web/20150127132443/https://forums.adobe.com/message/3272950
|
||||
if (infoHeaderSize != 40 && infoHeaderSize != 56 && infoHeaderSize != 124) // 124 - is BITMAPV5INFOHEADER, 56 - is BITMAPV3INFOHEADER, where we ignore the additional values see https://web.archive.org/web/20150127132443/https://forums.adobe.com/message/3272950
|
||||
{
|
||||
throw new Exception("Info header size has the wrong value!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue