mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 11:51:49 +09:00
confirmed disk dma working
This commit is contained in:
BIN
assets/tsvm-default.png
Normal file
BIN
assets/tsvm-default.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 571 B |
BIN
assets/tsvm-default.tga
LFS
Normal file
BIN
assets/tsvm-default.tga
LFS
Normal file
Binary file not shown.
@@ -3,13 +3,12 @@ package net.torvald.tsvm;
|
|||||||
import com.badlogic.gdx.Gdx;
|
import com.badlogic.gdx.Gdx;
|
||||||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
|
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
|
||||||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
|
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
|
||||||
import com.badlogic.gdx.graphics.Texture;
|
|
||||||
import com.badlogic.gdx.graphics.glutils.ShaderProgram;
|
import com.badlogic.gdx.graphics.glutils.ShaderProgram;
|
||||||
import net.torvald.tsvm.peripheral.*;
|
import net.torvald.tsvm.peripheral.*;
|
||||||
|
|
||||||
public class AppLoader {
|
public class AppLoader {
|
||||||
|
|
||||||
public static String appTitle = "Totally Simple Virtual Machine";
|
public static String appTitle = "tsvm";
|
||||||
public static Lwjgl3ApplicationConfiguration appConfig;
|
public static Lwjgl3ApplicationConfiguration appConfig;
|
||||||
|
|
||||||
public static int WIDTH = 640;//810;//720;
|
public static int WIDTH = 640;//810;//720;
|
||||||
|
|||||||
@@ -73,11 +73,11 @@ internal class UnsafePtr(pointer: Long, allocSize: Long) {
|
|||||||
|
|
||||||
fun destroy() {
|
fun destroy() {
|
||||||
if (!destroyed) {
|
if (!destroyed) {
|
||||||
UnsafeHelper.unsafe.freeMemory(ptr)
|
|
||||||
|
|
||||||
println("[UnsafePtr] Destroying pointer $this; called from:")
|
println("[UnsafePtr] Destroying pointer $this; called from:")
|
||||||
printStackTrace(this)
|
printStackTrace(this)
|
||||||
|
|
||||||
|
UnsafeHelper.unsafe.freeMemory(ptr)
|
||||||
|
|
||||||
destroyed = true
|
destroyed = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user