Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a better method to retrieve platform-specific information #1218

Merged
merged 2 commits into from Dec 1, 2017

Conversation

smoogipoo
Copy link
Contributor

✓ Cross platform (.NET Core compatible)
✓ No uname issues with debugging
✓ No more relying on magic constants defined by mono (6 is a recent addition for osx)

@smoogipoo
Copy link
Contributor Author

We can eventually retrieve mobile platforms using arm/arm64 architectures.

@peppy peppy merged commit d231ca9 into ppy:master Dec 1, 2017
IsMacOsx = true;
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
IsLinux = true;
IsUnix = IsMacOsx || IsUnix;

This comment was marked as off-topic.

This comment was marked as off-topic.

IsUnix = p == 4 || p == 6 || p == 128;
IsWindows = Path.DirectorySeparatorChar == '\\';
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
IsWindows = true;

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@smoogipoo smoogipoo deleted the better-runtimeinfo branch February 22, 2018 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants