Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Initial commit
  • Loading branch information
lottehime committed Oct 20, 2023
1 parent 7894586 commit 9a92123
Show file tree
Hide file tree
Showing 14 changed files with 82 additions and 0 deletions.
Binary file added script.steambp.launch.zip
Binary file not shown.
1 change: 1 addition & 0 deletions script.steambp.launch/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Dummy file to make this directory a package.
28 changes: 28 additions & 0 deletions script.steambp.launch/addon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.steambp.launch" name="Steam" version="1.0.0" provider-name="LotteHime">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
</requires>
<extension point="xbmc.python.script" library="default.py">
<provides>game</provides>
</extension>
<extension point="xbmc.addon.metadata">
<summary lang="en">Launch Steam in Big Picture Mode and manage Kodi close and re-open.</summary>
<description lang="en">Launches Steam in Big Picture Mode from within Kodi, closes Kodi and when Steam is exited, returns to Kodi.</description>
<platform>windx</platform>
<language>en</language>
<license></license>
<forum></forum>
<website></website>
<source>https://github.com/lottehime</source>
<email></email>
<donate></donate>
<assets>
<icon>icon.png</icon>
<fanart>fanart.jpg</fanart>
<screenshot>resources/screenshot-01.jpg</screenshot>
<banner>resources/banner.jpg</banner>
<logo>resources/logo.png</logo>
</assets>
</extension>
</addon>
3 changes: 3 additions & 0 deletions script.steambp.launch/changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1.0.0

First version
3 changes: 3 additions & 0 deletions script.steambp.launch/default.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from __future__ import unicode_literals
import resources.main
resources.main
Binary file added script.steambp.launch/fanart.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added script.steambp.launch/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions script.steambp.launch/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Dummy file to make this directory a package.
Binary file added script.steambp.launch/resources/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Kodi Media Center language file
msgid ""
msgstr ""
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgctxt "#32001"
msgid "Login Settings"
msgstr "Login Settings"

msgctxt "#32011"
msgid "Install Dir"
msgstr "Install Dir"
Binary file added script.steambp.launch/resources/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions script.steambp.launch/resources/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import os
import sys
import subprocess
import time
import shutil
import stat
import xbmc
import xbmcaddon
import xbmcplugin
import xbmcgui
import xbmcvfs

osWin = xbmc.getCondVisibility('system.platform.windows')

installdir = xbmcaddon.Addon().getSetting("installdir")

url = 'steam://open/bigpicture'

if osWin:
# ___ Open the url with the default web browser
#xbmc.executebuiltin("System.Exec(cmd.exe /c start "+url+")")
xbmc.executebuiltin('System.Exec(cmd.exe /c title "Managing Steam and Kodi..." && taskkill /im kodi.exe && start /w '+url+' && start "" "'+installdir+'")')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions script.steambp.launch/resources/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<category label="32001">
<setting label="32011" type="text" id="installdir" default="C:\\Program Files\\Kodi\\kodi.exe"/>
</category>
</settings>

0 comments on commit 9a92123

Please sign in to comment.