Skip to content

Commit

Permalink
macOS: Use new core components
Browse files Browse the repository at this point in the history
  • Loading branch information
ShendoXT committed Oct 11, 2024
1 parent 77d16ef commit 37cec53
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -362,3 +362,5 @@ MigrationBackup/
# Fody - auto-generated XML schema
FodyWeavers.xsd
/MemcardRex/.DS_Store
.DS_Store
MemcardRex.macOS/Resources/.DS_Store
1 change: 1 addition & 0 deletions MemcardRex.macOS/macOS/GUI/InfoDialogController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Drawing;
using Foundation;
using AppKit;
using MemcardRex.Core;

namespace MemcardRex
{
Expand Down
4 changes: 2 additions & 2 deletions MemcardRex.macOS/macOS/GUI/PreferencesViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public override void ViewWillAppear()
//Read program settings
iconPopup.SelectItem(iconPopup.ItemAtIndex(App.appSettings.IconBackgroundColor));
formatPopup.SelectItem(formatPopup.ItemAtIndex(App.appSettings.FormatType));
speedPopup.SelectItem(speedPopup.ItemAtIndex(App.appSettings.CommunicationSpeed));
//speedPopup.SelectItem(speedPopup.ItemAtIndex(App.appSettings.CommunicationSpeed));
cardPopup.SelectItem(cardPopup.ItemAtIndex(App.appSettings.CardSlot));

addressInput.StringValue = App.appSettings.RemoteCommAddress;
Expand Down Expand Up @@ -65,7 +65,7 @@ void ConfirmDialog(NSObject sender)
//Save program settings
App.appSettings.IconBackgroundColor = (int) iconPopup.IndexOfSelectedItem;
App.appSettings.FormatType = (int) formatPopup.IndexOfSelectedItem;
App.appSettings.CommunicationSpeed = (int)speedPopup.IndexOfSelectedItem;
//App.appSettings.CommunicationSpeed = (int)speedPopup.IndexOfSelectedItem;
App.appSettings.CardSlot = (int)cardPopup.IndexOfSelectedItem;

if (addressInput.StringValue != "")
Expand Down
2 changes: 1 addition & 1 deletion MemcardRex.macOS/macOS/GUI/ViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public void InitHardwareCommunication(int deviceId, int deviceMode, int commMode
//Send either serial port data or address data from TCP
if (deviceMode == (int)HardwareInterface.Modes.serial)
{
errMsg = hardInterface.Start(App.appSettings.CommunicationPort, App.appSettings.CommunicationSpeed);
errMsg = hardInterface.Start(App.appSettings.CommunicationPort, 0);
}
else
{
Expand Down
1 change: 1 addition & 0 deletions MemcardRex.macOS/macOS/TableDataClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Foundation;
using System.Collections.Generic;
using System.Drawing;
using MemcardRex.Core;

namespace MemcardRex
{
Expand Down

0 comments on commit 37cec53

Please sign in to comment.