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

External API V3 #267

Open
10 of 19 tasks
Yaya-Cout opened this issue Aug 17, 2022 · 8 comments
Open
10 of 19 tasks

External API V3 #267

Yaya-Cout opened this issue Aug 17, 2022 · 8 comments
Assignees
Labels
enhancement New feature or request hard It may take some time to do it

Comments

@Yaya-Cout
Copy link
Member

Yaya-Cout commented Aug 17, 2022

A new version of the External API that adds functions would be a great enhancement ! Here is a list of things to implement (just reply to this issue to request others features) :

  • Set and get brightness API calls
  • Get battery level, voltage, percentage and charging status
  • Get time
  • Random to get a True random number from Ion::random()
  • Reload title bar (actually, we have to enable/disable alpha lock to do that)
  • Get username
  • Get OS version and commit
  • Get free, used and total file system usage
  • Get settings (angle measure, result format, significant figures, complex format and font size)
  • Basic arguments support
  • External app's output
  • Dynamic arguments (use executeFileAtIndex())
  • os.system()
  • KhiCAS in calculation app ?
  • Compatibility with API V2 (if not too hard to maintain)
  • Rewrite of the build system (make something like Upsilon or Epsilon's external app's one)
  • Use namespaces
  • Others things (demand on this issue)
  • Test extapp_username() without username (should return a char of 16 \0)

Pulls requests :

@Yaya-Cout Yaya-Cout added enhancement New feature or request hard It may take some time to do it labels Aug 17, 2022
@Yaya-Cout Yaya-Cout self-assigned this Aug 17, 2022
@hugo-b-r
Copy link

hugo-b-r commented Aug 17, 2022

  • A way to come back to home menu whithout exiting app (like nofrendo does)

@hugo-b-r
Copy link

If using namespaces, c copatibility would be broken, no ?

@Yaya-Cout
Copy link
Member Author

If we maintain both separately, it would be possible, with a extapp_api_cpp.h that call legacy API…

@Yaya-Cout
Copy link
Member Author

A way to come back to home menu whithout exiting app (like nofrendo does)

What do you mean ?

@hugo-b-r
Copy link

hugo-b-r commented Aug 17, 2022

A way to come back to home menu whithout exiting app (like nofrendo does)

What do you mean ?

In nofrendo, we can leave some games go in calculator app for example, go again in nofrendo and score will be saved. I didn't find any simple way to do this and it would be a cool feature.

@Yaya-Cout
Copy link
Member Author

In nofrendo, the internal state of the emulator is saved in a file, internal apps are also like it, because they use the same buffer to allocate them variables, so I don't think that it's possible…

@BloomyInDev
Copy link

Does that is still in dev or it is in pause ?

@Yaya-Cout
Copy link
Member Author

The application output is quite hard to implement (we need to allocate a buffer from the caller, then the external app write into it without buffer overflow, so we need to tell the length of the buffer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hard It may take some time to do it
Projects
None yet
Development

No branches or pull requests

3 participants