![]() %localappdata%\GOG.com\Galaxy\plugins\installed Beside all the Python files, the integration folder must contain manifest.json and all third-party dependencies. In order to be found by GOG Galaxy 2.0 an integration folder should be placed in lookup directory. The client has a built-in Python 3.7 interpreter, so integrations are delivered as Python modules. # run plugin event loop if _name_ = "_main_": SinglePurchase))Ĭreate_and_run_plugin( PluginExample, sys. Game( 'test', 'The Test', None, LicenseInfo( LicenseType. # required async def get_owned_games( self): Return Authentication( 'test_user_id', 'Test User Name') ![]() # implement methods # required async def authenticate( self, stored_credentials = None): Test, # choose platform from available list "0.1", # version reader, types import Authentication, Game, LicenseInfo, LicenseType class PluginExample( Plugin):ĭef _init_( self, reader, writer, token): plugin import Plugin, create_and_run_plugin from galaxy. Supported methods like :meth: ~.get_owned_games should be overwritten - they are called from the GOG Galaxy client at the appropriate times.Įach of those methods can raise exceptions inherited from the :exc: ~.Ĭommunication between an integration and the client is also possible with the use of notifications, for example: :meth: ~.update_local_game_status. List of possible Platform IDs Basic usageĮach integration should inherit from the :class: ~ class. Each integration must declare which platform it's integrating. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |