Far Cry 2: Fortune's Edition · handler “Far Cry 2”
Version 1
Release notes
Initial semi-functional release
- Released
- Size
- 871 B
- Downloads
- 79
- Check
- Unverified
- SHA-256
- 2e4438ae1dff1032039fc786277b0ed88eb3ba9360edd6cbe3e03afcbed298e0
Files 1
| Path | Size |
|---|---|
| handler.js | 1.8 KB |
handler.js
Plain textHub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Wed Mar 31 2021 23:13:39 GMT+0000 (UTC).
Hub.Handler.Id = "MMyQHATZcspSEqHMY";
Hub.Maintainer.Name = "zenbob";
Hub.Maintainer.Id = "o3hGZ9NmvZWAiYKQo";
Game.NeedsSteamEmulation = false;
Game.KillMutex = ["FarCry2Instance"];
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.SupportsKeyboard = true;
Game.BinariesFolder = "bin";
Game.ExecutableName = "farcry2.exe";
Game.SteamID = "2";
Game.GUID = "Far Cry 2";
Game.GameName = "Far Cry 2";
Game.MaxPlayers = 4;
Game.MaxPlayersOneMonitor = 4;
Game.LauncherTitle = "";
Game.HideTaskbar = false;
Game.StartArguments = "-RenderProfile_Fullscreen 0 -GameProfile_SkipIntroMovies 1";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Far Cry® 2";
Game.HasDynamicWindowTitle = true;
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = true;
Game.Hook.CustomDllEnabled = false;
Game.DocumentsSavePath = "My Games\\Far Cry 2\\Saved Games";
Game.DocumentsConfigPath = "My Games\\Far Cry 2";
Game.PauseBetweenProcessGrab = 30;
Game.PauseBetweenStarts = 35;
Game.Play = function() {
var savePath = Context.GetFolder(Nucleus.Folder.Documents) + "\\My Games\\Far Cry 2\\GamerProfile.xml";
Context.ChangeXmlAttributeValue(savePath, "//RenderProfile", "ResolutionX", Context.Width);
Context.ChangeXmlAttributeValue(savePath, "//RenderProfile", "ResolutionY", Context.Height);
Context.ChangeXmlAttributeValue(savePath, "//quality", "ResolutionX", Context.Width);
Context.ChangeXmlAttributeValue(savePath, "//quality", "ResolutionY", Context.Height);
Context.ChangeXmlAttributeValue(savePath, "//Account", "Name", Context.PlayerID);
};