-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added function to notify when games are played. Fixed an issue where …
…the steam apps folder was being ignored.
- Loading branch information
Showing
5 changed files
with
151 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/in/dragonbra/javasteam/steam/handlers/steamapps/AppProcessInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package `in`.dragonbra.javasteam.steam.handlers.steamapps | ||
|
||
data class AppProcessInfo( | ||
val processId: Int, | ||
val processIdParent: Int, | ||
val parentIsSteam: Boolean, | ||
) |
37 changes: 37 additions & 0 deletions
37
src/main/java/in/dragonbra/javasteam/steam/handlers/steamapps/GamePlayedInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package `in`.dragonbra.javasteam.steam.handlers.steamapps | ||
|
||
@Suppress("ArrayInDataClass") | ||
data class GamePlayedInfo( | ||
val steamIdGs: Long = 0, | ||
val gameId: Long, | ||
val deprecatedGameIpAddress: Int = 0, | ||
val gamePort: Int = 0, | ||
val isSecure: Boolean = false, | ||
val token: ByteArray = byteArrayOf(), | ||
val gameExtraInfo: String = "", | ||
val gameDataBlob: ByteArray? = null, | ||
val processId: Int, | ||
val streamingProviderId: Int = 0, | ||
val gameFlags: Int = 0, | ||
val ownerId: Int, | ||
val vrHmdVendor: String = "", | ||
val vrHmdModel: String = "", | ||
val launchOptionType: Int = 0, | ||
val primaryControllerType: Int = -1, | ||
val primarySteamControllerSerial: String = "", | ||
val totalSteamControllerCount: Int = 0, | ||
val totalNonSteamControllerCount: Int = 0, | ||
val controllerWorkshopFileId: Long = 0, | ||
val launchSource: Int = 0, | ||
val vrHmdRuntime: Int = 0, | ||
val gameIpAddress: ProtoIPAddress<*>? = null, | ||
val controllerConnectionType: Int = 0, | ||
val gameOsPlatform: Int = -1, | ||
val gameBuildId: Int, | ||
val compatToolId: Int = 0, | ||
val compatToolCmd: String = "", | ||
val compatToolBuildId: Int = 0, | ||
val betaName: String = "", | ||
val dlcContext: Int = 0, | ||
val processIdList: List<AppProcessInfo> = emptyList(), | ||
) |
20 changes: 20 additions & 0 deletions
20
src/main/java/in/dragonbra/javasteam/steam/handlers/steamapps/ProtoIPAddress.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package `in`.dragonbra.javasteam.steam.handlers.steamapps | ||
|
||
abstract class ProtoIPAddress<T> { | ||
abstract fun getValue(): T | ||
} | ||
data class ProtoIPv4( | ||
private val ip: Int | ||
) : ProtoIPAddress<Int>() { | ||
override fun getValue(): Int { | ||
return ip | ||
} | ||
} | ||
@Suppress("ArrayInDataClass") | ||
data class ProtoIPv6( | ||
private val ip: ByteArray | ||
) : ProtoIPAddress<ByteArray>() { | ||
override fun getValue(): ByteArray { | ||
return ip | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters