NETSCRIPT: Add functionality and support to fully allow Players to use IP addresses in place of hostnames (#1990)

This commit is contained in:
Naga
2025-04-10 21:41:37 -04:00
committed by GitHub
parent d28a06e764
commit 0aaa28054a
84 changed files with 610 additions and 400 deletions
+4 -4
View File
@@ -15,8 +15,8 @@ export function NetscriptUserInterface(): InternalAPI<IUserInterface> {
return {
openTail:
(ctx) =>
(scriptID, hostname, ...scriptArgs) => {
const ident = helpers.scriptIdentifier(ctx, scriptID, hostname, scriptArgs);
(scriptID, host, ...scriptArgs) => {
const ident = helpers.scriptIdentifier(ctx, scriptID, host, scriptArgs);
const runningScriptObj = helpers.getRunningScript(ctx, ident);
if (runningScriptObj == null) {
helpers.log(ctx, () => helpers.getCannotFindRunningScriptErrorMessage(ident));
@@ -89,8 +89,8 @@ export function NetscriptUserInterface(): InternalAPI<IUserInterface> {
setTailFontSize:
(ctx) =>
(_pixel, scriptID, hostname, ...scriptArgs) => {
const ident = helpers.scriptIdentifier(ctx, scriptID, hostname, scriptArgs);
(_pixel, scriptID, host, ...scriptArgs) => {
const ident = helpers.scriptIdentifier(ctx, scriptID, host, scriptArgs);
const runningScriptObj = helpers.getRunningScript(ctx, ident);
if (runningScriptObj == null) {
helpers.log(ctx, () => helpers.getCannotFindRunningScriptErrorMessage(ident));