Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/gamesetup.js
Show First 20 Lines • Show All 1,135 Lines • ▼ Show 20 Lines | g_PlayerAssignments = { | ||||
"local": { | "local": { | ||||
"name": singleplayerName(), | "name": singleplayerName(), | ||||
"player": 1 | "player": 1 | ||||
} | } | ||||
}; | }; | ||||
// Replace empty playername when entering a singleplayermatch for the first time | // Replace empty playername when entering a singleplayermatch for the first time | ||||
if (!g_IsNetworked) | if (!g_IsNetworked) | ||||
saveSettingAndWriteToUserConfig("playername.singleplayer", singleplayerName()); | Engine.ConfigDB_CreateAndWriteValueToFile("user", "playername.singleplayer", singleplayerName()); | ||||
initDefaults(); | initDefaults(); | ||||
supplementDefaults(); | supplementDefaults(); | ||||
setTimeout(displayGamestateNotifications, 1000); | setTimeout(displayGamestateNotifications, 1000); | ||||
} | } | ||||
function initDefaults() | function initDefaults() | ||||
▲ Show 20 Lines • Show All 1,619 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator