mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-25 13:36:21 +03:00
Added --customLaunchArgs options (#40)
* Added --customLaunchArgs options - #39 * Fixed Typo Co-authored-by: Pierce <spammermuch@gmail.com>
This commit is contained in:
parent
c35332a8e5
commit
1c6cc01682
2 changed files with 3 additions and 2 deletions
|
@ -66,7 +66,8 @@ launcher.on('data', (e) => console.log(e));
|
||||||
| `options.installer` | String | Path to installer being executed. | False |
|
| `options.installer` | String | Path to installer being executed. | False |
|
||||||
| `options.root` | String | Path where you want the launcher to work in. like `C:/Users/user/AppData/Roaming/.mc`, | True |
|
| `options.root` | String | Path where you want the launcher to work in. like `C:/Users/user/AppData/Roaming/.mc`, | True |
|
||||||
| `options.os` | String | windows, osx or linux. MCLC will auto determine the OS if this field isn't provided. | False |
|
| `options.os` | String | windows, osx or linux. MCLC will auto determine the OS if this field isn't provided. | False |
|
||||||
| `options.customArgs` | Array | Array of custom java arguments you want to add. | False |
|
| `options.customLaunchArgs`| Array | Array of custom Minecraft arguments you want to add. | False |
|
||||||
|
| `options.customArgs` | Array | Array of custom Java arguments you want to add. | False |
|
||||||
| `options.version.number` | String | Minecraft version that is going to be launched. | True |
|
| `options.version.number` | String | Minecraft version that is going to be launched. | True |
|
||||||
| `options.version.type` | String | Any string. The actual Minecraft launcher uses `release` and `snapshot`. | True |
|
| `options.version.type` | String | Any string. The actual Minecraft launcher uses `release` and `snapshot`. | True |
|
||||||
| `options.version.custom` | String | The name of the folder, jar file, and version json in the version folder. | False |
|
| `options.version.custom` | String | The name of the folder, jar file, and version json in the version folder. | False |
|
||||||
|
|
|
@ -514,7 +514,7 @@ class Handler {
|
||||||
'--proxyPass',
|
'--proxyPass',
|
||||||
this.options.proxy.password
|
this.options.proxy.password
|
||||||
);
|
);
|
||||||
|
if(this.options.customLaunchArgs) args.concat(this.options.customArgs)
|
||||||
this.client.emit('debug', '[MCLC]: Set launch options');
|
this.client.emit('debug', '[MCLC]: Set launch options');
|
||||||
resolve(args);
|
resolve(args);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue