Skip to content

Commit

Permalink
profile: NeXT
Browse files Browse the repository at this point in the history
  • Loading branch information
erichelgeson committed Sep 28, 2024
1 parent 1dacc86 commit abc08bb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static bool isValidMacintoshImage(image_config_t *img)
return result;
}

// Called from BlueSCSI_disk after image is initalized.
// Called from BlueSCSI_disk after image is initialized.
void platformConfigHook(image_config_t *img)
{
if(ini_getbool("SCSI", "DisableConfigHook", false, CONFIGFILE))
Expand All @@ -94,7 +94,7 @@ void platformConfigHook(image_config_t *img)
debuglog("---- Valid Macintosh Device Image detected.");
}
}
// Macintosh hosts reserve ID 7, so warn the user this configuration wont work
// Macintosh hosts reserve ID 7, so warn the user this configuration won't work
if((img->scsiId & S2S_CFG_TARGET_ID_BITS) == 7)
{
log("---- WARNING: Quirks set to Apple so can not use SCSI ID 7!");
Expand Down
2 changes: 1 addition & 1 deletion src/BlueSCSI_disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ static void scsiDiskConfigDefaults(int target_idx)
}

// Load values for target configuration from given section if they exist.
// Otherwise keep current settings.
// Otherwise, keep current settings.
static void scsiDiskLoadConfig(int target_idx, const char *section)
{
image_config_t &img = g_DiskImages[target_idx];
Expand Down
11 changes: 9 additions & 2 deletions src/BlueSCSI_presets.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "BlueSCSI_presets.h"
#include "BlueSCSI_config.h"
#include "BlueSCSI_disk.h"
#include "BlueSCSI_log.h"
#include "BlueSCSI_config.h"
#include <strings.h>

// Helper function for case-insensitive string compare
Expand Down Expand Up @@ -59,9 +59,16 @@ preset_config_t getSystemPreset(const char *presetName)
cfg.presetName = "X68000";
cfg.selectionDelay = 0;
cfg.quirks = S2S_CFG_QUIRKS_X68000;
cfg.enableSCSI2 = 0;
cfg.enableSCSI2 = false;
cfg.maxSyncSpeed = 5;
}
else if (strequals(presetName, "NeXT"))
{
cfg.presetName = "NeXT";
cfg.quirks = S2S_CFG_QUIRKS_NONE;
cfg.sectorsPerTrack = 139;
cfg.headsPerCylinder = 4;
}
else
{
log("Unknown preset name ", presetName, ", using default settings");
Expand Down

0 comments on commit abc08bb

Please sign in to comment.