summaryrefslogtreecommitdiff
path: root/app/mac/main.mm
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-01-30 16:43:06 +0100
committerHannes Schulze <haschu0103@outlook.de>2025-01-31 00:02:26 +0100
commit307e07d6513f9524b7fcab5134494bd175465cd1 (patch)
treece025db2ea998bdcd8980a0ed443083f0daf8d35 /app/mac/main.mm
parent5959349f341a2380c0c3f41ec40a1e8e0d969d00 (diff)
handle input devices in the c++ application
Diffstat (limited to 'app/mac/main.mm')
-rw-r--r--app/mac/main.mm10
1 files changed, 1 insertions, 9 deletions
diff --git a/app/mac/main.mm b/app/mac/main.mm
index 4e96cea..55e00b1 100644
--- a/app/mac/main.mm
+++ b/app/mac/main.mm
@@ -5,14 +5,6 @@
int main(int argc, char** argv)
{
- if (argc != 2)
- {
- std::cerr << "Usage: " << argv[0] << " <rom-path>" << std::endl;
- return 1;
- }
-
- auto filePath = [NSString stringWithUTF8String:argv[1]];
-
auto app = [NSApplication sharedApplication];
[app setActivationPolicy:NSApplicationActivationPolicyRegular];
@@ -33,7 +25,7 @@ int main(int argc, char** argv)
[mainMenu addItem:item];
[app setMainMenu:mainMenu];
- auto viewController = [[ViewController alloc] initWithFilePath:filePath];
+ auto viewController = [[ViewController alloc] init];
auto window = [NSWindow windowWithContentViewController:viewController];
[window setTitle:@"NES"];
[window setContentAspectRatio:[viewController minimumDisplaySize]];