Skip to content

Commit

Permalink
This is VirtualC64 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Jul 21, 2024
1 parent e21612a commit af75f62
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions Emulator/Components/C64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,7 @@ C64::loadRom(const MediaFile &file)
break;

default:

throw Error(ERROR_FILE_TYPE_MISMATCH);
}
}
Expand Down
4 changes: 2 additions & 2 deletions Emulator/Peripherals/Network/RS232.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ RS232::readIncomingPrintableByte()
while (1) {

auto byte = readIncomingByte();
if (byte == -1 || isprint(byte) || byte == '\n') return byte;
if (byte == -1 || isprint(byte) || byte == '\n' || byte == '\r') return byte;
}
}
}
Expand All @@ -194,7 +194,7 @@ RS232::readOutgoingPrintableByte()
while (1) {

auto byte = readOutgoingByte();
if (byte == -1 || isprint(byte) || byte == '\n') return byte;
if (byte == -1 || isprint(byte) || byte == '\n' || byte == '\r') return byte;
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion Emulator/VirtualC64.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace vc64 {
using peddle::Guard;

//
// Public API
// Base class for all APIs
//

class API {
Expand All @@ -38,6 +38,8 @@ class API {
void suspend();
void resume();

protected:

bool isUserThread() const;
};

Expand Down
6 changes: 3 additions & 3 deletions Emulator/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
#define VER_MAJOR 5
#define VER_MINOR 0
#define VER_SUBMINOR 0
#define VER_BETA 7
#define VER_BETA 0

// Snapshot version number
#define SNP_MAJOR 5
#define SNP_MINOR 0
#define SNP_SUBMINOR 0
#define SNP_BETA 7
#define SNP_BETA 0

// Uncomment these settings in a release build
// #define RELEASEBUILD
#define RELEASEBUILD


//
Expand Down
2 changes: 0 additions & 2 deletions GUI/MediaManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ class MediaManager {
var document: MyDocument!
var emu: EmulatorProxy? { return document.emu }
var controller: MyController { return document.parent }

// Computed references
var console: Console { return controller.renderer.console }

// Shared list of recently inserted tapes
Expand Down
2 changes: 1 addition & 1 deletion GUI/Panels/Inspector/GuardTableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class BreakTableView: GuardTableView {
inspector.fullRefresh()
}

if (col == 0 || col == 1) {
if col == 0 || col == 1 {

// Jump to breakpoint address
inspector.fullRefresh()
Expand Down
2 changes: 1 addition & 1 deletion Proxy/EmulatorProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ using namespace vc64;
@class DriveProxy;
@class ExpansionPortProxy;
@class FileSystemProxy;
@class G64FileProxy;
@class SerialPortProxy;
@class JoystickProxy;
@class KeyboardProxy;
Expand Down Expand Up @@ -674,6 +673,7 @@ struct GuardInfo {

+ (FileType) typeOfUrl:(NSURL *)url;

+ (instancetype)make:(MediaFile *)file;
+ (instancetype)makeWithFile:(NSString *)path exception:(ExceptionWrapper *)ex;
+ (instancetype)makeWithFile:(NSString *)path type:(FileType)t exception:(ExceptionWrapper *)ex;
+ (instancetype)makeWithBuffer:(const void *)buf length:(NSInteger)len type:(FileType)t exception:(ExceptionWrapper *)ex;
Expand Down
8 changes: 4 additions & 4 deletions Proxy/EmulatorProxy.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1221,14 +1221,14 @@ - (MediaFile *)file
return (MediaFile *)obj;
}

+ (instancetype)make:(MediaFile *)file
+ (FileType)typeOfUrl:(NSURL *)url
{
return file ? [[self alloc] initWith:file] : nil;
return MediaFile::type([url fileSystemRepresentation]);
}

+ (FileType)typeOfUrl:(NSURL *)url
+ (instancetype)make:(MediaFile *)file
{
return MediaFile::type([url fileSystemRepresentation]);
return file ? [[self alloc] initWith:file] : nil;
}

+ (instancetype)makeWithFile:(NSString *)path
Expand Down
8 changes: 4 additions & 4 deletions VirtualC64.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2860,7 +2860,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 240628;
CURRENT_PROJECT_VERSION = 240721;
DEAD_CODE_STRIPPING = YES;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 3NG65ZLYW7;
Expand All @@ -2881,7 +2881,7 @@
LIBRARY_SEARCH_PATHS = "$(inherited)";
LLVM_LTO = NO;
MACOSX_DEPLOYMENT_TARGET = 13.3;
MARKETING_VERSION = 5.0b7;
MARKETING_VERSION = 5.0;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 c++20";
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
Expand All @@ -2905,7 +2905,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 240628;
CURRENT_PROJECT_VERSION = 240721;
DEAD_CODE_STRIPPING = YES;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 3NG65ZLYW7;
Expand All @@ -2927,7 +2927,7 @@
LIBRARY_SEARCH_PATHS = "$(inherited)";
LLVM_LTO = YES_THIN;
MACOSX_DEPLOYMENT_TARGET = 13.3;
MARKETING_VERSION = 5.0b7;
MARKETING_VERSION = 5.0;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 c++20";
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
Expand Down

0 comments on commit af75f62

Please sign in to comment.