Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/replaymenu/replay_menu.js
Show First 20 Lines • Show All 330 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Returns a human-readable version of the time when the replay started. | * Returns a human-readable version of the time when the replay started. | ||||
* | * | ||||
* @returns {string} | * @returns {string} | ||||
*/ | */ | ||||
function getReplayDuration(replay) | function getReplayDuration(replay) | ||||
{ | { | ||||
return timeToString(replay.duration * 1000); | return durationToString(replay.duration * 1000); | ||||
} | } | ||||
/** | /** | ||||
* True if we can start the given replay with the currently loaded mods. | * True if we can start the given replay with the currently loaded mods. | ||||
*/ | */ | ||||
function isReplayCompatible(replay) | function isReplayCompatible(replay) | ||||
{ | { | ||||
return replayHasSameEngineVersion(replay) && hasSameMods(replay.attribs, g_EngineInfo); | return replayHasSameEngineVersion(replay) && hasSameMods(replay.attribs, g_EngineInfo); | ||||
Show All 9 Lines |
Wildfire Games · Phabricator