53 Commits

Author SHA1 Message Date
mmyduckx
67341c0866 fix simulator restart bug (#14962)
* fix simulator restart bug

* fix close simulator crash due to se destroy
2023-05-08 10:23:55 +08:00
mmyduckx
46da89a5f7 fix editor simulator resize and change landscape not work (#14908)
* fix editor simulator resize
2023-04-25 17:12:19 +08:00
timlyeee
cb51f8d569 Dev simulator (#13469)
* Fix simulator start error
2022-11-23 15:28:59 +08:00
江战
280fd976bc Add EventTarget & EventBus (#13100) 2022-10-28 15:44:33 +08:00
minggo
d40b8739bc Merge branch 'v3.6.0' into develop_merge_v3.6 2022-07-18 10:38:14 +08:00
Santy-Wang
6e995a866c adjust decorator execute order (#11794)
fix mesh error
2022-07-01 10:16:11 +08:00
minggo
3e818c45c9 Change macro name (#11528)
* CC_PLATFORM_MAC_IOS -> CC_PLATFORM_IOS

* CC_PLATFORM_MAC_OSX -> CC_PLATFORM_MACOS

* add codes to keep compatible
2022-06-16 14:05:16 +08:00
PP
1bd1bf1c57 rename adapters (#11401)
* rename adapters

update

* update adapter require
2022-06-08 14:59:31 +08:00
minggo
84c27e7f71 Merge branch 'v3.5.0' into v3.6.0_merge_v3.5 2022-04-24 13:41:27 +08:00
Cocos Robot
307eb701a1 [ci skip][AUTO]: Automated clang-format update: 48787d3a22 (#10655) (#10660)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-04-06 10:28:01 +08:00
timlyeee
d0195edb4f set V3.5.0 simulator window position to center (#10655)
* set simulator window position to center.

* add mac support
2022-04-06 09:59:36 +08:00
minggo
a6bf766170 Merge branch 'v3.5.0' into v3.6_merge_v3.5 2022-03-29 18:26:40 +08:00
qiuguohua
9a5f43d80c Modify the application interface name and remove the js keyword (#10556)
* Modify the application interface name and remove the js keyword
2022-03-29 15:08:49 +08:00
Cocos Robot
c62f828551 [ci skip][AUTO]: Automated clang-format update: bdf9ae46e7 (#10543) (#10548)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-28 18:12:33 +08:00
qiuguohua
051e034f3f Put main.cpp in the template (#10543)
* Put main.cpp in the template
2022-03-28 18:03:51 +08:00
minggo
5410a48a58 Implement more logic in native (#4131)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
Co-authored-by: dumganhar <dumganhar@gmail.com>
Co-authored-by: mmyduckx <308303735@qq.com>
Co-authored-by: Patrice Jiang <397136899@qq.com>
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com>
2022-01-07 18:39:40 +08:00
qiuguohua
eeb9d5c689 Merge the code of v3.3.1 platform adaptation layer into the development branch (#3958)
* 1、Merge platform adaptation layer code into the development branch
2、It passed the test in windows and ohos system

* 1、Merge platform adaptation layer code into the development branch
2、It passed the test in windows and ohos system

* 1、Fix github compile windows error

* 1、Fix github compile windows error

* 1. Adjust the code format;
2. Fix js automatic generation binding
3. Adjust github CI compilation

* 1. Adjust the code format;
2. Fix js automatic generation binding
3. Adjust github CI compilation

* Solve mac and ios compilation failure

* Fix the problem of compilation of Windows-side simulator

* 1. Adapt the simulator to a new adaptation layer;
2. Fix the compilation warning of ios, and the implicit conversion failed;
3. Fix the mac compilation error, due to the problem of adding the link identification -all_load;

* 1.Add the isDisplayStats and setDisplayStats method to the screen interface

* Fix clang-tidy compilation warning

* Fix clang-tidy compilation warning

* Repair the emulator, compatible with mac and win

* 1、Repair detailed errors, including name modification and calling method modification
2、Delete redundant files in the template directory
3、Change the vibrate interface to vibrator
4、Fix word spelling errors

* Rename interfaces to modules

* Replace CC_ASSERT with CCASSERT

* Replace CC_ASSERT with CCASSERT

Co-authored-by: qiuguohua <>
2021-10-27 10:51:02 +08:00
mmyduckx
9e9c1a2b3e Fix appSimulator crash when closing on mac (#3787) 2021-07-30 11:59:29 +08:00
Yun Hsiao Wu
1ebe420662 structure adjustments (#3532) 2021-06-02 09:39:13 +08:00
mmyduckx
76d15cafa4 send close event to JS (#3527) 2021-05-21 11:37:13 +08:00
PP
c2d51e9507 fix simulator compiling on Win32 (#3397) 2021-04-14 15:39:38 +08:00
PP
14f55649af support simulator waiting for debugger connect (#3125) 2020-12-18 10:19:03 +08:00
PP
e8d56ecb6b enable debugger (#2969) 2020-11-02 09:49:29 +08:00
PP
d648d3252b fix simulator compiling (#2943)
* fix simulator compiling

* remove terminate app logic
2020-10-23 20:54:01 +08:00
minggo
4d889c7ae7 use CC_DEBUG instead (#2718) 2020-08-25 11:58:13 +08:00
江战
b96a725238 Update tools/simulator with CMake / 3dgfx (#2496)
* update mac simulator

* remove template files

* rm build/
2020-05-29 10:44:22 +08:00
minggo
1bb0c717d0 fix macro redefine warning of platform defination (#2099) 2020-01-20 15:12:49 +08:00
PP
0ab1197c27 refine pause playing audio when enter background (#1875)
* Revert "Pause music when app enter background (#1849)"

This reverts commit 7a24ee3377.

* refine pause playing audio when enter background
2019-10-12 17:02:50 +08:00
Arnold
7a24ee3377 Pause music when app enter background (#1849)
invoke AudioEngine::pauseAll when app enter background
2019-09-18 13:52:28 +08:00
leda
beb45454ad support parse waitForConnect and debugPort from simulator/config.json (#1521)
* revert v8 debugger ip to 0.0.0.0 for simulator

* parse isWaitForConnect and debug port from config.json

* remove macro useless, since we parse the options from config.json
2018-09-26 18:57:56 -07:00
leda
a5391aaabd add macro to support custom v8 debug option for creator (#1518)
* add macro to support custom v8 debug option for creator

* update console with version compare fixed

* revert debugger ip to 0.0.0.0 for template
2018-09-25 21:49:55 -07:00
leda
4ca166e109 dispatch show/hide event to js, included "cocos simulator" (#1500)
* add dispatchEnterBackgroundEvent for simulator

* more stable when set canvas size on win32

* add isNan check for float & double

* simplify event dispatch on AppDelegate
2018-09-06 16:39:45 +08:00
leda
a7f266b9e8 resume View Menu for simulator on mac & win32 (#1456)
* start add menu back

* simulator resume works

* readded scale feature, fix exit bug

* free SetupUI, and fix compile only

* adapt to CustomEvent from struct to class

* resume show/hide FPS feature

* Revert "free SetupUI, and fix compile only"

This reverts commit fd8cf5ca0a17ba62ae5dec46fefea3b58c267c9d.

* Revert "Revert "free SetupUI, and fix compile only""

This reverts commit 6e5934a583db286508d00a61a22e11a3325090f1.

* correct EXIT logic

* scale works

* show/hide fps works

* remove unneed menu, replace tab with space

* remove debug output info

* no need _isShowFPS member

* fix NSError init error
2018-08-16 09:34:47 +08:00
leda
19552e0dd4 gen-simulator works on mac, but not full features (#1313)
* fix part of warnings

* avoid all compile errors

* remove part lua related

* remove useless comment

* add function to get glfwWindow

* improve comment

* correct group files at platform folder

* update gulp simulator script copy
2018-06-14 14:23:16 +08:00
Jare Guo
d9bd3d763c update license (#1089)
* updating license

* update license
2018-02-01 15:20:01 +08:00
James Chen
632448d64b Removes COCOS2D_DEBUG definition in release mode. Adds APP_CFLAGS.
RuntimeJsImpl doesn't depend on COCOS_DEBUG macro.
Warning fix in bzero.
2017-10-11 14:11:41 +08:00
James Chen
e1ac3249a2 jsb_enable_debugger() uses local IP "0, 0, 0, 0", then Android debugging doesn't need to change IP. 2017-10-11 12:30:08 +08:00
James Chen
0548edd7f4 Adds Simulator.entilements for mac simulator project. 2017-10-10 16:44:14 +08:00
James Chen
f3ea953638 compilation error fix for simulator. 2017-10-10 15:14:19 +08:00
James Chen
b4d7eda372 Updates simulator. 2017-10-10 14:55:20 +08:00
James Chen
9f16c51b4e Simulator works for jsb2.0 2017-08-29 18:00:07 +08:00
pandamicro
935b7a94db Fix issue with ScriptingCore::getFileScript modif 2017-08-21 11:10:39 +08:00
pandamicro
b39dba1c63 Fix simulator restart crash issue 2017-08-02 18:14:29 +08:00
pandamicro
66897d4f3f Add back ide-support and fix compilation issues 2017-07-09 10:52:37 +08:00
pandamicro
99206af737 Remove useless module and preprocess macros 2017-07-04 16:35:17 +08:00
pandamicro
154e3cf863 Support windows Spidermonkey v52 2017-06-30 18:02:08 +08:00
pandamicro
32f9c7dc1f Remove debugger 2017-06-30 18:02:05 +08:00
knoxHuang
4ee224b05a add Show FPS for simulator #fireball/issues/4944 2016-12-22 15:12:27 +08:00
Nan Wang
9ff81c656b fix CocosDenshion namespace compile error 2016-12-01 09:58:33 +08:00
James Chen
5996fe0866 Don’t invoke simple audio engine stuff in AppDelegate. And send missing game_on_hide & game_on_show event for Appdelegate in Simulator. 2016-11-28 11:51:37 +08:00