Skip to content

Commit

Permalink
Add new 86Box machines
Browse files Browse the repository at this point in the history
  • Loading branch information
Moonif committed Dec 29, 2023
1 parent 5a9737b commit ff6be09
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MacBox.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.3.7;
MARKETING_VERSION = 0.3.8;
PRODUCT_BUNDLE_IDENTIFIER = Moonif.MacBox;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -414,7 +414,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.3.7;
MARKETING_VERSION = 0.3.8;
PRODUCT_BUNDLE_IDENTIFIER = Moonif.MacBox;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
5 changes: 5 additions & 0 deletions MacBox/Data/namedefs.inf
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,11 @@ thunderbolt=Micronics Thunderbolt
gw2kvenus=Gateway 2000 Venus
m773=PC Chips M773
super286c=Hyundai Super286C
nec_mate_unk=NEC Mate NX MA30D/23D
dell_430vx=Dell Hannibal+
lgibm440fx=LG IBM Multinet x61 (MSI MS-6106)
mate_nx_ma30d_23d=NEC Mate NX MA30D/23D
lc500j34dr=NEC LaVie C PC-LC500J34DR

[cpu_family]
8088=Intel 8088
Expand Down
8 changes: 7 additions & 1 deletion MacBox/ViewControllers/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ class MainViewController: NSViewController {
vmAppVersionPopUpButton.selectItem(at: 1)
}

if vmList[selectedVM].fullScreen != nil && vmList[selectedVM].fullScreen == true {
if vmList[selectedVM].fullScreen != nil && vmList[selectedVM].fullScreen! {
vmAppVersionPopUpButton.itemArray[3].state = .on
}
else {
Expand Down Expand Up @@ -918,6 +918,10 @@ extension MainViewController: NSTableViewDelegate, NSTableViewDataSource {

// Set drag and drop for table cells
func tableView(_ tableView: NSTableView, pasteboardWriterForRow row: Int) -> NSPasteboardWriting? {
let indexSet = IndexSet(integer: row)
vmsTableView.selectRowIndexes(indexSet, byExtendingSelection: false)
selectTableRow(row: row)

let item = NSPasteboardItem()
item.setString(String(row), forType: self.dragDropType)
return item
Expand Down Expand Up @@ -952,6 +956,7 @@ extension MainViewController: NSTableViewDelegate, NSTableViewDataSource {
vmList.insert(vm, at: row - 1)
// Move and animate table view cell
tableView.moveRow(at: oldIndex + oldIndexOffset, to: row - 1)
currentSelectedVM = row - 1
oldIndexOffset -= 1
}
else {
Expand All @@ -960,6 +965,7 @@ extension MainViewController: NSTableViewDelegate, NSTableViewDataSource {
vmList.insert(vm, at: row + newIndexOffset)
// Move and animate table view cell
tableView.moveRow(at: oldIndex, to: row + newIndexOffset)
currentSelectedVM = row + newIndexOffset
newIndexOffset += 1
}
}
Expand Down

0 comments on commit ff6be09

Please sign in to comment.