Commit Graph

44 Commits

Author SHA1 Message Date
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
mmyduckx 4fdf948d24 refactor downloaderTask API style (#11697) 2022-06-29 11:34:15 +08:00
James Chen 04a3732d8e [v3.6] Fix initial ref count for assets-manager. (#11325)
The default value is 0 in v3.6, so need to addRef after new.
2022-06-01 17:44:07 +08:00
minggo 271cc5cf23 Remove some format rule (#10919)
* remove some rules
* format all codes with new format rule
2022-05-04 13:09:24 +08:00
minggo aca0a1bccb Remove memory management (#10125)
* remove NedPooling

* remove Jealloc

* remove some macros

* move memory related macros into Memory.h

* delete MemTrack
2022-02-22 18:12:48 +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
wangyuzhi233 760109ab79 fix VS2019 warning (#3531) 2021-05-19 16:36:16 +08:00
minggo d8824f8a11 fix coding style (#3371) 2021-04-02 09:55:12 +08:00
minggo 826babfa64 Format code (#3217) 2021-01-13 14:49:32 +08:00
kenshin 2ad036ba09 3d gfx 2 4 3 patch (#2984)
* free AudioMix partial wake locks, and android device can enter power save

* fix audio engine crash, avoid update function reentrancy.

* fix hot update issue.

* avoid a NULL point crash when ScriptEngine::cleanup
2020-11-06 18:03:49 +08:00
minggo a7d7cc8b1f fix warnings (#2819) 2020-09-22 14:27:25 +08:00
minggo b08407c501 remove CC/cc prefix for file names (#2728) 2020-08-28 15:23:29 +08:00
minggo 7efee066fd Remove duplicate (#2597) 2020-06-19 11:07:21 +08:00
leda ccb40bdeda move CCAsyncTaskPool from cocos/base into extensions folder (#1422)
* move CCAsyncTaskPool path

* move CCAsyncTaskPool path for ios & mac project

* change header path

* adapt CCAsyncTaskPool path for win32

* divide win32 build object files into Debug and Release folder
2018-07-26 10:11:55 +08:00
leda b3b37cf457 Add AssetsManager to iOS & Mac & Android & win32 (#1405)
* Add incomplete AssetsManager to iOS & Mac

* remove Android.mk refer on Xcode project config

* re-add assetmanager for android

* re-add assetmanager for win32 project config

* remove unused macro define for win32

* remove unused marco define COCOS2D_JAVASCRIPT

* added header include for assetsManager

* Add CCAsyncTaskPool

* Fix AssetsManager event trigger issue

* update win32 project config, added CCAsyncTaskPool

* add CCAsyncTaskPool to extensions Android.mk
2018-07-23 17:50:04 +08:00
minggo 802e48080e New renderer (#1097)
* build work on mac

* build ok on iOS

* fix compiling error on android

* fix android link error
2018-02-08 10:40:29 +08:00
Jare Guo d9bd3d763c update license (#1089)
* updating license

* update license
2018-02-01 15:20:01 +08:00
pandamicro e9913fbf5a Delete old version files during hot update (#1006) 2017-11-30 11:08:25 +08:00
James Chen a301199621 EventAssetsManagerEx needs to be allocated on heap since it's the subclass of cocos2d::Ref. 2017-10-13 13:39:18 +08:00
pandamicro a5334ed22a Fix can not restart update after failed issue 2017-05-16 15:27:30 +08:00
pandamicro fa5fe36f2e Fix version compare handle setting 2017-05-16 15:07:10 +08:00
pandamicro 714ca23e47 Check previous updating state to resume 2017-05-16 15:06:03 +08:00
pandamicro e37196f41d Fix issues with AssetsManager new features 2017-05-04 23:32:08 +08:00
pandamicro 50839c4be1 Supports create manifest and manually load local and remote manifest 2017-04-26 00:00:02 +08:00
pandamicro 505845813c Support setting version compare handle in AssetsManager’s constructor 2017-04-25 23:59:13 +08:00
pandamicro cea2e9a012 Add more progression info to EventAssetsManager 2017-04-25 14:45:03 +08:00
pandamicro 341aed32a9 Improve AssetsManagerEx searchpath handle 2017-03-15 17:16:23 +08:00
pandamicro 63b71c536a Fix AssetsManager issue after failed on manifest downloading 2017-03-15 17:11:53 +08:00
pandamicro e40c4ba878 Revert connection timeout 2017-02-10 14:37:07 +08:00
pandamicro 47b5556a63 Fix update immediately in checkUpdate callback issue 2017-02-07 18:20:12 +08:00
pandamicro e37816eab3 Fix AssetsManager issues on x86 platform 2017-01-24 13:29:27 +08:00
pandamicro 292fd4a941 Fix nextSavePoint issue (it should be float) 2017-01-23 18:38:22 +08:00
pandamicro fca36add5d Fix updateSucceed issue 2017-01-22 18:59:18 +08:00
pandamicro e420c238b9 Avoid register too much succeed asset in manifest initialization 2017-01-18 10:11:25 +08:00
pandamicro 1bf1f805ca Ensure zip file deletion 2017-01-16 13:56:04 +08:00
pandamicro 57c7f0f687 Reduce frequency of writing temp manifest file 2017-01-16 13:55:01 +08:00
pandamicro 28ea176e4d Refactor AssetsManager update logic
- Separate temporary version and local cached version
- Create folder when needed
- Fix search path pollution when local cached version exists
2017-01-13 10:32:14 +08:00
pandamicro 1294fa9ee8 Ensure loading manifest in app package correctly 2017-01-12 12:48:51 +08:00
pandamicro e459f74ae9 Fix AssetsManager issues collected from the community 2017-01-11 19:03:13 +08:00
pandamicro 277ec259a7 Fix compilation issue caused by Manifest::Asset conversion 2017-01-10 14:44:25 +08:00
pandamicro 74667913c6 Upgrade AssetsManagerEx
1. Support size parameter to collect total byte size before update process
2. Remove temporary assets when temporary manifest is invalid or out of date
3. Support customized version compare handle to compare manifests versions
4. Support downloaded file verification callback
5. Support max concurrent tasks setting and set default to 32
2017-01-06 17:00:47 +08:00
pandamicro 1bbdb8e80a Upgrade cocos/storage & extensions to v3.13 2016-08-05 19:48:24 +08:00
pandamicro ea07f2dd89 Fix unzip header url 2016-05-19 09:45:53 +08:00
pandamicro 87ca37f50f Add AssetsManagerEx to extension 2016-05-18 14:19:55 +08:00