File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ // ==UserScript==
2
+ // @name Rondo Duo -Yoake no Fortissimo- Punyu Puri ff
3
+ // @version
4
+ // @author [DC]
5
+ // @description
6
+ // * TinkleBell
7
+ // * Adobe Flash
8
+ //
9
+ // https://vndb.org/v16266
10
+ // ==/UserScript==
11
+
12
+ const { setHook } = require ( './libFlash.js' ) ;
13
+
14
+ const ptrSize = Process . pointerSize ;
15
+ const mainHandler = trans . send ( handler , '200+' ) ;
16
+
17
+ setHook ( {
18
+ 'AS.StoryObj.MsgWin::MsgArea/ShowMsg' : mainHandler
19
+ } ) ;
20
+
21
+ function handler ( args ) {
22
+ const argx = args [ 2 ] ; // env, argc, args
23
+ console . log ( 'onEnter ShowMsg' ) ;
24
+ const address = argx . add ( ptrSize ) . readPointer ( ) ; // get args[0]; (this call?)
25
+
26
+ const s = address . readFlashString ( ) ;
27
+ return s ;
28
+ }
29
+
30
+ /* OR */
31
+
32
+ // const ptrSize = Process.pointerSize;
33
+ // const mainHandler = trans.send(s => s, '200+');
34
+
35
+ // setHook('AS.StoryObj.MsgWin::MsgArea/ShowMsg', function (args) {
36
+ // const argx = args[2];
37
+ // console.log('onEnter ShowMsg');
38
+
39
+ // const address = argx.add(4).readPointer();
40
+ // const s = address.readFlashString();
41
+
42
+ // mainHandler(s);
43
+ // });
You can’t perform that action at this time.
0 commit comments