Some comments.

This commit is contained in:
Adam Murdoch
2012-12-01 16:01:30 +11:00
parent f811c16ae5
commit c355d50bb9
2 changed files with 4 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package net.rubygrapefruit.platform.internal;
import net.rubygrapefruit.platform.SystemInfo;
public class MutableSystemInfo implements SystemInfo {
// Fields set from native code
public String osName;
public String osVersion;
public String machineArchitecture;
@@ -19,6 +20,7 @@ public class MutableSystemInfo implements SystemInfo {
return machineArchitecture;
}
// Called from native code
void windows(int major, int minor, int build, boolean workstation, String arch) {
osName = toWindowsVersionName(major, minor, workstation);
osVersion = String.format("%s.%s (build %s)", major, minor, build);