enable steamcmd, fix steam mobile

This commit is contained in:
mittorn 2016-04-14 18:00:44 +06:00
parent 230c07cc98
commit bb58bdeec9
3 changed files with 3 additions and 6 deletions

View file

@ -23,8 +23,7 @@
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
</activity> </activity>
<!--
<activity android:name="in.celest.xash3d.SteamActivity" <activity android:name="in.celest.xash3d.SteamActivity"
android:label="Steam" android:label="Steam"
android:windowSoftInputMode="adjustResize" android:windowSoftInputMode="adjustResize"
@ -37,7 +36,6 @@
</intent-filter> </intent-filter>
</activity> </activity>
-->
<activity android:name="in.celest.xash3d.ShortcutActivity" <activity android:name="in.celest.xash3d.ShortcutActivity"
android:label="@string/text_shortcut" android:label="@string/text_shortcut"
@ -80,9 +78,7 @@
<data android:scheme="package" /> <data android:scheme="package" />
</intent-filter> </intent-filter>
</receiver> </receiver>
<!--
<service android:name="in.celest.xash3d.SteamService" /> <service android:name="in.celest.xash3d.SteamService" />
-->
</application> </application>
<!-- Some devices with Android 2.2 should support native activity, it was in unstable hidden API --> <!-- Some devices with Android 2.2 should support native activity, it was in unstable hidden API -->

View file

@ -480,6 +480,7 @@ public class SteamService extends Service
// called on every char in line until return true // called on every char in line until return true
private boolean processPartial( String str ) throws CancelException, IOException private boolean processPartial( String str ) throws CancelException, IOException
{ {
//printText(str);
{ {
if( str.contains( "Steam>" ) ) if( str.contains( "Steam>" ) )
{ {
@ -529,7 +530,7 @@ public class SteamService extends Service
processInput.write( (passwd + '\n').getBytes() ); processInput.write( (passwd + '\n').getBytes() );
return true; return true;
} }
if( str.startsWith("Steam Guard code:" )) if( str.startsWith("Steam Guard code:" )|| str.startsWith("Two-factor code:") )
{ {
String passwd = promptDialog("Steam Guard code", "Please enter your SteamGuard code", true); String passwd = promptDialog("Steam Guard code", "Please enter your SteamGuard code", true);
if( passwd == null ) if( passwd == null )