Skip to content

Commit

Permalink
U move all resources to resources folder
Browse files Browse the repository at this point in the history
  • Loading branch information
fvarrui committed May 22, 2019
1 parent 70cbcf7 commit 67dc5b4
Show file tree
Hide file tree
Showing 16 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/fvarrui/makinito/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public class Config {

private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("fvarrui.makinito.config.config");
private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("config/config");

public static String getVersion() {
return BUNDLE.getString("makinito.version");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/fvarrui/makinito/hardware/Decoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
public class Decoder extends Component {

private static final String INSTRUCTION_SET_FILE = "/fvarrui/makinito/hardware/microcode/microcode.xml";
private static final String INSTRUCTION_SET_FILE = "/microcode/microcode.xml";

private FlagRegister flagsRegister; // registro de estado
private Register decoderInstructionRegister; // registro de instrucción del decodificador
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/fvarrui/makinito/i18n/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
public class Messages {

private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("fvarrui.makinito.i18n.messages");
private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("i18n/messages");

public static String getString(String key) {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/fvarrui/makinito/ui/resources/Icons.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Icons {
public static final ImageIcon RELOAD = loadIcon("reload-24.png");

public static ImageIcon loadIcon(String name) {
return new ImageIcon(Icons.class.getResource(name));
return new ImageIcon(Icons.class.getResource("/icons/" + name));
}

}
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.

0 comments on commit 67dc5b4

Please sign in to comment.