Payday 2 · handler “PAYDAY2”
Version 2
Release notes
aspect ratio fix
- Released
- Size
- 1023 B
- Downloads
- 419
- Check
- Unverified
- SHA-256
- 0beb13d3cb00e5f6ad52add86c7436a3842db8160baa21fb8855bb8a948ed8c8
Files 1
| Path | Size |
|---|---|
| handler.js | 2.1 KB |
handler.js
Plain textHub.Handler.Version = 2; // Released at https://hub.splitscreen.me/ on Fri Apr 24 2020 01:46:34 GMT+0000 (UTC).
Hub.Handler.Id = "o8ixYAJ9Q382LJfLB";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
Game.KillMutex = ["Overkill Engine Game"];
Game.FileSymlinkExclusions = [
//"steam_api.dll",
//"steam_appid.txt",
"xinput1_3.dll"
];
Game.KillMutexType = "Event";
Game.NeedsSteamEmulation = true;
Game.UseGoldberg = false;
Game.UseSteamStubDRMPatcher = false;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.SupportsKeyboard = true;
Game.ExecutableName = "payday2_win32_release.exe";
Game.SteamID = "218620";
Game.GUID = "PAYDAY 2";
Game.GameName = "PAYDAY 2";
Game.MaxPlayers = 4;
Game.MaxPlayersOneMonitor = 4;
Game.LauncherTitle = "";
Game.StartArguments = "-skip_intro";
Game.HideTaskbar = false;
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "PAYDAY 2";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.UseAlpha8CustomDll = false;
Game.FakeFocus = false;
Game.HideCursor = false;
Game.KeyboardPlayerFirst = true;
Game.UserProfileSavePath = "AppData\\Local\\PAYDAY 2\\saves";
Game.PauseBetweenStarts = 25;
Game.Play = function() {
var path = "%USERPROFILE%\\AppData\\Local\\PAYDAY 2\\renderer_settings.xml";
Context.ChangeXmlAttributeValue(path, "//d3d_device", "resolution", Context.Width + " " + Context.Height);
Context.ChangeXmlAttributeValue(path, "//d3d_device", "windowed", "true");
Context.ChangeXmlAttributeValue(path, "//d3d_device", "aspect_ratio", Context.AspectRatioDecimal);
if (Player.IsKeyboardPlayer) {
Context.Hook.BlockMouseEvents = "False";
Context.Hook.BlockKeyboardEvents = "False";
Context.Hook.BlockInputEvents = "False";
Context.Hook.ForceFocus = "False";
} else {
Context.Hook.BlockMouseEvents = "True";
Context.Hook.BlockKeyboardEvents = "True";
Context.Hook.BlockInputEvents = "True";
Context.Hook.ForceFocus = "True";
}
};