Fix compile error
This commit is contained in:
@@ -1,21 +1,22 @@
|
||||
var SPEED = 3.0;
|
||||
var DURATION = 2.0;
|
||||
|
||||
function MoveCubeCutscene(params) {
|
||||
Cutscene.call(this);
|
||||
this.cube = params.cube;
|
||||
|
||||
var startX = this.cube.position.position.x;
|
||||
var SPEED = 3.0;
|
||||
var DURATION = 2.0;
|
||||
|
||||
this.anim = new Animation([
|
||||
[
|
||||
{ time: 0.0, value: startX, easing: Easing.outQuad },
|
||||
{ time: DURATION, value: startX - SPEED * DURATION, easing: Easing.inOutQuad },
|
||||
{ time: DURATION * 2, value: startX }
|
||||
{ time: 0.0, value: 0, easing: Easing.inOutQuad },
|
||||
{ time: DURATION, value: -(SPEED * DURATION), easing: Easing.inOutQuad },
|
||||
{ time: DURATION * 2, value: 0 }
|
||||
]
|
||||
]);
|
||||
|
||||
this.anim.onComplete = function() { Cutscene.finish(); };
|
||||
this.anim.onComplete = function() {
|
||||
Cutscene.finish();
|
||||
};
|
||||
}
|
||||
|
||||
MoveCubeCutscene.prototype = Object.create(Cutscene.prototype);
|
||||
|
||||
@@ -21,7 +21,7 @@ errorret_t assetInitDolphinFAT(void) {
|
||||
if(!fatInitDefault()) errorThrow("Failed to initialize FAT filesystem.");
|
||||
|
||||
char_t **dolphinSearchPath = (char_t **)ASSET_DOLPHIN_PATHS;
|
||||
char_t foundPath[ASSET_FILE_PATH_MAX];
|
||||
char_t foundPath[ASSET_DOLPHIN_FAT_PATH_MAX];
|
||||
foundPath[0] = '\0';
|
||||
do {
|
||||
DIR *pdir = opendir(*dolphinSearchPath);
|
||||
@@ -35,7 +35,7 @@ errorret_t assetInitDolphinFAT(void) {
|
||||
|
||||
snprintf(
|
||||
foundPath,
|
||||
ASSET_FILE_PATH_MAX,
|
||||
ASSET_DOLPHIN_FAT_PATH_MAX,
|
||||
"%s/%s",
|
||||
*dolphinSearchPath,
|
||||
ASSET_FILE_NAME
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#pragma once
|
||||
#include "error/error.h"
|
||||
|
||||
#define ASSET_DOLPHIN_FAT_PATH_MAX FILENAME_MAX
|
||||
|
||||
static const char_t *ASSET_DOLPHIN_PATHS[] = {
|
||||
"/",
|
||||
"/Dusk",
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
errorret_t assetInitPBP(const char_t *pbpPath) {
|
||||
assertNotNull(pbpPath, "PBP path cannot be null.");
|
||||
assertStrLenMin(pbpPath, 1, "PBP path cannot be empty.");
|
||||
assertStrLenMax(pbpPath, ASSET_FILE_PATH_MAX, "PBP path is too long.");
|
||||
assertStrLenMax(pbpPath, ASSET_PBP_PATH_MAX, "PBP path is too long.");
|
||||
|
||||
ASSET.platform.pbpFile = fopen(pbpPath, "rb");
|
||||
if(ASSET.platform.pbpFile == NULL) {
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
#define ASSET_PBP_SIGNATURE_SIZE 4
|
||||
#define ASSET_PBP_SIGNATURE "\0PBP"
|
||||
|
||||
#define ASSET_PBP_PATH_MAX FILENAME_MAX
|
||||
|
||||
typedef struct {
|
||||
char_t signature[ASSET_PBP_SIGNATURE_SIZE];
|
||||
uint32_t version;
|
||||
|
||||
Reference in New Issue
Block a user