-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10839db
commit 86e0cb3
Showing
31 changed files
with
765 additions
and
560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace GTAIVDowngrader.Classes | ||
{ | ||
internal struct CommandLineArgument | ||
{ | ||
#region Properties | ||
public int Category { get; private set; } | ||
public string ArgumentName { get; private set; } | ||
public string ArgumentDescription { get; private set; } | ||
#endregion | ||
|
||
#region Constructor | ||
public CommandLineArgument(int category, string aName, string aDesc) | ||
{ | ||
Category = category; | ||
ArgumentName = aName; | ||
ArgumentDescription = aDesc; | ||
} | ||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
|
||
using GTAIVDowngrader.JsonObjects; | ||
|
||
namespace GTAIVDowngrader.Classes | ||
{ | ||
internal class DowngradingInfo | ||
{ | ||
#region Properties | ||
public string IVExecutablePath { get; private set; } | ||
public string IVWorkingDirectoy { get; private set; } | ||
public string IVTargetBackupDirectory { get; private set; } | ||
public string ReceivedMD5Hash { get; private set; } | ||
public string RelatedMD5Hash { get; private set; } | ||
public string NewGTAIVTargetLocation { get; private set; } | ||
|
||
public GameVersion DowngradeTo { get; private set; } | ||
public RadioDowngrader SelectedRadioDowngrader { get; private set; } | ||
public VladivostokTypes SelectedVladivostokType { get; private set; } | ||
|
||
public bool ConfigureForGFWL { get; private set; } | ||
public bool InstallNoEFLCMusicInIVFix { get; private set; } | ||
public bool InstallPrerequisites { get; private set; } | ||
public bool WantsToCreateBackup { get; private set; } | ||
public bool CreateBackupInZipFile { get; private set; } | ||
public bool GTAIVInstallationGotMovedByDowngrader { get; private set; } | ||
|
||
public List<ModInformation> SelectedMods; | ||
public List<OptionalComponentInfo> SelectedOptionalComponents; | ||
#endregion | ||
|
||
#region Constructor | ||
public DowngradingInfo() | ||
{ | ||
SelectedMods = new List<ModInformation>(); | ||
SelectedOptionalComponents = new List<OptionalComponentInfo>(); | ||
} | ||
#endregion | ||
|
||
#region Methods | ||
public void SetPath(string executablePath) | ||
{ | ||
IVExecutablePath = executablePath; | ||
IVWorkingDirectoy = Path.GetDirectoryName(executablePath); | ||
} | ||
public void SetTargetBackupPath(string backupPath) | ||
{ | ||
IVTargetBackupDirectory = backupPath; | ||
} | ||
public void SetReceivedMD5Hash(string hash) | ||
{ | ||
ReceivedMD5Hash = hash; | ||
} | ||
public void SetRelatedMD5Hash(string hash) | ||
{ | ||
RelatedMD5Hash = hash; | ||
} | ||
public void SetNewGTAIVTargetLocation(string location) | ||
{ | ||
NewGTAIVTargetLocation = location; | ||
} | ||
|
||
public void SetDowngradeVersion(GameVersion version) | ||
{ | ||
DowngradeTo = version; | ||
} | ||
public void SetRadioDowngrader(RadioDowngrader radioDowngrader) | ||
{ | ||
SelectedRadioDowngrader = radioDowngrader; | ||
} | ||
public void SetVladivostokType(VladivostokTypes type) | ||
{ | ||
SelectedVladivostokType = type; | ||
} | ||
|
||
public void SetConfigureForGFWL(bool value) | ||
{ | ||
ConfigureForGFWL = value; | ||
} | ||
public void SetInstallNoEFLCMusicInIVFix(bool value) | ||
{ | ||
InstallNoEFLCMusicInIVFix = value; | ||
} | ||
public void SetInstallPrerequisites(bool value) | ||
{ | ||
InstallPrerequisites = value; | ||
} | ||
public void SetWantsToCreateBackup(bool value) | ||
{ | ||
WantsToCreateBackup = value; | ||
} | ||
public void SetCreateBackupInZipFile(bool value) | ||
{ | ||
CreateBackupInZipFile = value; | ||
} | ||
public void SetGTAIVInstallationGotMovedByDowngrader(bool value) | ||
{ | ||
GTAIVInstallationGotMovedByDowngrader = value; | ||
} | ||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
namespace GTAIVDowngrader | ||
{ | ||
|
||
public enum Steps | ||
{ | ||
S0_Welcome = 0, | ||
S1_SelectIVExe, | ||
S2_MD5FilesChecker, | ||
S3_MoveGameFilesQuestion, | ||
S4_MoveGameFiles, | ||
S5_SelectDwngrdVersion, | ||
S6_Multiplayer, | ||
S7_SelectRadioDwngrd, | ||
S7_1_SelectVladivostokType, | ||
S8_SelectComponents, | ||
S9_Confirm, | ||
S10_Downgrade, | ||
S11_SavefileDowngrade, | ||
S11_SavefileDowngrade_2, | ||
S11_SavefileDowngrade_3, | ||
S12_Commandline, | ||
S13_Finish, | ||
|
||
MessageDialog, | ||
StandaloneWarning, | ||
Error | ||
} | ||
|
||
public enum LogType | ||
{ | ||
Info, | ||
Warning, | ||
Error | ||
} | ||
public enum GameVersion | ||
{ | ||
v1080, | ||
v1070, | ||
v1040 | ||
} | ||
public enum ModVersion | ||
{ | ||
All = 3, | ||
v1080 = 0, | ||
v1070 = 1, | ||
v1040 = 2, | ||
} | ||
public enum RadioDowngrader | ||
{ | ||
None, | ||
SneedsDowngrader, | ||
LegacyDowngrader | ||
} | ||
public enum VladivostokTypes | ||
{ | ||
None, | ||
New, | ||
Old | ||
} | ||
public enum ModType | ||
{ | ||
ASILoader, | ||
ASIMod, | ||
ScriptHook, | ||
ScriptHookMod, | ||
ScriptHookHook, | ||
ScriptHookDotNet, | ||
ScriptHookDotNetMod | ||
} | ||
public enum NotificationType | ||
{ | ||
Info, | ||
Warning, | ||
Error, | ||
Success | ||
} | ||
public enum SlideDirection | ||
{ | ||
TopToBottom, | ||
BottomToTop | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using GTAIVDowngrader.JsonObjects; | ||
|
||
namespace GTAIVDowngrader.Classes | ||
{ | ||
internal class FileDownload | ||
{ | ||
#region Properties | ||
public string FileName { get; private set; } | ||
public string DownloadURL { get; private set; } | ||
public long FileSize { get; private set; } | ||
public bool NeedsToBeDecompressed { get; private set; } | ||
#endregion | ||
|
||
#region Constructor | ||
public FileDownload(DowngradeInformation info) | ||
{ | ||
FileName = info.FileName; | ||
FileSize = info.FileSize; | ||
DownloadURL = info.DownloadURL; | ||
NeedsToBeDecompressed = info.NeedsToBeDecompressed; | ||
} | ||
public FileDownload(OptionalComponentInfo info) | ||
{ | ||
FileName = info.FileName; | ||
FileSize = info.FileSize; | ||
DownloadURL = info.DownloadURL; | ||
NeedsToBeDecompressed = false; | ||
} | ||
public FileDownload(ModInformation info) | ||
{ | ||
FileName = info.FileName; | ||
FileSize = info.FileSize; | ||
DownloadURL = info.DownloadURL; | ||
NeedsToBeDecompressed = false; | ||
} | ||
#endregion | ||
} | ||
} |
Oops, something went wrong.