mirror of
https://github.com/wownero/cyberwow.git
synced 2026-11-21 23:54:09 +01:00
add more config
This commit is contained in:
@@ -28,6 +28,8 @@ final config = CryptoConfig
|
||||
'wownerod',
|
||||
'wownerod',
|
||||
'Follow the white rabbit.',
|
||||
Colors.green.withOpacity(1.0),
|
||||
Colors.black,
|
||||
70,
|
||||
Colors.green.withOpacity(1.0),
|
||||
Colors.black,
|
||||
[],
|
||||
);
|
||||
|
||||
@@ -25,14 +25,18 @@ class CryptoConfig {
|
||||
final String outputBin;
|
||||
final String appPath;
|
||||
final String splash;
|
||||
final int splashDelay;
|
||||
final Color textColor;
|
||||
final Color backgroundColor;
|
||||
final List<String> extraArgs;
|
||||
CryptoConfig
|
||||
(
|
||||
this.outputBin,
|
||||
this.appPath,
|
||||
this.splash,
|
||||
this.splashDelay,
|
||||
this.textColor,
|
||||
this.backgroundColor,
|
||||
this.extraArgs,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ Stream<String> runBinary (String name) async* {
|
||||
"--data-dir",
|
||||
binDir.path,
|
||||
"--non-interactive",
|
||||
] + extraArgs;
|
||||
] + extraArgs + config.extraArgs;
|
||||
|
||||
print('args: ' + args.toString());
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ class LoadingState extends HookedState {
|
||||
|
||||
for (String char in chars) {
|
||||
append(char);
|
||||
await Future.delayed(const Duration(milliseconds: 70), () => "1");
|
||||
await Future.delayed(Duration(milliseconds: config.splashDelay), () => "1");
|
||||
}
|
||||
|
||||
await Future.delayed(const Duration(seconds: 2), () => "1");
|
||||
|
||||
Reference in New Issue
Block a user