Skip to content

Commit 251aac8

Browse files
committed
Initial commit
0 parents  commit 251aac8

28 files changed

+2833
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

akari.dll

869 KB
Binary file not shown.

descript.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
charset,UTF-8
2+
type,plugin
3+
name,すどはいくゅう
4+
id,40ff4eb0-4f7e-11ec-8072-0800200c9a66
5+
filename,akari.dll
6+
craftman,Don
7+
craftmanurl,https://github.com/nikolat/sudohaikuyu/releases
8+
homeurl,https://raw.githubusercontent.com/nikolat/sudohaikuyu/main/
9+
secondchangeinterval,0
10+
readme.charset,UTF-8

icon/icon.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
アイコンの一時保管フォルダです

image/default.png

141 Bytes
Loading

image/fam_arrow_refresh.png

685 Bytes
Loading

image/fam_cross.png

655 Bytes
Loading

image/fam_house.png

806 Bytes
Loading

image/fam_pencil_go.png

666 Bytes
Loading

image/fam_readme.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Silk icon set 1.3
2+
3+
_________________________________________
4+
Mark James
5+
http://www.famfamfam.com/lab/icons/silk/
6+
_________________________________________
7+
8+
This work is licensed under a
9+
Creative Commons Attribution 2.5 License.
10+
[ http://creativecommons.org/licenses/by/2.5/ ]
11+
12+
This means you may use it for any purpose,
13+
and make any changes you like.
14+
All I ask is that you include a link back
15+
to this page in your credits.
16+
17+
Are you using this icon set? Send me an email
18+
(including a link or picture if available) to
19+
mjames@gmail.com
20+
21+
Any other questions about this icon set please
22+
contact mjames@gmail.com

image/fam_wrench.png

610 Bytes
Loading

install.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
charset,UTF-8
2+
type,plugin
3+
name,すどはいくゅう
4+
directory,sudohaikuyu

licence.txt

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
■「すどはいくゅう」で使用しているモジュール等
2+
3+
以下のモジュールおよびアイコン画像ファイルを
4+
同梱のライセンスに従って使用させて頂いております。
5+
ありがとうございます。
6+
7+
akari.dll
8+
夜天燈火
9+
http://le.silk.to/
10+
11+
textcopy2.dll
12+
csaori
13+
https://github.com/ponapalt/csaori/wiki
14+
15+
HandUtil.dll
16+
浮子屋本舗
17+
http://ukiya.sakura.ne.jp/
18+
19+
imgctl.dll
20+
ルーチェ's Homepage
21+
http://www.ruche-home.net/
22+
23+
imgctl_saori.dll
24+
JUNK ROOM
25+
http://whiteball.m7.coreserver.jp/
26+
27+
Silk icon set 1.3
28+
famfamfam.com: Silk Icons
29+
http://www.famfamfam.com/lab/icons/silk/
30+
31+
■「すどはいくゅう」のライセンス
32+
33+
上記以外のテキストファイル、辞書ファイルの類いは、
34+
すべてNYSDLに基づき自由に利用できるものとします。
35+
36+
************************************************************************
37+
NYSDL Version 0.9982
38+
A. この文書は Everyone'sDocument です。この文書を手にした一人一人が、
39+
ご自分の書いた文章を扱うのと同じように、自由に利用することが出来ます。
40+
41+
A-1. 作者からは使用料等を要求しません。
42+
A-2. 有料無料や媒体の如何を問わず、自由に転載できます。
43+
A-3. いかなる種類の改変を加えても構いません。
44+
A-4. この文書を変更や引用した文書は、あなたのものになります。
45+
公開する場合は、あなたの名前の下で行って下さい。
46+
47+
B. この文章を利用することによって生じた損害等について、著作者は
48+
責任を負わないものとします。各自の責任においてご利用下さい。
49+
50+
C. 著作者人格権はDonに帰属します。著作権は放棄します。
51+
************************************************************************

main.azr

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
// プロトコル制御用
2+
dict dictOptionalHeader;
3+
// セーブ用
4+
dict dictSaveData;
5+
6+
load()
7+
{
8+
// 辞書読み込み
9+
_script_load("plugin_init");
10+
_script_load("plugin_menu");
11+
_script_load("plugin_util");
12+
// オプションヘッダ初期化
13+
resetOptionalHeader();
14+
// セーブデータ読み込み
15+
dictSaveData = _vload("savedata");
16+
// プラグイン初期化処理
17+
loadPlugin();
18+
}
19+
20+
unload()
21+
{
22+
// セーブデータ保存
23+
_vsave("savedata", dictSaveData);
24+
// プラグイン後始末処理
25+
unloadPlugin();
26+
}
27+
28+
array _customrequest(dict ref)
29+
{
30+
array ar;
31+
// PLUGINに対するリクエストでない場合
32+
if (_strstr(ref["head"], "PLUGIN") == -1) {
33+
ar += "PLUGIN/2.0 400 Bad Request";
34+
ar += "Sender: akari";
35+
ar += "Charset: UTF-8";
36+
ar += "";
37+
return ar;
38+
}
39+
// セキュリティレベル="External"なら即返る
40+
if (ref["SecurityLevel"] == "External") {
41+
ar += "PLUGIN/2.0 204 No Content";
42+
ar += "Sender: akari";
43+
ar += "Charset: UTF-8";
44+
ar += "";
45+
return ar;
46+
}
47+
string s = _eventdict[ref["ID"]];
48+
if (s == "") s = _fncstr(ref["ID"], ref);
49+
// version
50+
if (ref["ID"] == "version") {
51+
ar += "PLUGIN/2.0 200 OK";
52+
ar += "Sender: akari";
53+
ar += "Charset: UTF-8";
54+
ar += "Value: " + s;
55+
ar += "";
56+
return ar;
57+
}
58+
// NOTIFY
59+
if (_strstr(ref["head"], "NOTIFY") != -1) {
60+
resetOptionalHeader();
61+
ar += "PLUGIN/2.0 200 OK";
62+
ar += "Sender: akari";
63+
ar += "Charset: UTF-8";
64+
ar += "";
65+
return ar;
66+
}
67+
// GET
68+
if (_strstr(ref["head"], "GET") != -1) {
69+
ar += "PLUGIN/2.0 200 OK";
70+
ar += "Sender: akari";
71+
ar += "Charset: UTF-8";
72+
if (s != "") {
73+
ar += "Script: " + s;
74+
makeDefaultEventAndReference(ref, s);
75+
}
76+
dict d = dictOptionalHeader;
77+
if (d["target"] != "") {
78+
ar += "Target: " + d["target"];
79+
}
80+
if (d["event"] != "") {
81+
ar += "Event: " + d["event"];
82+
}
83+
if (d["event_option"] != "") {
84+
ar += "EventOption: " + d["event_option"];
85+
}
86+
if (d["script_option"] != "") {
87+
ar += "ScriptOption: " + d["script_option"];
88+
}
89+
if (_aryvn(d["reference"]) > 0) {
90+
for(int i = 0; d["reference"][i] != nil; i++) {
91+
ar += "Reference" + i + ": " + d["reference"][i];
92+
}
93+
}
94+
if (d["marker"] != "") {
95+
ar += "Marker: " + d["marker"];
96+
}
97+
resetOptionalHeader();
98+
ar += "";
99+
return ar;
100+
}
101+
// 未知のリクエスト
102+
else {
103+
ar += "PLUGIN/2.0 400 Bad Request";
104+
ar += "Sender: akari";
105+
ar += "Charset: UTF-8";
106+
ar += "";
107+
return ar;
108+
}
109+
}
110+
111+
makeDefaultEventAndReference(dict ref, string script)
112+
{
113+
dictOptionalHeader["event"] = "OnPluginExec";
114+
array a = {
115+
"Version=" + version(),
116+
"From=" + pluginname(),
117+
"Script=" + script,
118+
"Event=" + ref["ID"]
119+
};
120+
for (int i = 0; ref["Reference" + i] != nil; i++) {
121+
a += ref["Reference" + i];
122+
}
123+
dictOptionalHeader["reference"] = a;
124+
}
125+
126+
resetOptionalHeader()
127+
{
128+
dictOptionalHeader = ${
129+
$("target", ""),
130+
$("event", ""),
131+
$("event_option", ""),
132+
$("script_option", ""),
133+
$("reference", {}),
134+
$("marker", "")
135+
};
136+
}

0 commit comments

Comments
 (0)