Skip to content

Commit 1995561

Browse files
committed
Added support for _EnvironCount
1 parent 956a621 commit 1995561

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

codemirror/qb-lang.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ CodeMirror.defineMode("qbjs", function(conf, parserConf) {
4040
'_?backgroundcolor', '_?blue', '_?blue32', '_?capslock', '_?ceil', '_?commandcount', '_?continue', '_?copyimage',
4141
'_?cosh', '_?cot', '_?coth', '_?csc', '_?csch', '_?cwd',
4242
'_?defaultcolor', '_?d2g', '_?d2r', '_?deflate', '_?desktopwidth', '_?desktopheight',
43-
'_?delay', '_?dest', '_?dir', '_?direxists', '_?display', '_?echo', '_?fileexists', '_?font', '_?fontwidth', '_?fontheight',
43+
'_?delay', '_?dest', '_?dir', '_?direxists', '_?display',
44+
'_?echo', '_?environcount', '_?fileexists', '_?font', '_?fontwidth', '_?fontheight',
4445
'_?freeimage', '_?fullscreen', '_?g2d', '_?g2r', '_?green', '_?green32', '_?height', '_?hypot', "_?inflate",
4546
'_?instrrev', '_?limit', '_?keyclear', '_?keydown', '_?keyhit', '_?loadfont', '_?loadimage',
4647
'_?mousebutton', '_?mousehide', '_?mouseinput', '_?mouseshow', '_?mousewheel', '_?mousex', '_?mousey',

qb.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,11 @@ var QB = new function() {
414414
console.log(msg);
415415
};
416416

417+
this.func__EnvironCount = function() {
418+
/* no-op: included for compatibility */
419+
return 0;
420+
};
421+
417422
this.func__FileExists = function(path) {
418423
var vfs = GX.vfs();
419424
var file = vfs.getNode(path, GX.vfsCwd());

qb2js.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3420,6 +3420,7 @@ if (QB.halted()) { return; };
34203420
await sub_AddQBMethod( "FUNCTION" , "_Display" , False);
34213421
await sub_AddQBMethod( "SUB" , "_Display" , False);
34223422
await sub_AddQBMethod( "SUB" , "_Echo" , False);
3423+
await sub_AddQBMethod( "FUNCTION" , "_EnvironCount" , False);
34233424
await sub_AddQBMethod( "FUNCTION" , "_FileExists" , False);
34243425
await sub_AddQBMethod( "FUNCTION" , "_Font" , False);
34253426
await sub_AddQBMethod( "SUB" , "_Font" , False);

tools/qb2js.bas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3646,6 +3646,7 @@ Sub InitQBMethods
36463646
AddQBMethod "FUNCTION", "_Display", False
36473647
AddQBMethod "SUB", "_Display", False
36483648
AddQBMethod "SUB", "_Echo", False
3649+
AddQBMethod "FUNCTION", "_EnvironCount", False
36493650
AddQBMethod "FUNCTION", "_FileExists", False
36503651
AddQBMethod "FUNCTION", "_Font", False
36513652
AddQBMethod "SUB", "_Font", False

0 commit comments

Comments
 (0)