Skip to content

Commit cd55a4c

Browse files
authored
Merge pull request #7 from craigthomas/codacy-updates
Cleanup of files and incorporate Codacy analysis
2 parents d075883 + 5727552 commit cd55a4c

25 files changed

+1720
-1839
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/craigthomas/Chip8Java.svg?branch=master)](https://travis-ci.org/craigthomas/Chip8Java)
44
[![Coverage Status](https://codecov.io/gh/craigthomas/Chip8Java/branch/master/graph/badge.svg)](https://codecov.io/gh/craigthomas/Chip8Java)
5+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/51b8560fe61441a3b05b83c1e7a5eee6)](https://www.codacy.com/app/craig-thomas/Chip8Java?utm_source=github.com&utm_medium=referral&utm_content=craigthomas/Chip8Java&utm_campaign=Badge_Grade)
56
[![Dependency Status](https://www.versioneye.com/user/projects/55ef3f691e87ad001900006a/badge.svg?style=flat)](https://www.versioneye.com/user/projects/55ef3f691e87ad001900006a)
67

78
## What is it?
@@ -55,7 +56,7 @@ The compiled Jar file will be placed in the `build/libs` directory.
5556
The command-line interface currently requires a single argument, which
5657
is the full path to a Chip 8 ROM:
5758

58-
java -jar build/libs/emulator-1.0.jar /path/to/rom/filename
59+
java -jar build/libs/emulator-1.0-all.jar /path/to/rom/filename
5960

6061
This will start the emulator with the specified ROM.
6162

@@ -64,7 +65,7 @@ This will start the emulator with the specified ROM.
6465
The `-s` switch will scale the size of the window (the original size
6566
at 1x scale is 64 x 32):
6667

67-
java -jar build/libs/emulator-1.0.jar /path/to/rom/filename -s 10
68+
java -jar build/libs/emulator-1.0-all.jar /path/to/rom/filename -s 10
6869

6970
The command above will scale the window so that it is 10 times the normal
7071
size.
@@ -74,7 +75,7 @@ size.
7475
You may also wish to experiment with the `-d` switch, which instructs
7576
the emulator to add a delay to every operation that is executed. For example,
7677

77-
java -jar build/libs/emulator-1.0.jar /path/to/rom/filename -d 10
78+
java -jar build/libs/emulator-1.0-all.jar /path/to/rom/filename -d 10
7879

7980
The command above will add a 10 ms delay to every opcode that is executed.
8081
This is useful for very fast computers (note that it is difficult to find
@@ -88,7 +89,7 @@ You can also ask the emulator to start in debug mode, where each
8889
instruction is disassembled and displayed in the bottom left hand corner
8990
of the screen on a semi-transparent overlay. To do this:
9091

91-
java -jar build/libs/emulator-1.0.jar /path/to/rom/filename -t
92+
java -jar build/libs/emulator-1.0-all.jar /path/to/rom/filename -t
9293

9394
## Keys
9495

build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,21 @@ apply plugin: 'jacoco'
33
apply plugin: 'application'
44
apply plugin: 'com.github.johnrengelman.shadow'
55

6-
mainClassName = 'com.chip8java.emulator.Runner'
6+
mainClassName = 'com.chip8java.emulator.runner.Runner'
77

88
group = 'com.chip8java'
99
version = '1.0'
1010

1111
description = 'A Chip 8 emulator'
1212

13-
sourceCompatibility = 1.7
14-
targetCompatibility = 1.7
13+
sourceCompatibility = 1.8
1514

1615
repositories {
1716
mavenCentral()
1817
}
1918

2019
dependencies {
21-
compile 'commons-cli:commons-cli:1.4'
20+
compile 'com.beust:jcommander:1.72'
2221
compile 'commons-io:commons-io:2.6'
2322
testCompile 'org.mockito:mockito-all:1.10.19'
2423
testCompile 'junit:junit:4.12'
@@ -31,7 +30,7 @@ buildscript {
3130
}
3231

3332
dependencies {
34-
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0'
33+
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
3534
}
3635
}
3736

src/com/chip8java/emulator/Runner.java

Lines changed: 0 additions & 129 deletions
This file was deleted.

0 commit comments

Comments
 (0)