ref: move files to dedicated res folder

This commit is contained in:
relikd
2026-01-28 12:44:43 +01:00
parent 1af81e5b4a
commit b6eaa8d3c4
17 changed files with 7 additions and 8 deletions

Binary file not shown.

View File

@@ -72,7 +72,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
// if run via .app bundle
return Bundle.main.url(forResource: name, withExtension: ext)
// if calling swift directly
?? URL(fileURLWithPath: #file + "/../../" + name + (ext == nil ? "" : ("." + ext!)))
?? URL(fileURLWithPath: #file + "/../../res/" + name + (ext == nil ? "" : ("." + ext!)))
}
// MARK: - Manage storage path
@@ -268,7 +268,7 @@ struct Entry {
}
}
extension Entry : Comparable {
extension Entry: Comparable {
static func < (lhs: Entry, rhs: Entry) -> Bool {
return (lhs.order, lhs.title) < (rhs.order, rhs.title)
}