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

Colin McRae: Dirt · handler “Colin McRae: DiRT”

Version 3

Release notes

removed useless lines

Released
Size
2.6 KB
Downloads
1
Check
Unverified
SHA-256
159e179877f0bda8741e87ab0847568a45664a3d1719d3f05d50e6649b089785
Download v3 (.nc)All versions

Files 2

PathSize
Colin McRae DiRT/hardware_settings_restrictions.xml6.9 KB
handler.js2.7 KB

handler.js

Plain text
Hub.Handler.Version = 3; // Released at https://hub.splitscreen.me/ on Wed Jan 19 2022 14:16:40 GMT+0000 (Coordinated Universal Time).
Hub.Handler.Id = "jDNKuQTpHTTzy2Th5";
Hub.Maintainer.Name = "Genjuro_Kibagami";
Hub.Maintainer.Id = "6s2Fuz9unXTtH453m";

Game.KillMutex = ["Type:Mutant|DiRT"];
Game.ExecutableContext = ["codies.ico"];
Game.UseNucleusEnvironment = true;
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = false;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = false;
Game.SymlinkFolders = false;
Game.ExecutableName = "DiRT.exe";
Game.SteamID = "11440";
Game.GUID = "Colin McRae DiRT";
Game.GameName = "Colin McRae DiRT";
Game.MaxPlayers = 4;
Game.MaxPlayersOneMonitor = 4;
Game.LauncherTitle = "";
Game.HideTaskbar = false;
Game.Hook.ForceFocus = false;
Game.Hook.ForceFocusWindowName = "DiRT";
Game.HasDynamicWindowTitle = true;
Game.FakeFocus = true;
Game.FakeFocusInterval = 40000;
Game.SendFakeFocusMsg = true;
Game.HookFocus = true;
Game.SetWindowHook = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.UseAlpha8CustomDll = true;
Game.Hook.CustomDllEnabled = false;
Game.XInputPlusDll = ["xinput1_3.dll", "xinput9_1_0.dll"];
Game.Description =
  "Run game outside of nucleus first to create video setting files, use lan mode in multiplayer menu, a backup of the 'harware_restrictions.xml' file is made when nucleus is active, please make sure to quit nucleus properly (ctrl + q) or the backup will not be reinstated properly (backup will still be in the DiRT/system folder)";
Game.KeepSymLinkOnExit = false;
Game.PauseBetweenStarts = 10;

Game.Play = function() {
  Context.BackupFile(Context.OrigRootFolder + "\\system\\hardware_settings_restrictions.xml", true);

  var path = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\hardwaresettings\\hardware_settings_config.xml";
  var width = Context.Width;
  var height = Context.Height;

  Context.ChangeXmlAttributeValue(path, "//graphics_card//resolution", "width", Context.Width);
  Context.ChangeXmlAttributeValue(path, "//graphics_card//resolution", "height", Context.Height);
  Context.ChangeXmlAttributeValue(path, "//graphics_card//resolution", "aspect", width + ":" + height);
  Context.ChangeXmlAttributeValue(path, "//graphics_card//resolution", "fullscreen", "false");
  Context.ChangeXmlAttributeValue(path, "//graphics_card//resolution", "vsync", "1");

  var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\system\\hardware_settings_restrictions.xml";
  var savePkgOrigin = System.IO.Path.Combine(Game.Folder, "hardware_settings_restrictions.xml");
  System.IO.File.Copy(savePkgOrigin, savePath, true);
};