@@ -2,6 +2,7 @@ import { LitElement, html, css } from "lit";
22import { customElement , state , query } from 'lit/decorators.js' ;
33
44import * as constants from "../constants" ;
5+ import * as configConstants from "../config-constants" ;
56import * as devkit from "../devkit" ;
67import * as utils from "./utils" ;
78import * as z85 from "../z85" ;
@@ -141,7 +142,7 @@ export class App extends LitElement {
141142 // Nothing
142143 } ,
143144 } ;
144- if ( constants . GAMEDEV_MODE ) {
145+ if ( configConstants . GAMEDEV_MODE ) {
145146 devtoolsManager = await import ( '@wasm4/web-devtools' ) . then ( ( { DevtoolsManager} ) => new DevtoolsManager ( ) ) ;
146147 }
147148
@@ -153,8 +154,8 @@ export class App extends LitElement {
153154 this . copyNetplayLink ( ) ;
154155 }
155156
156- if ( constants . GAMEDEV_MODE ) {
157- devkit . websocket ?. addEventListener ( "message" , async event => {
157+ if ( configConstants . GAMEDEV_MODE ) {
158+ devkit . cli_websocket ?. addEventListener ( "message" , async event => {
158159 switch ( event . data ) {
159160 case "reload" :
160161 this . resetCart ( await loadCartWasm ( ) ) ;
@@ -481,8 +482,7 @@ export class App extends LitElement {
481482
482483 runtime . composite ( ) ;
483484
484- if ( constants . GAMEDEV_MODE ) {
485- // FIXED(2023-12-13): Pass the correct FPS for display
485+ if ( configConstants . GAMEDEV_MODE ) {
486486 devtoolsManager . updateCompleted ( runtime , timeFrameStart - lastTimeFrameStart ) ;
487487 lastTimeFrameStart = timeFrameStart ;
488488 }
0 commit comments