Skip to content
Beta: this is a preview of the new SplitScreen.Me. Data may be reset before launch.

Kane & Lynch 2: Dog Days · handler “Kane&Lynch 2”

Version 1

Release notes

first release

Released
Size
1.6 KB
Downloads
47
Check
Verified
SHA-256
0005c625dfdbd933664f545a90b123b6e9e4f0a3d18b91f10c3b92a5d33d6773
Download v1 (.nc)All versions

Files 1

PathSize
handler.js3.8 KB

handler.js

Plain text
Hub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Sun Nov 08 2020 06:48:00 GMT+0000 (UTC).
Hub.Handler.Id = "JoyDJim6oj2fQeouQ";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

Game.ExecutableContext = ["KL2GE.dll"];
Game.KillMutex = [
  "Type:Mutant|KANEANDLYNCH2MUTEX",
  "Type:Event|DrawBegin",
  "Type:Event|DrawEnd",
  "Type:Event|RenderThreadEnd",
  "Type:Event|RenderThreadInit",
  "Type:Event|ResetDevice",
  "Type:Event|UpdateRenderState",
  "Type:Event|DeviceUpdate"
];
Game.FileSymlinkExclusions = ["steam_api.dll", "steam_appid.txt", "steam_interfaces.txt", "d3d9.dll"];
Game.FileSymlinkCopyInstead = ["binkw32.dll", "KL2GE.dll", "Patch01.zip"];
Game.RenameNotKillMutex = true;
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.UseNucleusEnvironment = false;
Game.UseDirectX9Wrapper = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.SupportsKeyboard = false;
Game.ExecutableName = "kl2.exe";
Game.SteamID = "28000";
Game.GUID = "Kane & Lynch 2 Dog Days";
Game.GameName = "Kane & Lynch 2: Dog Days";
Game.MaxPlayers = 12;
Game.MaxPlayersOneMonitor = 12;
Game.HideTaskbar = false;
Game.NotTopMost = false;
//Game.StartArguments = "-setup";
Game.LauncherTitle = "";
Game.Hook.ForceFocus = false;
Game.Hook.ForceFocusWindowName = "Kane & Lynch 2: Dog Days";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.UseAlpha8CustomDll = false;
Game.XInputPlusDll = ["xinput1_3.dll"];
Game.Hook.CustomDllEnabled = false;
Game.FakeFocus = true;
Game.HookFocus = true;
Game.UserProfileConfigPath = "AppData\\Local";
Game.UserProfileConfigPathNoCopy = true;
Game.UserProfileSavePath = "Documents\\SQUARE ENIX\\Kane & Lynch 2 - Dog Days";
Game.Description =
  "Make sure you have launched your main game at least once before running this. Create an online story mode lobby in one instance and join in the other. Do not go to the game video settings when running this or it will crash the instances, change the graphic settings in your main game.";
Game.PauseBetweenStarts = 30;

Game.Play = function() {
  Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days", "MicrophoneEnabled", 0, Nucleus.RegType.DWord);

  Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days\\Graphics", "DisplayHeight", Context.Height, Nucleus.RegType.DWord);

  Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days\\Graphics", "DisplayWidth", Context.Width, Nucleus.RegType.DWord);

  var interfaces = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_interfaces.txt";
  var lines = [
    "SteamClient009",
    "SteamGameServer010",
    "SteamGameServerStats001",
    "SteamUser013",
    "SteamFriends005",
    "SteamUtils005",
    "SteamMatchMaking008",
    "SteamMatchMakingServers002",
    "STEAMUSERSTATS_INTERFACE_VERSION007",
    "STEAMAPPS_INTERFACE_VERSION003",
    "SteamNetworking003",
    "STEAMREMOTESTORAGE_INTERFACE_VERSION002",
    "SteamMasterServerUpdater001"
  ];

  Context.WriteTextFile(interfaces, lines);

  /*if (Context.AspectRatioDecimal > 1.8) {
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days\\Graphics", "AspectRatio", "3555", Nucleus.RegType.DWord);//1777-16:9 1600-16:10 1250-5:4 1333-4:3
}
else if (Context.AspectRatioDecimal < 1.3) {
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days\\Graphics", "AspectRatio", "888", Nucleus.RegType.DWord);
}
else {
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days\\Graphics", "AspectRatio", "1777", Nucleus.RegType.DWord);
}*/
};