Skip to content

Instantly share code, notes, and snippets.

@7shi
Created February 11, 2016 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 7shi/0f4721fc510087c8458d to your computer and use it in GitHub Desktop.
Save 7shi/0f4721fc510087c8458d to your computer and use it in GitHub Desktop.
A patch for vax_interpreter
diff -ur vax_interpreter.orig/FileItem.java vax_interpreter/FileItem.java
--- vax_interpreter/FileItem.java 2016-01-10 15:41:00.658583200 +0900
+++ /d/vsprojs/vaxrun/src/vax_interpreter/FileItem.java 2016-02-11 13:21:43.405655200 +0900
@@ -113,7 +113,7 @@
// If file mode is read-only, it will be failed.
if (isCreatedNewFile) {
if (!Kernel.Sysent.setFileMode(file, fmode)) {
- throw new RuntimeException();
+ //throw new RuntimeException();
}
}
return fItem;
diff -ur vax_interpreter.orig/Kernel.java vax_interpreter/Kernel.java
--- vax_interpreter/Kernel.java 2016-01-10 15:41:00.665595900 +0900
+++ /d/vsprojs/vaxrun/src/vax_interpreter/Kernel.java 2016-02-11 13:21:43.419681000 +0900
@@ -18,7 +18,7 @@
static String rootPath;
static {
String classPath = Thread.currentThread().getContextClassLoader().getResource("").getPath();
- rootPath = Paths.get(classPath, "root").toString();
+ rootPath = new File(classPath, "root").getPath();
}
public static void syscall(int code, Context context) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment