mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Moved the naming dict to a JSON file
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import argparse
|
import argparse
|
||||||
|
import json
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@@ -14,12 +15,10 @@ TERMINAL_COLOR_GREEN = "\033[32m"
|
|||||||
TERMINAL_COLOR_YELLOW = "\033[33m"
|
TERMINAL_COLOR_YELLOW = "\033[33m"
|
||||||
TERMINAL_COLOR_RESET = "\033[0m"
|
TERMINAL_COLOR_RESET = "\033[0m"
|
||||||
|
|
||||||
|
REGIONAL_NAMES_JSON_PATH = 'tools/python/regional_names.json'
|
||||||
|
|
||||||
# Note: All names MUST be lowercase
|
# Note: All names MUST be lowercase
|
||||||
diffMap = [
|
diffMap = json.loads(FileUtil.readAllText(REGIONAL_NAMES_JSON_PATH))
|
||||||
{ "us": "color", "uk": "colour" },
|
|
||||||
{ "us": "gray", "uk": "grey" },
|
|
||||||
{ "us": "dialog", "uk": "dialogue" },
|
|
||||||
]
|
|
||||||
|
|
||||||
def precheckForErrors(version):
|
def precheckForErrors(version):
|
||||||
versionBuildPath = 'build/' + version
|
versionBuildPath = 'build/' + version
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
[
|
||||||
|
{ "us": "color", "uk": "colour" },
|
||||||
|
{ "us": "gray", "uk": "grey" },
|
||||||
|
{ "us": "dialog", "uk": "dialogue" }
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user