From 19c19c595d5dae5010b9fc1ca2f14b48ebc0248b Mon Sep 17 00:00:00 2001 From: Y-way Date: Mon, 18 Dec 2023 11:49:02 +0800 Subject: [PATCH] Fix building error for simulator. (#16612) * Update .cocos-project.json * Fix build error --- native/tools/simulator/.cocos-project.json | 6 +++--- .../frameworks/runtime-src/proj.win32/SimulatorApp.cpp | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/native/tools/simulator/.cocos-project.json b/native/tools/simulator/.cocos-project.json index 6e3b558228..582f37c3e1 100755 --- a/native/tools/simulator/.cocos-project.json +++ b/native/tools/simulator/.cocos-project.json @@ -1,4 +1,4 @@ { - "has_native": true, - "project_type": "lua" -} \ No newline at end of file + "has_native": true, + "project_type": "js" +} diff --git a/native/tools/simulator/frameworks/runtime-src/proj.win32/SimulatorApp.cpp b/native/tools/simulator/frameworks/runtime-src/proj.win32/SimulatorApp.cpp index eabdca3f08..a8c07c91a6 100644 --- a/native/tools/simulator/frameworks/runtime-src/proj.win32/SimulatorApp.cpp +++ b/native/tools/simulator/frameworks/runtime-src/proj.win32/SimulatorApp.cpp @@ -343,6 +343,7 @@ int SimulatorApp::init() { } _project.setFrameScale(frameScale); CC_LOG_DEBUG("FRAME SCALE = %0.2f", frameScale); + return 0; } int SimulatorApp::run() {