Update #44 - WebAssembly GC support, fix more WebRTC bugs

This commit is contained in:
lax1dude
2024-12-03 23:38:28 -08:00
parent 919014b4df
commit 70b52bbf7a
216 changed files with 34358 additions and 91 deletions

View File

@ -16,7 +16,7 @@ package net.lax1dude.eaglercraft.v1_8.internal;
*
*/
public enum EnumPlatformType {
DESKTOP("Desktop"), JAVASCRIPT("JavaScript"), WASM_GC("ASM");
DESKTOP("Desktop"), JAVASCRIPT("JS"), WASM_GC("WASM-GC");
private final String name;

View File

@ -98,6 +98,8 @@ public interface IClientConfigAdapter {
boolean isRamdiskMode();
boolean isEnforceVSync();
IClientConfigAdapterHooks getHooks();
}

View File

@ -39,11 +39,9 @@ class VFileOutputStream extends EaglerOutputStream {
try {
copyBuffer.put(buf, 0, count);
copyBuffer.flip();
try {
vfsFile.getFS().eaglerWrite(vfsFile.path, copyBuffer);
}catch(Throwable t) {
throw new IOException("Could not write stream contents to file!", t);
}
vfsFile.getFS().eaglerWrite(vfsFile.path, copyBuffer);
}catch(Throwable t) {
throw new IOException("Could not write stream contents to file!", t);
}finally {
PlatformRuntime.freeByteBuffer(copyBuffer);
}