Windows rcon fix

This commit is contained in:
zontreck 2024-11-25 00:20:29 -07:00
parent a425128ac2
commit a762e3d4c0
3 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,3 @@
class Consts { class Consts {
static const VERSION = "1.1.112424.2344"; static const VERSION = "1.1.112524.0020";
} }

View file

@ -305,8 +305,10 @@ class Settings {
} }
Future<bool> sendRconCommand(String command) async { Future<bool> sendRconCommand(String command) async {
bool wine = await requiresWine();
try { try {
Process.run("/app/rcon", [ Process.run(wine ? "/app/rcon" : "C:\\rcon.exe", [
"-H", "-H",
"127.0.0.1", "127.0.0.1",
"-p", "-p",

View file

@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 1.1.112424+2344 version: 1.1.112524+0020
environment: environment:
sdk: ">=3.1.4 <4.0.0" sdk: ">=3.1.4 <4.0.0"