Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slowcheet4h committed Feb 27, 2022
1 parent fab93e8 commit 98f2f29
Show file tree
Hide file tree
Showing 111 changed files with 89 additions and 5,630 deletions.
24 changes: 0 additions & 24 deletions LICENSE

This file was deleted.

1 change: 0 additions & 1 deletion pisi/unitedmeows/yystal/logger/impl/YLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import org.fusesource.jansi.Ansi;
import org.fusesource.jansi.AnsiConsole;
import org.lwjglx.Sys;
import pisi.unitedmeows.yystal.file.YFile;
import pisi.unitedmeows.yystal.logger.ILogger;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import pisi.unitedmeows.yystal.utils.MemoryWriter;

import java.io.DataInputStream;
import java.io.IOException;

public class CTcpFixedSize extends CTcpExtension {

Expand All @@ -21,6 +22,9 @@ public void onDataSend(ref<byte[]> data, ref<Boolean> send) {
}
data.set(memoryWriter.getBytes());
send.set(true);
try {
memoryWriter.close();
} catch (IOException e) {}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ public void onPreDataReceive(DataInputStream inputStream, ref<Boolean> cancelDef
}
cancelDefaultReader.set(true);
readData.set(readLine.getBytes(StandardCharsets.UTF_8));
} catch (Exception ex) {

}
} catch (Exception ex) {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import pisi.unitedmeows.yystal.utils.MemoryWriter;

import java.io.DataInputStream;
import java.io.IOException;

public class STcpFixedSize extends STcpExtension {

Expand All @@ -21,6 +22,7 @@ public void onPreDataReceive(YSocketClient client, DataInputStream inputStream,
inputStream.read(data);
cancelDefaultReader.set(true);
readData.set(data);

} catch (Exception ex) {
}
}
Expand All @@ -34,6 +36,9 @@ public void onDataSend(YSocketClient client, ref<byte[]> data, ref<Boolean> send
memoryWriter.write(rawData);
data.set(memoryWriter.getBytes());
send.set(true);
try {
memoryWriter.close();
} catch (IOException e) {}
} catch (Exception ex) {
}
}
Expand Down
1 change: 1 addition & 0 deletions pisi/unitedmeows/yystal/ui/YWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import pisi.unitedmeows.yystal.utils.Vector2f;

public class YWindow extends YContainer {

private final Vector2f /* yystal vector2f :D.d:D */ mouseCoords = new Vector2f(-1F, -1F);
private final Vector2f mouseDelta = new Vector2f(-1F, -1F);
private final String title;
Expand Down
8 changes: 4 additions & 4 deletions pisi/unitedmeows/yystal/ui/font/Batch.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ public void addCharacter(final float x, final float y, final float scale, final
final float y0 = y;
final float x1 = x + scale * charInfo.width;
final float y1 = y + scale * charInfo.height;
final float ux0 = charInfo.textureCoordinates[0].x;
final float uy0 = charInfo.textureCoordinates[0].y;
final float ux1 = charInfo.textureCoordinates[1].x;
final float uy1 = charInfo.textureCoordinates[1].y;
final float ux0 = charInfo.textureCoordinates[0].getX();
final float uy0 = charInfo.textureCoordinates[0].getY();
final float ux1 = charInfo.textureCoordinates[1].getX();
final float uy1 = charInfo.textureCoordinates[1].getY();
int index = size * 7;
vertices[index] = x1;
vertices[index + 1] = y0;
Expand Down
3 changes: 2 additions & 1 deletion pisi/unitedmeows/yystal/ui/font/data/CharInfo.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package pisi.unitedmeows.yystal.ui.font.data;

import org.joml.Vector2f;

import pisi.unitedmeows.yystal.utils.Vector2f;

public class CharInfo {
public int sourceX;
Expand Down
4 changes: 3 additions & 1 deletion pisi/unitedmeows/yystal/ui/utils/Rectangle.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package pisi.unitedmeows.yystal.ui.utils;


import org.joml.Vector4f;

import static org.lwjgl.opengl.GL11.GL_BLEND;
import static org.lwjgl.opengl.GL11.GL_FLAT;
import static org.lwjgl.opengl.GL11.GL_LINE_SMOOTH;
Expand All @@ -19,7 +22,6 @@
import static org.lwjgl.opengl.GL11.glShadeModel;
import static org.lwjgl.opengl.GL11.glVertex2d;

import org.joml.Vector4f;

public class Rectangle {
public Vector4f vector;
Expand Down
26 changes: 25 additions & 1 deletion pisi/unitedmeows/yystal/utils/Vector3.java
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
package pisi.unitedmeows.yystal.utils;public class Vector3 {
package pisi.unitedmeows.yystal.utils;

public class Vector3<F, S, T> {

private F first;
private S second;
private T third;

public Vector3(F _first, S _second, T _third) {
first = _first;
second = _second;
third = _third;
}

public F first() {
return first;
}

public S second() {
return second;
}

public T third() {
return third;
}
}
4 changes: 3 additions & 1 deletion pisi/unitedmeows/yystal/utils/Vector4f.java
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
package pisi.unitedmeows.yystal.utils;public class Vector4f {
package pisi.unitedmeows.yystal.utils;

public class Vector4f {
}
4 changes: 0 additions & 4 deletions pisi/unitedmeows/yystal/yap/YAppServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ protected static int findAvailablePort() {
return -1;
}

/*
app => { name: 'Skuxx', version: 1.8, id:'$353tkşlrdgdfgdfg' }
*/

protected String createAppIntroduction() {
SxfFile file = new SxfFile();
SxfDataBlock app = new SxfDataBlock();
Expand Down
9 changes: 0 additions & 9 deletions src/pisi/unitedmeows/yystal/YSettings.java

This file was deleted.

137 changes: 0 additions & 137 deletions src/pisi/unitedmeows/yystal/YYStal.java

This file was deleted.

9 changes: 0 additions & 9 deletions src/pisi/unitedmeows/yystal/clazz/HookClass.java

This file was deleted.

3 changes: 0 additions & 3 deletions src/pisi/unitedmeows/yystal/clazz/delegate.java

This file was deleted.

Loading

0 comments on commit 98f2f29

Please sign in to comment.