forked from hmxmilohax/rock-band-3-deluxe
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
9 changed files
with
67 additions
and
29 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
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(message_motd "Rock Band 3 Deluxe v1.0b Release Loaded! Thanks for playing!") | ||
(message_motd_signin "Rock Band 3 Deluxe v1.0b Release Loaded! Thanks for playing!") | ||
(message_motd_noconnection "Rock Band 3 Deluxe v1.0b Release Loaded! Thanks for playing!") | ||
(rb3e_mod_string "RB3DX v1.0b Release") | ||
(message_motd "Rock Band 3 Deluxe v1.0b (devbuild) Loaded! Thanks for playing!") | ||
(message_motd_signin "Rock Band 3 Deluxe v1.0b (devbuild) Loaded! Thanks for playing!") | ||
(message_motd_noconnection "Rock Band 3 Deluxe v1.0b (devbuild) Loaded! Thanks for playing!") | ||
(rb3e_mod_string "RB3DX v1.0b (devbuild)") |
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
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 |
---|---|---|
@@ -1,31 +1,30 @@ | ||
# add_devbuild.py | ||
from pathlib import Path | ||
import subprocess | ||
import sys | ||
|
||
def main(): | ||
if len(sys.argv) != 2: | ||
print("no devbuild provided") | ||
else: | ||
commit = sys.argv[1] | ||
print(f"Commit: {commit}") | ||
# get the current working directory (where this script resides) | ||
cwd = Path().absolute() | ||
# get the root directory of the repo | ||
root_dir = Path(__file__).parents[2] | ||
print(root_dir) | ||
# sed -i -e "s/devbuild/"$GITHUB_SHA_SHORT"/g" _ark/ui/locale/locale_dx_keep.dta | ||
for locale in root_dir.joinpath("_ark/dx/locale").glob("dx_version.dta"): | ||
print(locale) | ||
with open(locale, "r", encoding="ISO-8859=1") as f: | ||
the_locale = [line for line in f.readlines()] | ||
# get the current working directory (where this script resides) | ||
cwd = Path().absolute() | ||
# get the root directory of the repo | ||
root_dir = Path(__file__).parents[2] | ||
#print(root_dir) | ||
# sed -i -e "s/devbuild/"$GITHUB_SHA_SHORT"/g" _ark/ui/locale/locale_dx_keep.dta | ||
commit = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"],text=True).strip("\n") | ||
print(f"Commit: {commit}\n") | ||
print("Injecting devbuild into locale...\n") | ||
|
||
for i in range(len(the_locale)): | ||
if "devbuild" in the_locale[i]: | ||
the_locale[i] = the_locale[i].replace("devbuild", f"{commit}") | ||
for locale in root_dir.joinpath("_ark/dx/locale").glob("dx_version.dta"): | ||
#print(locale) | ||
with open(locale, "r", encoding="ISO-8859=1") as f: | ||
the_locale = [line for line in f.readlines()] | ||
|
||
with open(locale, "w", encoding="ISO-8859=1") as ff: | ||
ff.writelines(the_locale) | ||
for i in range(len(the_locale)): | ||
if "devbuild" in the_locale[i]: | ||
the_locale[i] = the_locale[i].replace("devbuild", f"{commit}") | ||
|
||
with open(locale, "w", encoding="ISO-8859=1") as ff: | ||
ff.writelines(the_locale) | ||
|
||
if __name__ == "__main__": | ||
main() |
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,28 @@ | ||
# add_devbuild.py | ||
from pathlib import Path | ||
import subprocess | ||
import sys | ||
|
||
def main(): | ||
# get the current working directory (where this script resides) | ||
cwd = Path().absolute() | ||
# get the root directory of the repo | ||
root_dir = Path(__file__).parents[2] | ||
#print(root_dir) | ||
# sed -i -e "s/devbuild/"$GITHUB_SHA_SHORT"/g" _ark/ui/locale/locale_dx_keep.dta | ||
commit = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"],text=True).strip("\n") | ||
print("Resetting devbuild in locale...\n") | ||
for locale in root_dir.joinpath("_ark/dx/locale").glob("dx_version.dta"): | ||
#print(locale) | ||
with open(locale, "r", encoding="ISO-8859=1") as f: | ||
the_locale = [line for line in f.readlines()] | ||
|
||
for i in range(len(the_locale)): | ||
if f"{commit}" in the_locale[i]: | ||
the_locale[i] = the_locale[i].replace(f"{commit}", "devbuild") | ||
|
||
with open(locale, "w", encoding="ISO-8859=1") as ff: | ||
ff.writelines(the_locale) | ||
|
||
if __name__ == "__main__": | ||
main() |
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
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