From 2fa653fffee1a272c630ad6c8789721b85a02948 Mon Sep 17 00:00:00 2001 From: ParticleG Date: Fri, 1 Nov 2024 10:03:11 +0800 Subject: [PATCH] - Log thread start --- Zframework/clipboard.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Zframework/clipboard.lua b/Zframework/clipboard.lua index e97f489c..21553f06 100644 --- a/Zframework/clipboard.lua +++ b/Zframework/clipboard.lua @@ -16,22 +16,22 @@ local function _sanitize(content) return content end -if SYSTEM~='Web' then - local get = love.system.getClipboardText - local set = love.system.setClipboardText - return { - get=function() return get() or '' end, - set=function(content) set(_sanitize(content)) end, - _update=NULL, - } -end +-- if SYSTEM~='Web' then +-- local get = love.system.getClipboardText +-- local set = love.system.setClipboardText +-- return { +-- get=function() return get() or '' end, +-- set=function(content) set(_sanitize(content)) end, +-- _update=NULL, +-- } +-- end local clipboard_thread=love.thread.newThread('Zframework/clipboard_thread.lua') local getCHN=love.thread.newChannel() local setCHN=love.thread.newChannel() local triggerCHN=love.thread.newChannel() -TASK.new(function() TEST.yieldN(26); print("1"); clipboard_thread:start(getCHN,setCHN,triggerCHN) end) +print(clipboard_thread:start(getCHN,setCHN,triggerCHN)) local clipboard={}