diff --git a/data/patches/linux/linux-common-ra2.patch b/data/patches/linux/linux-common-ra2.patch deleted file mode 100644 index f4791cf..0000000 --- a/data/patches/linux/linux-common-ra2.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- a/mods/all/mod.yaml -+++ b/mods/all/mod.yaml -@@ -20,6 +20,7 @@ - ./mods/d2k/OpenRA.Mods.D2k.dll - ./mods/cnc/OpenRA.Mods.Cnc.dll - ./mods/ts/OpenRA.Mods.TS.dll -+ ./mods/ra2/OpenRA.Mods.RA2.dll - - ChromeLayout: - - ---- a/mods/ra2/mod.yaml -+++ b/mods/ra2/mod.yaml -@@ -5,7 +5,7 @@ - Author: RA2 team - - RequiresMods: -- modchooser: {DEV_VERSION} -+ - - Packages: - ~^Content/ra2 - ---- a/utility.cmd -+++ b/utility.cmd -@@ -16,6 +16,7 @@ - if /I "%mod%" EQU "ra" (goto help) - if /I "%mod%" EQU "cnc" (goto help) - if /I "%mod%" EQU "ts" (goto help) -+if /I "%mod%" EQU "ra2" (goto help) - if /I "%mod%" EQU "d2k" (goto help) - echo. - echo Unknown mod: %mod% diff --git a/data/patches/linux/linux-make.patch b/data/patches/linux/linux-make.patch deleted file mode 100644 index 337a23f..0000000 --- a/data/patches/linux/linux-make.patch +++ /dev/null @@ -1,59 +0,0 @@ ---- a/Makefile -+++ b/Makefile -@@ -187,6 +187,15 @@ - PROGRAMS += mod_ts - mod_ts: $(mod_ts_TARGET) - -+# Red Alert 2 -+mod_ra2_SRCS := $(shell find OpenRA.Mods.RA2/ -iname '*.cs') -+mod_ra2_TARGET = mods/ra2/OpenRA.Mods.RA2.dll -+mod_ra2_KIND = library -+mod_ra2_DEPS = $(STD_MOD_DEPS) $(mod_common_TARGET) -+mod_ra2_LIBS = $(COMMON_LIBS) $(STD_MOD_LIBS) $(mod_common_TARGET) -+PROGRAMS += mod_ra2 -+mod_ra2: $(mod_ra2_TARGET) -+ - check-scripts: - @echo - @echo "Checking for Lua syntax errors..." -@@ -222,6 +231,9 @@ - @echo "Checking for code style violations in OpenRA.Mods.TS..." - @mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.TS - @echo -+ @echo "Checking for code style violations in OpenRA.Mods.RA2..." -+ @mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.RA2 -+ @echo - @echo "Checking for code style violations in OpenRA.Utility..." - @mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Utility - @echo -@@ -256,6 +268,9 @@ - @mono --debug OpenRA.Utility.exe ts --check-yaml - @mono --debug OpenRA.Utility.exe ts --check-sequence-sprites - @echo -+ @echo "Testing Red Alert 2 mod MiniYAML..." -+ @mono --debug OpenRA.Utility.exe ra2 --check-yaml -+ @echo - @echo "Testing Dune 2000 mod MiniYAML..." - @mono --debug OpenRA.Utility.exe d2k --check-yaml - @mono --debug OpenRA.Utility.exe d2k --check-sequence-sprites -@@ -324,7 +339,7 @@ - - package: all-dependencies core tools docs version - --mods: mod_common mod_ra mod_cnc mod_d2k mod_ts -+mods: mod_common mod_ra mod_cnc mod_d2k mod_ts mod_ra2 - - all: dependencies core tools - -@@ -393,6 +408,10 @@ - @$(CP_R) mods/d2k "$(DATA_INSTALL_DIR)/mods/" - @$(INSTALL_PROGRAM) $(mod_d2k_TARGET) "$(DATA_INSTALL_DIR)/mods/d2k" - @$(CP_R) mods/modchooser "$(DATA_INSTALL_DIR)/mods/" -+ @$(CP_R) mods/ts "$(DATA_INSTALL_DIR)/mods/" -+ @$(INSTALL_PROGRAM) $(mod_ts_TARGET) "$(DATA_INSTALL_DIR)/mods/ts" -+ @$(CP_R) mods/ra2 "$(DATA_INSTALL_DIR)/mods/" -+ @$(INSTALL_PROGRAM) $(mod_ra2_TARGET) "$(DATA_INSTALL_DIR)/mods/ra2" - - @$(INSTALL_DATA) "global mix database.dat" "$(DATA_INSTALL_DIR)/global mix database.dat" - @$(INSTALL_DATA) "GeoLite2-Country.mmdb.gz" "$(DATA_INSTALL_DIR)/GeoLite2-Country.mmdb.gz" - diff --git a/data/patches/windows/windows-common-ra2.patch b/data/patches/windows/windows-ra2-common.patch similarity index 100% rename from data/patches/windows/windows-common-ra2.patch rename to data/patches/windows/windows-ra2-common.patch diff --git a/data/patches/windows/windows-ra2-csproj.patch b/data/patches/windows/windows-ra2-csproj.patch deleted file mode 100644 index de5bffc..0000000 --- a/data/patches/windows/windows-ra2-csproj.patch +++ /dev/null @@ -1,109 +0,0 @@ ---- a/OpenRA.Mods.RA2/OpenRA.Mods.RA2.csproj -+++ b/OpenRA.Mods.RA2/OpenRA.Mods.RA2.csproj -@@ -12,53 +12,64 @@ - - x86 - -- -+ - True - Full - False - True - DEBUG;TRACE - bin\Debug\ -+ x86 -+ prompt - - -- -- -+ -+ - - -+ AllRules.ruleset -+ true - -- -- False -- None -+ -+ True -+ pdbonly - True - False - TRACE - bin\Release\ -+ x86 -+ prompt - - -- -- -+ -+ - - -+ AllRules.ruleset -+ true - - -+ -+ -+ - - -- dependencies\OpenRA.Game.exe -+ ..\OpenRA.Mods.RA\OpenRA.Game.exe - - -- dependencies\OpenRA.Mods.Common.dll -+ ..\OpenRA.Mods.RA\OpenRA.Mods.Common.dll - - -- dependencies\OpenRA.Mods.RA.dll -+ ..\OpenRA.Mods.RA\OpenRA.Mods.RA.dll - - -- dependencies\OpenRA.Mods.TS.dll -+ ..\OpenRA.Mods.TS\OpenRA.Mods.TS.dll - - -- dependencies\Eluant.dll -+ ..\thirdparty\download\Eluant.dll - - -- dependencies\Eluant.dll -+ ..\thirdparty\download\Eluant.dll - False - - -@@ -68,10 +79,27 @@ - - - -+ -+ {0DFB103F-2962-400F-8C6D-E2C28CCBA633} -+ OpenRA.Game -+ False -+ -+ -+ {fe6c8cc0-2f07-442a-b29f-17617b3b7fc6} -+ OpenRA.Mods.Common -+ False -+ -+ -+ - - - - - -+ -+ mkdir "$(SolutionDir)mods/ra2/" -+copy "$(TargetPath)" "$(SolutionDir)mods/ra2/" -+cd "$(SolutionDir)" -+ - - diff --git a/data/patches/windows/windows-make.patch b/data/patches/windows/windows-ra2-make.patch similarity index 64% rename from data/patches/windows/windows-make.patch rename to data/patches/windows/windows-ra2-make.patch index e856687..45e4812 100644 --- a/data/patches/windows/windows-make.patch +++ b/data/patches/windows/windows-ra2-make.patch @@ -1,14 +1,5 @@ --- a/make.ps1 +++ b/make.ps1 -@@ -108,7 +108,7 @@ - - if ($version -ne $null) - { -- $mods = @("mods/ra/mod.yaml", "mods/cnc/mod.yaml", "mods/d2k/mod.yaml", "mods/ts/mod.yaml", "mods/modchooser/mod.yaml", "mods/all/mod.yaml") -+ $mods = @("mods/ra/mod.yaml", "mods/cnc/mod.yaml", "mods/d2k/mod.yaml", "mods/ts/mod.yaml", "mods/ra2/mod.yaml", "mods/modchooser/mod.yaml", "mods/all/mod.yaml") - foreach ($mod in $mods) - { - $replacement = (gc $mod) -Replace "Version:.*", ("Version: {0}" -f $version) @@ -136,6 +136,8 @@ echo "Testing mods..." echo "Testing Tiberian Sun mod MiniYAML..." diff --git a/data/patches/windows/windows-openra-solution.patch b/data/patches/windows/windows-ra2-openra-solution.patch similarity index 100% rename from data/patches/windows/windows-openra-solution.patch rename to data/patches/windows/windows-ra2-openra-solution.patch