◆ CheckAndDownloadLicense()
static void ailia.AiliaLicense.CheckAndDownloadLicense |
( |
| ) |
|
|
inlinestatic |
98 if (Marshal.PtrToStringAnsi(Ailia.ailiaGetVersion()).Contains(
"perpetual_license")){
102 string userData =
"";
103 #if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
104 string currentDirectory = Environment.CurrentDirectory;
105 string licFolder = currentDirectory;
107 #if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
108 string homePath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
109 string licFolder = Path.Combine(homePath,
"Library/SHALO/");
111 #if UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
112 string homePath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
113 string licFolder = Path.Combine(homePath,
".shalo/");
119 #if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX || UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
120 string licFile = Path.Combine(licFolder,
"AILIA.lic");
122 userData = CheckLicense(licFile);
123 if (userData ==
null)
125 Debug.Log(
"Downloading license file for ailia SDK.");
126 DirectoryInfo di = Directory.CreateDirectory(licFolder);
127 DownloadLicense(licFile);
128 userData = CheckLicense(licFile);
131 if (userData ==
null){
132 Debug.Log(
"Download license file failed.");
136 if (userData.Contains(
"trial version"))
The documentation for this class was generated from the following file: