Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions fast64_internal/z64/importer/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,22 @@ def parseScene(
file_path = Path(sceneFolderPath).resolve() / f"{sceneName}.c"
is_single_file = True

tried_file_paths = []
tried_file_paths.append(file_path)
Comment thread
Dragorn421 marked this conversation as resolved.
Outdated

if not file_path.exists():
file_path = Path(sceneFolderPath).resolve() / f"{sceneName}_scene_main.c"
is_single_file = False
tried_file_paths.append(file_path)

if not file_path.exists():
raise PluginError("ERROR: scene not found!")
raise PluginError(f"ERROR: scene not found at {' nor '.join(map(str, tried_file_paths))}!")

sceneData = file_path.read_text()
try:
sceneData = file_path.read_text()
except Exception:
print("file_path =", file_path)
raise
Comment thread
Yanis002 marked this conversation as resolved.

if not is_single_file:
# get the other scene files for non-single file fast64 exports
Expand Down