Skip to content

Commit b345039

Browse files
committed
misc: rename editor exectuable from zquest to zeditor
1 parent de70ed2 commit b345039

40 files changed

+98
-94
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ env:
5959
CCACHE_DIR: ${{ github.workspace }}/.ccache
6060
CCACHE_MAXSIZE: 400M
6161
CCACHE_SLOPPINESS: time_macros
62-
TARGET: zplayer zquest zscript zlauncher zupdater
62+
TARGET: zplayer zeditor zscript zlauncher zupdater
6363

6464
jobs:
6565
build:

CMakeLists.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -661,18 +661,18 @@ if(UNITY_BUILD)
661661
enable_unity_build(ZQuestZScript PARSER_SOURCES)
662662
endif()
663663

664-
add_executable(zquest ${ZQUEST_CORE_SOURCES} ${ZQUEST_GUI_SOURCES} ${ZQUEST_MISC_SOURCES} ${ZQUESTEXTRASOURCES} ${ZQUEST_MODULES})
665-
set_property(TARGET zquest PROPERTY VS_DPI_AWARE "PerMonitor")
664+
add_executable(zeditor ${ZQUEST_CORE_SOURCES} ${ZQUEST_GUI_SOURCES} ${ZQUEST_MISC_SOURCES} ${ZQUESTEXTRASOURCES} ${ZQUEST_MODULES})
665+
set_property(TARGET zeditor PROPERTY VS_DPI_AWARE "PerMonitor")
666666

667-
target_link_libraries(zquest PUBLIC allegro_with_legacy zconsolelogger zcbase zcgui zcsound ${IMAGELIBS} ${ZQUESTLIBSEXTRA})
668-
target_include_directories(zquest PRIVATE src)
667+
target_link_libraries(zeditor PUBLIC allegro_with_legacy zconsolelogger zcbase zcgui zcsound ${IMAGELIBS} ${ZQUESTLIBSEXTRA})
668+
target_include_directories(zeditor PRIVATE src)
669669

670670
if(MSVC)
671671
target_compile_definitions(zcsound PRIVATE ZCM_DLL)
672672
target_compile_definitions(zplayer PRIVATE ZCM_DLL_IMPORT)
673-
target_compile_definitions(zquest PRIVATE ZCM_DLL_IMPORT)
673+
target_compile_definitions(zeditor PRIVATE ZCM_DLL_IMPORT)
674674
endif()
675-
target_compile_definitions(zquest PRIVATE IS_ZQUEST)
675+
target_compile_definitions(zeditor PRIVATE IS_EDITOR)
676676

677677
if(WIN32)
678678
set_source_files_properties(
@@ -718,7 +718,7 @@ target_link_libraries(zlauncher PRIVATE allegro_with_legacy zcbase zcgui zconsol
718718
if(WIN32)
719719
add_executable(zstandalone src/standalone/standalone.cpp)
720720
target_link_options(zstandalone PRIVATE "/SUBSYSTEM:WINDOWS")
721-
add_dependencies(zquest zstandalone)
721+
add_dependencies(zeditor zstandalone)
722722
endif()
723723

724724
#############################################################
@@ -775,7 +775,7 @@ endif()
775775

776776
if (EMSCRIPTEN)
777777
target_link_options(zplayer PRIVATE "SHELL:-s EXPORTED_FUNCTIONS=_main,_get_shareable_url,_create_synthetic_key_event")
778-
target_link_options(zquest PRIVATE "SHELL:-s EXPORTED_FUNCTIONS=_main,_get_shareable_url,_create_synthetic_key_event,_open_test_mode")
778+
target_link_options(zeditor PRIVATE "SHELL:-s EXPORTED_FUNCTIONS=_main,_get_shareable_url,_create_synthetic_key_event,_open_test_mode")
779779
target_link_options(zscript PRIVATE "SHELL:-s PTHREAD_POOL_SIZE=1" "SHELL:-s EXTRA_EXPORTED_RUNTIME_METHODS=['FS','PROXYFS']")
780780
set_target_properties(zscript PROPERTIES SUFFIX ".mjs")
781781
endif()
@@ -784,7 +784,7 @@ endif()
784784
# Misc.
785785
#############################################################
786786

787-
set(zc_targets zquest zplayer zlauncher zcbase zcgui zcsound zscript zconsolelogger zupdater)
787+
set(zc_targets zeditor zplayer zlauncher zcbase zcgui zcsound zscript zconsolelogger zupdater)
788788
set(zc_clang_errors
789789
-Werror=array-bounds
790790
-Werror=format
@@ -986,14 +986,14 @@ if(CMAKE_GENERATOR MATCHES "Visual Studio")
986986
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO")
987987
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
988988

989-
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT zquest)
989+
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT zeditor)
990990

991991
# Configure "Debug" option in VS to use the correct working directory, otherwise it fails to load zc configuration files
992992
set_property(TARGET ${zc_targets} PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "$(ProjectDir)$(Configuration)")
993993

994994
# Organize into folders
995995
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
996-
set_target_properties(zplayer zquest zscript zlauncher zupdater package package_no_archive PROPERTIES FOLDER "")
996+
set_target_properties(zplayer zeditor zscript zlauncher zupdater package package_no_archive PROPERTIES FOLDER "")
997997
set_target_properties(run_replay_tests_all run_replay_tests_basic run_replay_tests_all_1s run_replay_tests_all_10s run_replay_tests_all_100s PROPERTIES FOLDER "Replay Tests")
998998
set_target_properties(zcbase zcgui zcsound PROPERTIES FOLDER "Our Libraries")
999999
set_target_properties(gme dumb aldmb PROPERTIES FOLDER Sound)

scripts/analyze_quest_rules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from zquest.section_utils import SECTION_IDS
1818
from zquest import constants
1919

20-
logging.getLogger('zquest').setLevel(logging.FATAL)
20+
logging.getLogger('zc').setLevel(logging.FATAL)
2121

2222
script_dir = Path(os.path.dirname(os.path.realpath(__file__)))
2323
root_dir = script_dir.parent
@@ -51,7 +51,7 @@ def get_pzc_id_number(path: Path):
5151

5252
def get_post_compat_rules(path: Path):
5353
tmp_path = tmp_dir / 'tmp.qst'
54-
exe_name = 'zquest.exe' if os.name == 'nt' else 'zquest'
54+
exe_name = 'zeditor.exe' if os.name == 'nt' else 'zeditor'
5555
args = [
5656
build_folder / exe_name,
5757
'-copy-qst', path, tmp_path,

scripts/bisect_builds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,15 @@ def get_revision_binaries(revision: Revision):
300300
if channel == 'mac':
301301
zc_app_path = next(dir.glob('*.app'))
302302
binaries['zc'] = find_path(zc_app_path / 'Contents/Resources', ['zplayer', 'zelda'])
303-
binaries['zq'] = zc_app_path / 'Contents/Resources/zquest'
303+
binaries['zq'] = find_path(zc_app_path / 'Contents/Resources', ['zeditor', 'zquest'])
304304
binaries['zl'] = zc_app_path / 'Contents/MacOS/zlauncher'
305305
elif channel == 'windows':
306306
binaries['zc'] = find_path(dir, ['zplayer.exe', 'zelda.exe'])
307-
binaries['zq'] = dir / 'zquest.exe'
307+
binaries['zq'] = find_path(dir, ['zeditor.exe', 'zquest.exe'])
308308
binaries['zl'] = dir / 'zlauncher.exe'
309309
elif channel == 'linux':
310310
binaries['zc'] = find_path(dir, ['zplayer', 'zelda'])
311-
binaries['zq'] = dir / 'zquest'
311+
binaries['zq'] = find_path(dir, ['zeditor', 'zquest'])
312312
binaries['zl'] = dir / 'zlauncher'
313313

314314
return binaries

scripts/build_emscripten.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ bash ../web/patches/apply.sh
198198
embuilder build sdl2-mt
199199
embuilder build sdl2_mixer_mid
200200

201-
TARGETS="${@:-zplayer zquest zscript}"
201+
TARGETS="${@:-zplayer zeditor zscript}"
202202
cmake --build . --config $CONFIG -t $TARGETS
203203
cd $CONFIG
204204

@@ -260,13 +260,14 @@ if [[ "${TARGETS[*]}" =~ "zplayer" ]]; then
260260
sed -i -e 's/__IS_CI__/false/' zelda.html
261261
fi
262262
fi
263-
if [[ "${TARGETS[*]}" =~ "zquest" ]]; then
263+
if [[ "${TARGETS[*]}" =~ "zeditor" ]]; then
264264
cp ../../web/index.html zquest.html
265265
sed -i -e 's/__TARGET__/zquest/' zquest.html
266266
sed -i -e 's|__DATA__|<script src="zc.data.js"></script><script src="zq.data.js"></script>|' zquest.html
267267
sed -i -e 's|__SCRIPT__|<script async src="zquest.js"></script>|' zquest.html
268268
set_files zquest.html
269269
insert_css zquest.html
270+
mv zeditor.js zquest.js
270271
if [[ "$ZC_PACKAGE_REPLAYS" ]]; then
271272
sed -i -e 's/__IS_CI__/true/' zquest.html
272273
else

scripts/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def do_packaging(package_dir: Path, files, include_licenses=False):
243243
if not args.skip_binaries:
244244
files.extend([
245245
binary_file(build_dir / 'zplayer'),
246-
binary_file(build_dir / 'zquest'),
246+
binary_file(build_dir / 'zeditor'),
247247
binary_file(build_dir / 'zscript'),
248248
binary_file(build_dir / 'zlauncher'),
249249
binary_file(build_dir / 'zconsole') if system == 'Windows' else None,

scripts/package_mac.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ python scripts/package.py --build_folder "$build_dir" --skip_archive
2525
# Set SKIP_APP_BUNDLE=1 to skip building an osx application bundle.
2626
# This won't be able to distribute easily, because OSX will prevent users from running
2727
# unverified binaries unless they right-click->Open and ignore a scary warning. Even then,
28-
# when zlauncher/zquest opens other ZC processes OSX will prevent it without a way to ignore
28+
# when zlauncher/zeditor opens other ZC processes OSX will prevent it without a way to ignore
2929
# the intervention, so some features won't work.
3030
if test "${SKIP_APP_BUNDLE+x}"; then
3131
rm -rf "$mac_package_dir"
@@ -70,7 +70,7 @@ find "$contents/Resources" -name "*.dylib" -exec mv {} "$tmp_libs_dir" \;
7070

7171
# Correct the library paths in the executable, and codesign.
7272
dylibbundler -od -b -d "$contents/libs/" -s "$tmp_libs_dir" \
73-
-x "$contents/Resources/zlauncher" -x "$contents/Resources/zquest" \
73+
-x "$contents/Resources/zlauncher" -x "$contents/Resources/zeditor" \
7474
-x "$contents/Resources/zplayer" -x "$contents/Resources/zscript" \
7575
-x "$contents/Resources/zupdater"
7676
rm -rf "$tmp_libs_dir"
@@ -82,7 +82,7 @@ if test "${PACKAGE_DEBUG_INFO+x}"; then
8282
xcrun dsymutil \
8383
"$contents/Resources/zlauncher" \
8484
"$contents/Resources/zplayer" \
85-
"$contents/Resources/zquest" \
85+
"$contents/Resources/zeditor" \
8686
"$contents/Resources/zscript" \
8787
"$contents/Resources/zupdater" \
8888
$(find "$contents/libs" -name '*.dylib' -type f -printf "\"%p\" ") \

scripts/run_target.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def get_build_folder():
8484
root_dir / 'build/Release',
8585
root_dir / 'build/Debug',
8686
]
87-
targets = [get_exe_name(x) for x in ['zplayer', 'zquest', 'zlauncher', 'zscript', 'zupdater']]
87+
targets = [get_exe_name(x) for x in ['zplayer', 'zeditor', 'zlauncher', 'zscript', 'zupdater']]
8888
def get_mtime(path: Path):
8989
if path.exists():
9090
return path.stat().st_mtime
@@ -178,7 +178,7 @@ def _run(target_name: str, args: List, build_folder: Optional[str] = None):
178178

179179
def run(target_name: str, args: List, build_folder: Optional[Path] = None, **kwargs):
180180
"""
181-
Runs target (ex: zplayer, zscript, zquest, zlauncher), from env.BUILD_FOLDER or the provided build_folder.
181+
Runs target (ex: zplayer, zeditor, zscript, zlauncher), from env.BUILD_FOLDER or the provided build_folder.
182182
183183
Returns subprocess.CompletedProcess[str], even if command fails.
184184

src/EditboxView.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ extern int32_t scheme[];
1717
extern volatile int32_t myvsync;
1818
void update_hw_screen(bool force);
1919

20-
extern bool is_zquest();
20+
extern bool is_editor();
2121

2222
void EditboxView::update()
2323
{

src/base/process_management.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ static uint32_t __dummy_;
2222

2323
#ifdef _WIN32
2424
#define ZPLAYER_FILE "zplayer.exe"
25-
#define ZQUEST_FILE "zquest.exe"
25+
#define ZEDITOR_FILE "zeditor.exe"
2626
#define ZSCRIPT_FILE "zscript.exe"
2727
#define ZLAUNCHER_FILE "zlauncher.exe"
2828
#define ZUPDATER_FILE "zupdater.exe"
2929
#define PYTHON "pythonw"
3030
#else
3131
#define ZPLAYER_FILE "./zplayer"
32-
#define ZQUEST_FILE "./zquest"
32+
#define ZEDITOR_FILE "./zeditor"
3333
#define ZSCRIPT_FILE "./zscript"
3434
#define ZLAUNCHER_FILE "./zlauncher"
3535
#define ZUPDATER_FILE "./zupdater"

0 commit comments

Comments
 (0)