mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-22 16:30:23 +00:00
Clang/mac fixes
This commit is contained in:
parent
b4f87e7a50
commit
f2f911e5b0
5 changed files with 19 additions and 26 deletions
|
@ -602,7 +602,7 @@ DataNode<Collision>* DynOS_Col_Parse(GfxData* aGfxData, DataNode<Collision>* aNo
|
|||
aNode->mLoadIndex = aGfxData->mLoadIndex++;
|
||||
|
||||
if (aGfxData->mErrorCount > 0) {
|
||||
Print("Failed to parse collision: '%s'", aNode->mName);
|
||||
Print("Failed to parse collision: '%s'", aNode->mName.begin());
|
||||
}
|
||||
|
||||
return aNode;
|
||||
|
|
|
@ -16,9 +16,6 @@ extern "C" {
|
|||
static Movtex* ParseMovtexQCSymbolArg(GfxData* aGfxData, DataNode<MovtexQC>* aNode, u64 aTokenIndex) {
|
||||
const String& _Arg = aNode->mTokens[aTokenIndex];
|
||||
|
||||
// Other constants
|
||||
movtexqc_constant(NULL);
|
||||
|
||||
// Movtexs
|
||||
for (auto& _Node : aGfxData->mMovtexs) {
|
||||
if (_Arg == _Node->mName) {
|
||||
|
|
|
@ -49,7 +49,7 @@ void DynOS_Lvl_Activate(s32 modIndex, const SysPath &aPackFolder, const char *aL
|
|||
auto& newScriptNode = newScripts[newScripts.Count() - 1];
|
||||
const void* originalScript = DynOS_Builtin_ScriptPtr_GetFromName(newScriptNode->mName.begin());
|
||||
if (originalScript == NULL) {
|
||||
Print("Could not find level to override: '%s'", newScriptNode->mName);
|
||||
Print("Could not find level to override: '%s'", newScriptNode->mName.begin());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
16
developer/clang.sh
Executable file
16
developer/clang.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
if [ $# -eq 0 ]; then
|
||||
make DEBUG=1 DEVELOPMENT=1 STRICT=1 COMPILER=clang -j
|
||||
else
|
||||
make DEBUG=1 DEVELOPMENT=1 COMPILER=clang -j
|
||||
fi
|
||||
|
||||
# find file
|
||||
FILE=./build/us_pc/sm64.us.f3dex2e.exe
|
||||
if [ ! -f "$FILE" ]; then
|
||||
FILE=./build/us_pc/sm64.us.f3dex2e
|
||||
fi
|
||||
|
||||
$FILE &
|
|
@ -49,28 +49,8 @@ static void debug_warp_level2() {
|
|||
dynos_warp_to_level(gCurrLevelNum, gCurrAreaIndex^3, 1);
|
||||
}
|
||||
|
||||
#include "src/game/camera.h"
|
||||
static void debug_warp_level3() {
|
||||
//dynos_warp_to_level(gCurrLevelNum, gCurrAreaIndex^3, 1);
|
||||
u8 cameraModes[] = {
|
||||
CAMERA_MODE_NONE,
|
||||
CAMERA_MODE_RADIAL,
|
||||
CAMERA_MODE_OUTWARD_RADIAL,
|
||||
CAMERA_MODE_BEHIND_MARIO,
|
||||
CAMERA_MODE_CLOSE,
|
||||
CAMERA_MODE_WATER_SURFACE,
|
||||
CAMERA_MODE_SLIDE_HOOT,
|
||||
CAMERA_MODE_INSIDE_CANNON,
|
||||
CAMERA_MODE_BOSS_FIGHT,
|
||||
CAMERA_MODE_FIXED,
|
||||
CAMERA_MODE_8_DIRECTIONS,
|
||||
CAMERA_MODE_FREE_ROAM,
|
||||
CAMERA_MODE_SPIRAL_STAIRS,
|
||||
};
|
||||
static int index = 0;
|
||||
index = (index + 1)%15;
|
||||
printf(">>> %u\n", index);
|
||||
set_camera_mode(gCamera, cameraModes[index], 0);
|
||||
dynos_warp_to_level(LEVEL_CASTLE_GROUNDS, 1, 1);
|
||||
}
|
||||
|
||||
static void debug_grand_star(void) {
|
||||
|
|
Loading…
Reference in a new issue