commit asset prog
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include "display/display.h"
|
||||
#include "ecs/ecssystem.h"
|
||||
#include "scene/node.h"
|
||||
#include "asset/assetsystem.h"
|
||||
#include "asset/asset.h"
|
||||
|
||||
#include "scene/test/scenetest.h"
|
||||
|
||||
@@ -26,8 +26,12 @@ errorret_t engineInit(void) {
|
||||
timeInit();
|
||||
consoleInit();
|
||||
ecsSystemInit();
|
||||
errorChain(assetSystemInit());
|
||||
errorChain(assetInit());
|
||||
errorChain(displayInit());
|
||||
|
||||
assetLoad("test.palette.dp123123");
|
||||
// assetLoad("test.palette.dpf");
|
||||
if(ASSET.state == ASSET_STATE_ERROR) errorChain(ASSET.error);
|
||||
|
||||
sceneTestAdd();
|
||||
|
||||
@@ -45,7 +49,7 @@ errorret_t engineUpdate(void) {
|
||||
errorret_t engineDispose(void) {
|
||||
ecsSystemDispose();
|
||||
errorChain(displayDispose());
|
||||
assetSystemDispose();
|
||||
assetDispose();
|
||||
consoleDispose();
|
||||
|
||||
errorOk();
|
||||
|
Reference in New Issue
Block a user