Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion Sources/Demos/DemoUtils/DemoUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
.deletingLastPathComponent()
.deletingLastPathComponent()
.deletingLastPathComponent()
.appendingPathComponent("Tests/UntoldEngineRenderTests/Resources")
.appendingPathComponent("Tests/UntoldEngineRenderTests/Resources/GameData")
}

// MARK: - Engine Configuration
Expand Down
4 changes: 4 additions & 0 deletions Tests/UntoldEngineRenderTests/BaseRenderSetup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ class BaseRenderSetup: XCTestCase {
resetGlobalEngineState()
ambientIntensity = 0.4

// SwiftPM's `.process("Resources")` flattens the whole Resources/ tree (including
// GameData/) into the bundle root -- there is no GameData subfolder to offset into
// here. getResourceURL()'s flat-bundle fallback already resolves names against
// assetBasePath directly, so point it straight at the bundle root.
let bundleURL = Bundle.module.resourceURL
assetBasePath = bundleURL

Expand Down
Loading
Loading