mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Add agnes NES emulator (very slow).
Add -W <n> -H <n> width and height options to host-sdl
This commit is contained in:
parent
2e90bfa812
commit
035608b04a
14 changed files with 3491 additions and 3 deletions
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
#include "../common/uvm32_common_custom.h"
|
||||
|
||||
#define WIDTH 320
|
||||
#define HEIGHT 200
|
||||
int WIDTH = 320;
|
||||
int HEIGHT = 200;
|
||||
|
||||
#define WINDOW_WIDTH WIDTH*3
|
||||
#define WINDOW_HEIGHT HEIGHT*3
|
||||
|
|
@ -177,7 +177,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
// parse commandline args
|
||||
while ((c = getopt(argc, argv, "hi:e:")) != -1) {
|
||||
while ((c = getopt(argc, argv, "hi:e:W:H:")) != -1) {
|
||||
switch(c) {
|
||||
case 'h':
|
||||
usage(argv[0]);
|
||||
|
|
@ -191,6 +191,12 @@ int main(int argc, char *argv[]) {
|
|||
case 'e':
|
||||
extram_len = strtoll(optarg, NULL, 10);
|
||||
break;
|
||||
case 'W':
|
||||
WIDTH = strtoll(optarg, NULL, 10);
|
||||
break;
|
||||
case 'H':
|
||||
HEIGHT = strtoll(optarg, NULL, 10);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (optind < argc) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue