forked from MrCrayfish/MrCrayfishDeviceMod
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
225 changed files
with
956 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
api/src/main/java/dev/ultreon/devices/api/TextureLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package dev.ultreon.devices.api; | ||
|
||
import java.io.IOException; | ||
import java.io.InputStream; | ||
|
||
public interface TextureLoader { | ||
int load(InputStream stream) throws IOException; | ||
|
||
void destroy(int textureID); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module devices.api { | ||
requires java.base; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
group = 'dev.ultreon.mods' | ||
version = '0.9.0' | ||
|
||
base { | ||
archivesName = "devices-bios" | ||
} | ||
|
||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(17) | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'org.jetbrains:annotations:24.0.0' | ||
|
||
implementation project(':api') | ||
} |
4 changes: 2 additions & 2 deletions
4
...va/dev/ultreon/devices/api/bios/Bios.java → ...src/main/java/dev/ultreon/vbios/Bios.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ltreon/devices/api/bios/BiosCallType.java → .../java/dev/ultreon/vbios/BiosCallType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...n/devices/api/bios/BiosInterruptType.java → .../dev/ultreon/vbios/BiosInterruptType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package dev.ultreon.devices.api.bios; | ||
package dev.ultreon.vbios; | ||
|
||
public enum BiosInterruptType { | ||
DOUBLE_FAULT, | ||
|
2 changes: 1 addition & 1 deletion
2
...eon/devices/api/bios/FrameBufferCall.java → ...va/dev/ultreon/vbios/FrameBufferCall.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package dev.ultreon.devices.api.bios; | ||
package dev.ultreon.vbios; | ||
|
||
import java.nio.ByteBuffer; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...eon/devices/api/bios/FrameBufferInfo.java → ...va/dev/ultreon/vbios/FrameBufferInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package dev.ultreon.devices.api.bios; | ||
package dev.ultreon.vbios; | ||
|
||
public record FrameBufferInfo( | ||
int width, | ||
|
4 changes: 3 additions & 1 deletion
4
...treon/devices/api/bios/InterruptData.java → ...java/dev/ultreon/vbios/InterruptData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
package dev.ultreon.devices.api.bios; | ||
package dev.ultreon.vbios; | ||
|
||
public interface InterruptData { | ||
<T> T getField(String name); | ||
|
||
void setField(String name, Object value); | ||
|
||
BiosInterruptType interruptType(); | ||
} |
2 changes: 1 addition & 1 deletion
2
...on/devices/api/bios/InterruptHandler.java → ...a/dev/ultreon/vbios/InterruptHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package dev.ultreon.vbios.boot; | ||
|
||
import dev.ultreon.vbios.Bios; | ||
|
||
public interface BootSector { | ||
void boot(Bios bios); | ||
} |
2 changes: 1 addition & 1 deletion
2
...n/devices/api/bios/efi/VEFI_DeviceID.java → .../dev/ultreon/vbios/efi/VEFI_DeviceID.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package dev.ultreon.devices.api.bios.efi; | ||
package dev.ultreon.vbios.efi; | ||
|
||
import java.util.UUID; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...devices/api/bios/efi/VEFI_DeviceInfo.java → ...ev/ultreon/vbios/efi/VEFI_DeviceInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...n/devices/api/bios/efi/VEFI_DiskInfo.java → .../dev/ultreon/vbios/efi/VEFI_DiskInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../devices/api/bios/efi/VEFI_DriveType.java → ...dev/ultreon/vbios/efi/VEFI_DriveType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package dev.ultreon.devices.api.bios.efi; | ||
package dev.ultreon.vbios.efi; | ||
|
||
public enum VEFI_DriveType { | ||
HDD, | ||
|
7 changes: 7 additions & 0 deletions
7
bios/src/main/java/dev/ultreon/vbios/efi/VEFI_Executable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package dev.ultreon.vbios.efi; | ||
|
||
import dev.ultreon.vbios.Bios; | ||
|
||
public interface VEFI_Executable { | ||
void execute(Bios bios, VEFI_System system); | ||
} |
2 changes: 1 addition & 1 deletion
2
...treon/devices/api/bios/efi/VEFI_File.java → ...java/dev/ultreon/vbios/efi/VEFI_File.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package dev.ultreon.devices.api.bios.efi; | ||
package dev.ultreon.vbios.efi; | ||
|
||
public record VEFI_File(int handle) { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...n/devices/api/bios/efi/VEFI_FileInfo.java → .../dev/ultreon/vbios/efi/VEFI_FileInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ultreon/devices/api/bios/VEFI_Handle.java → ...va/dev/ultreon/vbios/efi/VEFI_Handle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package dev.ultreon.devices.api.bios; | ||
package dev.ultreon.vbios.efi; | ||
|
||
public record VEFI_Handle( | ||
int handle | ||
|
2 changes: 1 addition & 1 deletion
2
...n/devices/api/bios/efi/VEFI_IconType.java → .../dev/ultreon/vbios/efi/VEFI_IconType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...vices/api/bios/efi/VEFI_Notification.java → .../ultreon/vbios/efi/VEFI_Notification.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package dev.ultreon.devices.api.bios.efi; | ||
package dev.ultreon.vbios.efi; | ||
|
||
public record VEFI_Notification(VEFI_IconType type, String header, String message) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...reon/devices/api/bios/VEFI_VideoSize.java → ...dev/ultreon/vbios/efi/VEFI_VideoSize.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package dev.ultreon.devices.api.bios; | ||
package dev.ultreon.vbios.efi; | ||
|
||
public record VEFI_VideoSize( | ||
int width, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module devices.bios { | ||
requires devices.api; | ||
requires java.base; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
common/src/api/java/dev/ultreon/devices/api/bios/VEFI_Executable.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
common/src/api/java/dev/ultreon/devices/api/boot/BootSector.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.