Skip to content

Commit 1e6baa1

Browse files
committed
This is vAmiga 2.6.1
1 parent bea19de commit 1e6baa1

File tree

6 files changed

+23
-71
lines changed

6 files changed

+23
-71
lines changed

Emulator/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Version number
1717
#define VER_MAJOR 2
1818
#define VER_MINOR 6
19-
#define VER_SUBMINOR 0
19+
#define VER_SUBMINOR 1
2020
#define VER_BETA 0
2121

2222
// Snapshot version number

GUI/MyController.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,19 +186,16 @@ extension MyController {
186186
renderer = Renderer(view: metal,
187187
device: MTLCreateSystemDefaultDevice()!,
188188
controller: self)
189-
190-
// Apply all GUI related user defaults
191-
pref.applyUserDefaults()
192-
config.applyUserDefaults()
193189

194190
// Setup window
195191
configureWindow()
196192

197193
// Launch the emulator
198194
launch()
199195

200-
// Add media file (if provided on startup)
201-
mydocument.addMedia()
196+
// Apply all GUI related user defaults
197+
pref.applyUserDefaults()
198+
config.applyUserDefaults()
202199

203200
do {
204201
// Switch the Amiga on
@@ -220,6 +217,9 @@ extension MyController {
220217
}
221218
}
222219

220+
// Add media file (if provided on startup)
221+
if let url = mydocument.launchUrl { try? mydocument.addMedia(url: url) }
222+
223223
// Create speed monitor
224224
speedometer = Speedometer()
225225

GUI/MyDocument.swift

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ class MyDocument: NSDocument {
131131

132132
debug(.media)
133133

134+
launchUrl = url
135+
136+
/*
134137
let types: [FileType] =
135138
[ .SNAPSHOT, .SCRIPT, .ADF, .EADF, .HDF, .IMG, .ST, .DMS, .EXE, .DIR ]
136139

@@ -141,20 +144,18 @@ class MyDocument: NSDocument {
141144

142145
throw NSError(error: error)
143146
}
147+
*/
144148
}
145149

146150
override open func revert(toContentsOf url: URL, ofType typeName: String) throws {
147151

148152
debug(.media)
149153

150154
do {
151-
let proxy = try createFileProxy(from: url, allowedTypes: [.SNAPSHOT])
152-
if let snapshot = proxy as? SnapshotProxy {
153-
try processSnapshotFile(snapshot)
154-
}
155-
155+
try addMedia(url: url, allowedTypes: [.SNAPSHOT])
156+
156157
} catch let error as VAError {
157-
158+
158159
throw NSError(error: error)
159160
}
160161
}
@@ -186,13 +187,6 @@ class MyDocument: NSDocument {
186187
// Handling media files
187188
//
188189

189-
func addMedia() {
190-
191-
if let url = launchUrl {
192-
try? addMedia(url: url)
193-
}
194-
}
195-
196190
func addMedia(url: URL,
197191
allowedTypes types: [FileType] = FileType.all,
198192
df: Int = 0,

Proxy/TypeExtensions.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,18 @@ extension EventSlot: CustomStringConvertible {
6262
}
6363

6464
extension FileType {
65-
65+
6666
init?(url: URL?) {
6767
self = url == nil ? .UNKNOWN : AmigaFileProxy.type(of: url)
6868
}
6969

7070
static var all: [FileType] {
7171
return [ .SNAPSHOT, .SCRIPT, .ADF, .EADF, .HDF, .IMG, .DMS, .EXE, .DIR ]
7272
}
73+
74+
static var draggable: [FileType] {
75+
return [ .SNAPSHOT, .SCRIPT, .ADF, .EADF, .HDF, .IMG, .DMS, .EXE, .DIR ]
76+
}
7377
}
7478

7579
extension FSVolumeType: CustomStringConvertible {

vAmiga.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@
27942794
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
27952795
CODE_SIGN_STYLE = Manual;
27962796
COMBINE_HIDPI_IMAGES = YES;
2797-
CURRENT_PROJECT_VERSION = 240627;
2797+
CURRENT_PROJECT_VERSION = 240628;
27982798
DEAD_CODE_STRIPPING = YES;
27992799
DEVELOPMENT_TEAM = "";
28002800
ENABLE_APP_SANDBOX = NO;
@@ -2815,7 +2815,7 @@
28152815
"@executable_path/../Frameworks",
28162816
);
28172817
MACOSX_DEPLOYMENT_TARGET = 11.0;
2818-
MARKETING_VERSION = 2.6;
2818+
MARKETING_VERSION = 2.6.1;
28192819
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 c++20";
28202820
PRODUCT_BUNDLE_IDENTIFIER = dirkwhoffmann.vAmiga;
28212821
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -2844,7 +2844,7 @@
28442844
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
28452845
CODE_SIGN_STYLE = Manual;
28462846
COMBINE_HIDPI_IMAGES = YES;
2847-
CURRENT_PROJECT_VERSION = 240627;
2847+
CURRENT_PROJECT_VERSION = 240628;
28482848
DEAD_CODE_STRIPPING = YES;
28492849
DEVELOPMENT_TEAM = "";
28502850
ENABLE_APP_SANDBOX = NO;
@@ -2863,7 +2863,7 @@
28632863
);
28642864
LLVM_LTO = YES_THIN;
28652865
MACOSX_DEPLOYMENT_TARGET = 11.0;
2866-
MARKETING_VERSION = 2.6;
2866+
MARKETING_VERSION = 2.6.1;
28672867
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 c++20";
28682868
PRODUCT_BUNDLE_IDENTIFIER = dirkwhoffmann.vAmiga;
28692869
PRODUCT_NAME = "$(TARGET_NAME)";

vAmiga.xcodeproj/xcuserdata/hoff.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -181,51 +181,5 @@
181181
landmarkType = "7">
182182
</BreakpointContent>
183183
</BreakpointProxy>
184-
<BreakpointProxy
185-
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
186-
<BreakpointContent
187-
uuid = "FA4E6262-6A0C-4C1F-A83A-B86C42D59C09"
188-
shouldBeEnabled = "Yes"
189-
ignoreCount = "0"
190-
continueAfterRunningActions = "No"
191-
filePath = "Emulator/Components/Amiga.cpp"
192-
startingColumnNumber = "9223372036854775807"
193-
endingColumnNumber = "9223372036854775807"
194-
startingLineNumber = "130"
195-
endingLineNumber = "130"
196-
landmarkName = "Amiga::reset(hard)"
197-
landmarkType = "7">
198-
<Locations>
199-
<Location
200-
uuid = "FA4E6262-6A0C-4C1F-A83A-B86C42D59C09 - 68f9eb612d69a278"
201-
shouldBeEnabled = "Yes"
202-
ignoreCount = "0"
203-
continueAfterRunningActions = "No"
204-
symbolName = "vamiga::Amiga::reset(bool)"
205-
moduleName = "vAmiga"
206-
usesParentBreakpointCondition = "Yes"
207-
urlString = "file:///Users/hoff/Retro/vAmiga/Emulator/Components/Amiga.cpp"
208-
startingColumnNumber = "9223372036854775807"
209-
endingColumnNumber = "9223372036854775807"
210-
startingLineNumber = "130"
211-
endingLineNumber = "130">
212-
</Location>
213-
<Location
214-
uuid = "FA4E6262-6A0C-4C1F-A83A-B86C42D59C09 - 8e520e09464a4cea"
215-
shouldBeEnabled = "Yes"
216-
ignoreCount = "0"
217-
continueAfterRunningActions = "No"
218-
symbolName = "vamiga::Amiga::reset(bool)::$_0::operator()(vamiga::CoreComponent*) const"
219-
moduleName = "vAmiga"
220-
usesParentBreakpointCondition = "Yes"
221-
urlString = "file:///Users/hoff/Retro/vAmiga/Emulator/Components/Amiga.cpp"
222-
startingColumnNumber = "9223372036854775807"
223-
endingColumnNumber = "9223372036854775807"
224-
startingLineNumber = "130"
225-
endingLineNumber = "130">
226-
</Location>
227-
</Locations>
228-
</BreakpointContent>
229-
</BreakpointProxy>
230184
</Breakpoints>
231185
</Bucket>

0 commit comments

Comments
 (0)