aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2008-09-19 23:51:01 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2008-09-19 23:51:01 -0400
commit8c86c21b2fcd2c62a1f70b6d553983991a066889 (patch)
tree71d9aceafa42ea1b988527f34e1994a143ab4916 /core
parent8ae92281275204bcb25114ddcc169981ef9b45ed (diff)
downloadtextadept-8c86c21b2fcd2c62a1f70b6d553983991a066889.tar.gz
textadept-8c86c21b2fcd2c62a1f70b6d553983991a066889.zip
Added preliminary support for Textadept on Windows.
Diffstat (limited to 'core')
-rw-r--r--core/file_io.lua2
-rw-r--r--core/init.lua6
2 files changed, 7 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 36117ebf..ecfb35e0 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -171,6 +171,7 @@ end
-- @return true if the session file was opened and read; false otherwise.
-- @usage textadept.io.load_session(filename)
function load_session(filename, only_pm)
+ if WIN32 then return end -- TODO:
local textadept = textadept
local f = io.open(filename or os.getenv('HOME')..'/.ta_session')
local current_view, splits = 1, { [0] = {} }
@@ -229,6 +230,7 @@ end
-- $HOME/.ta_session if not specified.
-- @usage textadept.io.save_session(filename)
function save_session(filename)
+ if WIN32 then return end -- TODO:
local session = ''
local buffer_line = "buffer: %d %d %d %s\n" -- anchor, cursor, line, filename
local split_line = "%ssplit%d: %s %d\n" -- level, number, type, size
diff --git a/core/init.lua b/core/init.lua
index 3acd3875..82348f1f 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -1,7 +1,11 @@
-- Copyright 2007-2008 Mitchell mitchell<att>caladbolg.net. See LICENSE.
package.path = _HOME..'/core/?.lua;'..package.path
-package.cpath = _HOME..'/core/?.so;'..package.cpath
+if not WIN32 then
+ package.cpath = _HOME..'/core/?.so;'..package.cpath
+else
+ package.cpath = _HOME..'/core/?.dll;'..package.cpath
+end
require 'iface'
require 'events'