Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Dec 4, 2024
1 parent 2398055 commit 5410b21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion binding/ios/Eagle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class Eagle: EagleBase {
var modelPathArg = modelPath

if modelPath == nil {
modelPathArg = Eagle.resourceBundle.path(forResource: "eagle_params", ofType: "pv")
modelPathArg = EagleBase.resourceBundle.path(forResource: "eagle_params", ofType: "pv")
if modelPathArg == nil {
throw EagleIOError("Could not find default model file in app bundle.")
}
Expand Down
2 changes: 1 addition & 1 deletion binding/ios/EagleBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class EagleBase {
#else

static let resourceBundle: Bundle = {
let myBundle = Bundle(for: Eagle.self)
let myBundle = Bundle(for: EagleBase.self)

guard let resourceBundleURL = myBundle.url(
forResource: "EagleResources", withExtension: "bundle")
Expand Down
2 changes: 1 addition & 1 deletion binding/ios/EagleProfiler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class EagleProfiler: EagleBase {
var modelPathArg = modelPath

if modelPath == nil {
modelPathArg = EagleProfiler.resourceBundle.path(forResource: "eagle_params", ofType: "pv")
modelPathArg = EagleBase.resourceBundle.path(forResource: "eagle_params", ofType: "pv")
if modelPathArg == nil {
throw EagleIOError("Could not find default model file in app bundle.")
}
Expand Down

0 comments on commit 5410b21

Please sign in to comment.