Skip to content
Browse files

Update proxy.js to use the new directory layout; rename ps -> protocol

  • Loading branch information...
1 parent 1013828 commit 08acf5ee9cf1e3e525d5168ba2d036d4af6da40b @nornagon committed Sep 26, 2010
Showing with 10 additions and 4 deletions.
  1. +2 −2 src/nodecraft.js
  2. 0 src/{ps.js → protocol.js}
  3. +8 −2 src/proxy.js
View
4 src/nodecraft.js
@@ -6,15 +6,15 @@
var sys = require('sys')
, net = require('net')
- , ps = require('./ps')
, colors = require('colors')
, zip = require('compress')
+ , fs = require('fs')
+ , ps = require('./protocol')
, chunk = require('./chunk')
, session = require('./session')
, terrain = require('./terrain')
, uniqueid = require('./uniqueid')
, entities = require('./entities')
- , fs = require('fs')
;
View
0 src/ps.js → src/protocol.js
File renamed without changes.
View
10 src/proxy.js
@@ -1,8 +1,14 @@
+(function () {
+ var path = require('path');
+ var lib_path = path.join(path.dirname(process.argv[1]), '..', 'lib');
+ require.paths.push(path.normalize(lib_path));
+})();
+
var sys = require('sys')
, net = require('net')
- , colors = require('./colors')
- , ps = require('./ps')
, fs = require('fs')
+ , colors = require('colors')
+ , ps = require('./protocol')
;
function concat(buf1, buf2) {

0 comments on commit 08acf5e

Please sign in to comment.
Something went wrong with that request. Please try again.