Browse Source

* Adapt to new classes

Michael Van Canneyt 3 months ago
parent
commit
bf0768632f
2 changed files with 4 additions and 3 deletions
  1. 3 2
      demo/wasienv/threads/demothreads.lpi
  2. 1 1
      demo/wasienv/threads/demothreads.lpr

+ 3 - 2
demo/wasienv/threads/demothreads.lpi

@@ -52,7 +52,7 @@
   </ProjectOptions>
   </ProjectOptions>
   <CompilerOptions>
   <CompilerOptions>
     <Version Value="11"/>
     <Version Value="11"/>
-    <Target FileExt=".js">
+    <Target>
       <Filename Value="demothreads"/>
       <Filename Value="demothreads"/>
     </Target>
     </Target>
     <SearchPaths>
     <SearchPaths>
@@ -76,7 +76,8 @@
       </Debugging>
       </Debugging>
     </Linking>
     </Linking>
     <Other>
     <Other>
-      <CustomOptions Value="-Jeutf-8 -Jirtl.js -Jc -Jminclude"/>
+      <CustomOptions Value="-Jeutf-8 -Jirtl.js -Jc -Jminclude
+-dDEBUGCOMMANDDISPATCHERx"/>
       <CompilerPath Value="$(pas2js)"/>
       <CompilerPath Value="$(pas2js)"/>
     </Other>
     </Other>
   </CompilerOptions>
   </CompilerOptions>

+ 1 - 1
demo/wasienv/threads/demothreads.lpr

@@ -24,7 +24,7 @@ Type
 procedure TMyApplication.DoWrite(Sender: TObject; aOutput: String);
 procedure TMyApplication.DoWrite(Sender: TObject; aOutput: String);
 
 
 begin
 begin
-  Writeln('Wasm: '+aOutput);
+  Writeln('[Wasm main thread]: '+aOutput);
 end;
 end;
 
 
 function TMyApplication.DoStartClick(aEvent: TJSMouseEvent): boolean;
 function TMyApplication.DoStartClick(aEvent: TJSMouseEvent): boolean;