mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-23 18:20:19 +03:00
Fix Comments and provide proper english
This commit is contained in:
parent
748b197984
commit
fe3cff78ad
6 changed files with 23 additions and 23 deletions
|
@ -92,7 +92,7 @@ export default abstract class Installer
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called after downloading will begin
|
||||
* Specify event that will be called after download has begun
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
@ -105,7 +105,7 @@ export default abstract class Installer
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called after unpacking will begin
|
||||
* Specify event that will be called after extraction has begun
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
@ -118,7 +118,7 @@ export default abstract class Installer
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called every [this.downloadProgressInterval] ms during downloading
|
||||
* Specify event that will be called every [this.downloadProgressInterval] ms while downloading
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
@ -128,7 +128,7 @@ export default abstract class Installer
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called every [this.unpackProgressInterval] ms during unpacking
|
||||
* Specify event that will be called every [this.unpackProgressInterval] ms while extracting
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
@ -138,7 +138,7 @@ export default abstract class Installer
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called after downloading will be finished
|
||||
* Specify event that will be called after download has finished
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
@ -151,7 +151,7 @@ export default abstract class Installer
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called after unpacking will be finished
|
||||
* Specify event that will be called after extraction has finished
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
|
|
@ -109,7 +109,7 @@ class Stream
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called when the unpacking will be started
|
||||
* Specify event that will be called when the extraction has started
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
@ -122,7 +122,7 @@ class Stream
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called every [this.progressInterval] ms during archive unpacking
|
||||
* Specify event that will be called every [this.progressInterval] ms while extracting the archive
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
@ -132,7 +132,7 @@ class Stream
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called after the archive will be unpacked
|
||||
* Specify event that will be called after the archive has been extracted
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
@ -145,7 +145,7 @@ class Stream
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called if archive can't be unpacked
|
||||
* Specify event that will be called if archive can't be extracted
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
|
|
@ -13,7 +13,7 @@ export default class Configs
|
|||
* Get config value
|
||||
*
|
||||
* @param name config name, e.g. "lang.launcher"
|
||||
* @returns undefined if config is not exists. Otherwise - config value
|
||||
* @returns undefined if config doesn't exist. Otherwise - config value
|
||||
*/
|
||||
public static get(name: string = ''): Promise<undefined|scalar|scalar[]>
|
||||
{
|
||||
|
@ -38,7 +38,7 @@ export default class Configs
|
|||
*
|
||||
* @param name config name, e.g. "lang.launcher"
|
||||
* @param value config value, e.g. "en-us"
|
||||
* @returns Promise<void> indicates when the settings was updated
|
||||
* @returns Promise<void> indicates if the settings were updated
|
||||
*/
|
||||
public static set(name: string, value: scalar|scalar[]): Promise<void>
|
||||
{
|
||||
|
@ -68,7 +68,7 @@ export default class Configs
|
|||
* Set default values
|
||||
*
|
||||
* @param configs object of default values
|
||||
* @returns Promise<void> indicates when the default settings was applied
|
||||
* @returns Promise<void> indicates if the default settings were applied
|
||||
*/
|
||||
public static defaults(configs: scalar): Promise<void>
|
||||
{
|
||||
|
@ -76,7 +76,7 @@ export default class Configs
|
|||
const setDefaults = async (current: scalar) => {
|
||||
const updateDefaults = (current: scalar, defaults: scalar) => {
|
||||
Object.keys(defaults).forEach((key) => {
|
||||
// If the field exists in defaults and don't exists in current
|
||||
// If the field exists in defaults and doesn't exist in current
|
||||
if (current[key] === undefined)
|
||||
current[key] = defaults[key];
|
||||
|
||||
|
|
|
@ -50,13 +50,13 @@ export default class DXVK
|
|||
* Download DXVK to the [Constants.paths.dxvks] directory
|
||||
*
|
||||
* @param dxvk DXVK object or version
|
||||
* @returns null if the DXVK with specified version is not exists. Otherwise - installation stream
|
||||
* @returns null if the DXVK with specified version dosen't exist. Otherwise - installation stream
|
||||
*/
|
||||
public static download(dxvk: TDXVK|TDXVK['version']): Promise<null|Stream>
|
||||
{
|
||||
return new Promise(async (resolve) => {
|
||||
// If we provided dxvk property as a version of the DXVK
|
||||
// then we should find this DXVK and call this method from it
|
||||
// If we provided dxvk parameter with a version of DXVK
|
||||
// then we should find this DXVK version and call this method for it
|
||||
if (typeof dxvk == 'string')
|
||||
{
|
||||
let foundDXVK = null;
|
||||
|
|
|
@ -59,7 +59,7 @@ class Stream
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called when the downloading will be started
|
||||
* Specify event that will be called when the download gets started
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
@ -72,7 +72,7 @@ class Stream
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called every [this.progressInterval] ms during the file downloading
|
||||
* Specify event that will be called every [this.progressInterval] ms while the file is downloading
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
@ -82,7 +82,7 @@ class Stream
|
|||
}
|
||||
|
||||
/**
|
||||
* Specify event that will be called after the file will be downloaded
|
||||
* Specify event that will be called after the file is downloaded
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
|
|
|
@ -62,13 +62,13 @@ class Runners
|
|||
* Download runner to the [Constants.paths.runners] directory
|
||||
*
|
||||
* @param runner runner object or name
|
||||
* @returns null if the runner with specified name is not exists. Otherwise - installation stream
|
||||
* @returns null if the runner with specified name dosen't exist. Otherwise - installation stream
|
||||
*/
|
||||
public static download(runner: Runner|Runner['name']): Promise<null|Stream>
|
||||
{
|
||||
return new Promise(async (resolve) => {
|
||||
// If we provided runner property as a name of the runner
|
||||
// then we should find this runner and call this method from it
|
||||
// If we provided runner parameter with a name of a runner
|
||||
// then we should find this runner and call this method for it
|
||||
if (typeof runner == 'string')
|
||||
{
|
||||
let foundRunner = null;
|
||||
|
|
Loading…
Reference in a new issue