mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-16 21:05:12 +00:00
dont use asm-processor, use iconv for reencoding utf8 to eucjp
This commit is contained in:
parent
155ad4f59f
commit
1716be6696
3 changed files with 16 additions and 4 deletions
8
Makefile
8
Makefile
|
@ -308,11 +308,11 @@ $(BUILD_DIR)/src/libultra/rmon/%.o: CC := $(CC_OLD)
|
|||
$(BUILD_DIR)/src/code/jpegutils.o: CC := $(CC_OLD)
|
||||
$(BUILD_DIR)/src/code/jpegdecoder.o: CC := $(CC_OLD)
|
||||
|
||||
$(BUILD_DIR)/src/boot/%.o: CC := $(PYTHON) tools/asm_processor/build.py $(CC) -- $(AS) $(ASFLAGS) --
|
||||
$(BUILD_DIR)/src/code/%.o: CC := $(PYTHON) tools/asm_processor/build.py $(CC) -- $(AS) $(ASFLAGS) --
|
||||
$(BUILD_DIR)/src/overlays/%.o: CC := $(PYTHON) tools/asm_processor/build.py $(CC) -- $(AS) $(ASFLAGS) --
|
||||
# For using asm_processor on some files:
|
||||
#$(BUILD_DIR)/.../%.o: CC := $(PYTHON) tools/asm_processor/build.py $(CC) -- $(AS) $(ASFLAGS) --
|
||||
|
||||
$(BUILD_DIR)/%.o: CC := tools/reencode.sh $(CC)
|
||||
|
||||
$(BUILD_DIR)/assets/%.o: CC := $(PYTHON) tools/asm_processor/build.py $(CC) -- $(AS) $(ASFLAGS) --
|
||||
else
|
||||
$(BUILD_DIR)/src/libultra/libc/ll.o: OPTFLAGS := -Ofast
|
||||
$(BUILD_DIR)/src/%.o: CC := $(CC) -fexec-charset=euc-jp
|
||||
|
|
|
@ -1408,6 +1408,7 @@ void CollisionCheck_NoBlood(PlayState* play, Collider* collider, Vec3f* v) {
|
|||
* Used by collider types HIT0 and HIT8.
|
||||
*/
|
||||
void CollisionCheck_BlueBlood(PlayState* play, Collider* collider, Vec3f* v) {
|
||||
static s32 pad;
|
||||
static EffectSparkInit sparkInit;
|
||||
s32 effectIndex;
|
||||
|
||||
|
|
11
tools/reencode.sh
Executable file
11
tools/reencode.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
srcfile="${@: -1}"
|
||||
|
||||
tempfile=`mktemp --tmpdir oot_XXXXXXXX.c`
|
||||
|
||||
iconv -f UTF-8 -t EUC-JP -o "$tempfile" "$srcfile"
|
||||
|
||||
"${@:1:$# - 1}" -I `dirname $srcfile` $tempfile
|
Loading…
Add table
Add a link
Reference in a new issue