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

[GSoC 2020] Python Game API #123

Open
wants to merge 46 commits into
base: feature_savestates
Choose a base branch
from

Conversation

NikosSiak
Copy link

@NikosSiak NikosSiak commented Oct 2, 2020

Description

This PR extends the Python API to support game metadata, like title, developer, publisher and captions (from #120 ).

Motivation and Context

How Has This Been Tested?

I have wrote a small addon that uses the API to update the discord rich presence status displaying what game you are playing and what you are doing in the game at this moment https://github.com/NikosSiak/service.games.discord.richpresence

image

Screenshots (if appropriate):

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Clean up (non-breaking change which removes non-working, unmaintained functionality)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that will cause existing functionality to change)
  • Cosmetic change (non-breaking change that doesn't touch code)
  • None of the above (please explain below)

Checklist:

  • My code follows the Code Guidelines of this project
  • My change requires a change to the documentation, either Doxygen or wiki
  • I have updated the documentation accordingly
  • I have read the Contributing document
  • I have added tests to cover my change
  • All new and existing tests passed

garbear and others added 25 commits October 24, 2021 07:25
Thanks to Zach Morris for providing this awesome add-on.
  * game.libretro
  * game.libretro.2048
  * game.libretro.mrboom
  * game.shader.presets
  * peripheral.joystick
  * vfs.libarchive
  * vfs.rar
…s a little and test addons

This is purely for test purposes and to ensure that the addons have been converted.

Posted as a temporary request in Kodi to be visible to everyone.
When the associated add-ons are through, this request is closed again.

Revert "Merge pull request 18403 from lrusak/c++17-revert"
Updates cmake to 3.20.3
Set buildsystem for xcode generated projects to use the legacy build system to stay inline
with existing behaviour. Cmake 3.19+ when used with xcode 12+ will try to default to the
"new" xcode build system
Build failure in mariadb-connector-c

 checking how to run the C preprocessor... CMake Error at cmake/ConnectorName.cmake:30 (ENDMACRO):
   Flow control statements are not properly nested.
 Call Stack (most recent call first):
   CMakeLists.txt:434 (INCLUDE)

This fix is already upstream in mariadb-connector-c 3.1.13. Patch can be dropped when we
bump to a newer version
Warning was:

    PeripheralJoystick.cpp(337): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
I changed this as the "new" build system didnt play nice, but i later added a commit to default to the legacy system with xcode 12 still.
Because of that, roll this back to the "default" working code for the Legacy build system.
…d script wrapper Macros

There is a variation in a cmake generated project for using ENV vars in a generated shell
script. Handle this for both the new/legacy xcode build systems
garbear and others added 6 commits November 4, 2021 07:17
…lers

Needed for Multitap support for Snes9x cores.
…:GameControllerLayout

The value "provides_input" within kodi::addon::GameControllerLayout was not set if class was contructed by default.
This sets it now to false as default.
This fixes an IDE error in Eclipse CDT by switching from `typedef`
to `using`.

Error was:

  Type 'ADDON::AddonInfoPtr' could not be resolved
@garbear garbear changed the title Python game api Python Game API Nov 5, 2021
@NikosSiak NikosSiak force-pushed the python-game-api branch 2 times, most recently from afa00ec to 05f0c1b Compare November 8, 2021 18:43
@garbear
Copy link
Owner

garbear commented Nov 9, 2021

I've created a test build and uploaded to https://github.com/garbear/xbmc/releases. I tested it out and everything looks good for me. Only issue was the login button in the settings taking a while to give user feedback during the network IO. Adding a spinner would be a good idea.

My only two comments left about the code are the unused variable and the copyright headers.

@NikosSiak NikosSiak force-pushed the python-game-api branch 3 times, most recently from 68a8565 to 31e1c01 Compare November 9, 2021 17:12
@garbear garbear force-pushed the feature_savestates branch 2 times, most recently from 7cac785 to 4bbc92f Compare January 22, 2022 18:39
@garbear garbear changed the title Python Game API [GSoC 2020] Python Game API May 10, 2024
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

Successfully merging this pull request may close these issues.

6 participants