()
| 454 | } |
| 455 | |
| 456 | public static void AddFastLoadMod() |
| 457 | { |
| 458 | if (!Directory.Exists(Constants.CachePcPath) || GenUtil.IsDirectoryEmpty(Constants.CachePcPath)) |
| 459 | UnpackCachePsarc(); |
| 460 | |
| 461 | try |
| 462 | { |
| 463 | char driveLetter = Constants.RSFolder.ToUpper()[0]; |
| 464 | var driveType = GetDriveType(driveLetter); |
| 465 | |
| 466 | if (driveType.Item1 == "HDD") |
| 467 | { |
| 468 | if (MessageBox.Show(@"It appears as though Rocksmith installed on a hard disk drive. HDDs are normally too slow to support fast load mod and will likely result in a crash. \n Do you wish to proceed?", "Drive too slow for fast load", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) |
| 469 | return; |
| 470 | |
| 471 | AddFastLoadModFile(false); |
| 472 | } |
| 473 | else if (driveType.Item1 == "SSD") |
| 474 | { |
| 475 | if (driveType.Item2) // If is NVMe |
| 476 | { |
| 477 | if (MessageBox.Show("Can you confirm Rocksmith is installed on a NVMe drive?\n If you are unsure, press \"No\", because Rocksmith is likely to crash if you pick the fastest option!", "Is RS on a NVMe drive?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) |
| 478 | AddFastLoadModFile(true); |
| 479 | else |
| 480 | AddFastLoadModFile(false); |
| 481 | } |
| 482 | else |
| 483 | AddFastLoadModFile(false); |
| 484 | } |
| 485 | else |
| 486 | { |
| 487 | if (MessageBox.Show(@"We were unable to detect the drive type on which Rocksmith is installed. \n Is it on a NVMe drive? (if it's not, fastest loading option is likely to crash your game!)", "Fast drive?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) |
| 488 | AddFastLoadModFile(true); |
| 489 | else |
| 490 | AddFastLoadModFile(false); |
| 491 | } |
| 492 | } |
| 493 | catch (IOException ioex) |
| 494 | { |
| 495 | MessageBox.Show($"Unable to copy required files. Error: {ioex.Message}"); |
| 496 | } |
| 497 | |
| 498 | ZipUtilities.InjectFile(Constants.IntroGFX_CustomPath, Constants.Cache4_7zPath, Constants.IntroGFX_InternalPath, OutArchiveFormat.SevenZip, CompressionMode.Append); |
| 499 | |
| 500 | RepackCachePsarc(); |
| 501 | } |
| 502 | #endregion |
| 503 | #region Custom Wwise |
| 504 | public static void AddIncreasedVolumeWwiseBank() |
no test coverage detected