aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/sys
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-09 06:50:52 +0000
committerHolger Zickner <[email protected]>2004-07-09 06:50:52 +0000
commit20a66a892a3f0704ef37f1eebb681edfee6fc165 (patch)
tree118e0e5ea00eecf450e4c63edc88c421d52a7db2 /src/jake2/sys
parent6b36f9e0380b7c80aecdc78ef07a0cf473712416 (diff)
import of Jake2
Diffstat (limited to 'src/jake2/sys')
-rw-r--r--src/jake2/sys/NET.java6
-rw-r--r--src/jake2/sys/Sys.java15
2 files changed, 4 insertions, 17 deletions
diff --git a/src/jake2/sys/NET.java b/src/jake2/sys/NET.java
index 19a3a59..50f7ceb 100644
--- a/src/jake2/sys/NET.java
+++ b/src/jake2/sys/NET.java
@@ -2,7 +2,7 @@
* NET.java
* Copyright (C) 2003
*
- * $Id: NET.java,v 1.1 2004-07-07 19:59:51 hzi Exp $
+ * $Id: NET.java,v 1.2 2004-07-09 06:50:47 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -686,8 +686,8 @@ public final class NET extends Defines {
====================
*/
public static String NET_ErrorString() {
+
int code;
-
//code = errno;
//return strerror (code);
return "errno can not yet resolved in java";
@@ -700,7 +700,7 @@ public final class NET extends Defines {
return; // we're not a server, just run full speed
try {
- //TODO: check for
+ //TODO: check for timeout
Thread.sleep(msec);
}
catch (InterruptedException e) {
diff --git a/src/jake2/sys/Sys.java b/src/jake2/sys/Sys.java
index 8a08956..b65098c 100644
--- a/src/jake2/sys/Sys.java
+++ b/src/jake2/sys/Sys.java
@@ -2,7 +2,7 @@
* Sys.java
* Copyright (C) 2003
*
- * $Id: Sys.java,v 1.3 2004-07-08 20:24:30 hzi Exp $
+ * $Id: Sys.java,v 1.4 2004-07-09 06:50:47 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -44,14 +44,6 @@ import jake2.util.Lib;
*/
public final class Sys extends Defines {
- public static void StackTrace() {
-
- StackTraceElement trace[] = new Throwable().getStackTrace();
- Com.Println("StackTrace:");
- for (int i = 0; i < trace.length; i++)
- Com.Println("" + trace[i]);
- }
-
public static void Error(String error) {
CL.Shutdown();
@@ -259,11 +251,6 @@ public final class Sys extends Defines {
Globals.sys_frame_time = Sys.Milliseconds();
}
- public static game_export_t GetGameAPI(game_import_t gimport)
- {
- return Game.GetGameApi(gimport);
- }
-
public static String GetClipboardData() {
// TODO: implement GetClipboardData
return null;