platform update

This commit is contained in:
Perfare 2018-03-05 06:02:19 +08:00
parent 62206f8977
commit a062905734
2 changed files with 37 additions and 48 deletions

View File

@ -220,54 +220,7 @@ namespace Unity_Studio
assetsFileReader.endian = EndianType.LittleEndian;
}
switch (platform)
{
case -2:
platformStr = "Unity Package";
break;
case 4:
platformStr = "OSX";
break;
case 5:
platformStr = "PC";
break;
case 6:
platformStr = "Web";
break;
case 7:
platformStr = "Web streamed";
break;
case 9:
platformStr = "iOS";
break;
case 10:
platformStr = "PS3";
break;
case 11:
platformStr = "Xbox 360";
break;
case 13:
platformStr = "Android";
break;
case 16:
platformStr = "Google NaCl";
break;
case 19:
platformStr = "CollabPreview";
break;
case 21:
platformStr = "WP8";
break;
case 25:
platformStr = "Linux";
break;
case 29:
platformStr = "Wii U";
break;
default:
platformStr = "Unknown Platform";
break;
}
platformStr = Enum.TryParse(platform.ToString(), out BuildTarget buildTarget) ? buildTarget.ToString() : "Unknown Platform";
int baseCount = assetsFileReader.ReadInt32();
for (int i = 0; i < baseCount; i++)

View File

@ -96,4 +96,40 @@ namespace Unity_Studio
GCADPCM,
ATRAC9
}
public enum BuildTarget
{
StandaloneOSX = 2,
StandaloneOSXIntel = 4,
StandaloneWindows,
WebPlayer,
WebPlayerStreamed,
iOS = 9,
PS3,
XBOX360,
Android = 13,
StandaloneLinux = 17,
StandaloneWindows64 = 19,
WebGL,
WSAPlayer,
StandaloneLinux64 = 24,
StandaloneLinuxUniversal,
WP8Player,
StandaloneOSXIntel64,
BlackBerry,
Tizen,
PSP2,
PS4,
PSM,
XboxOne,
SamsungTV,
N3DS,
WiiU,
tvOS,
Switch,
iPhone = -1,
BB10 = -1,
MetroPlayer = -1,
NoTarget = -2
}
}