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

iOS failed to get platform type #9

Open
kotori2 opened this issue Mar 17, 2020 · 0 comments
Open

iOS failed to get platform type #9

kotori2 opened this issue Mar 17, 2020 · 0 comments

Comments

@kotori2
Copy link
Owner

kotori2 commented Mar 17, 2020

We should include "iOS" in ENG_getPlatform, but since header use pfif.getPlatform() as well, we might need change the platform api or check what official engine do.

function platform._init(this)
  if ENG_getPlatform():find("Win32") ~= nil then
  elseif ENG_getPlatform():find("iOS") ~= nil then
  else
  end
  this._platform_str, this._platform = ENG_getPlatform(), L1_1.ANDROID
  this._app_version = L2_2(is_function_type(ENG_getAppVersion) and ENG_getAppVersion() or "(none)")
  this._is_debug = not ENG_isRelease()
end
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

No branches or pull requests

1 participant