Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
################################################################################
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
################################################################################

/bin/Debug
/obj
Binary file added .vs/CAT_421_upgrade/v16/.suo
Binary file not shown.
Binary file added .vs/CustomActorToolkit/v16/.suo
Binary file not shown.
7 changes: 7 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\CustomActorToolkit.csproj",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
15 changes: 15 additions & 0 deletions .vs/tasks.vs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "0.2.1",
"tasks": [
{
"taskLabel": "task-CustomActorToolkit.csproj",
"appliesTo": "CustomActorToolkit.csproj.user",
"type": "launch"
},
{
"taskLabel": "task-CustomActorToolkit",
"appliesTo": "CustomActorToolkit.csproj",
"type": "msbuild"
}
]
}
7,253 changes: 13 additions & 7,240 deletions CustomActorToolkit.csproj

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions CustomActorToolkit.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
<ErrorReportUrlHistory />
<FallbackCulture>es-ES</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
<ProjectView>ShowAllFiles</ProjectView>
</PropertyGroup>
</Project>
25 changes: 25 additions & 0 deletions CustomActorToolkit.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.32407.337
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomActorToolkit", "CustomActorToolkit.csproj", "{220F9AC5-5C9E-490B-BA68-B84E8D30845E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{220F9AC5-5C9E-490B-BA68-B84E8D30845E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{220F9AC5-5C9E-490B-BA68-B84E8D30845E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{220F9AC5-5C9E-490B-BA68-B84E8D30845E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{220F9AC5-5C9E-490B-BA68-B84E8D30845E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {90AD0177-E2E5-4509-865C-176D20523B72}
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

260 changes: 173 additions & 87 deletions MainForm.cs

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions compile_z64hdr.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@echo off

set "tmpdir=%cd%\tmp\z64hdr"

echo %tmpdir%

rmdir /S /Q "%tmpdir%"
mkdir "%tmpdir%"

set "z64hdr=%cd%\z64hdr"

set "PATH=%cd%\mips32-elf-toolchain\bin;%PATH%"

mips32-elf-gcc -I "%z64hdr%" -I "%z64hdr%\include" -I "%z64hdr%\include\include" -I "%z64hdr%\include\assets" -I "%z64hdr%\include\src" -G 0 -O1 -fno-reorder-blocks -std=gnu99 -mtune=vr4300 -march=vr4300 -mabi=32 -c -mips3 -mno-explicit-relocs -mno-memcpy -mno-check-zero-division -o "%tmpdir%\actor.o" "%input%"

IF %ERRORLEVEL% NEQ 0 (
echo -
echo /!\ Compilation failed!
exit %ERRORLEVEL%
)

fado\fado -n actor -o "%tmpdir%\relocs.s" "%tmpdir%\actor.o"

mips32-elf-as -march=vr4300 -32 -Iinclude "%tmpdir%\relocs.s" -o "%tmpdir%\relocs.o"

mips32-elf-ld -L "%z64hdr%\common" -L "%z64hdr%\oot_mq_debug" --defsym=VRAM_START=%vram_start% -T "%z64hdr%\oot_mq_debug\syms.ld" -T ".\fado\script.ld" --emit-relocs -o "%tmpdir%\actor.zovl.o" "%tmpdir%\actor.o" "%tmpdir%\relocs.o"

IF %ERRORLEVEL% NEQ 0 (
echo -
echo /!\ Linking failed!
exit %ERRORLEVEL%
)

mips32-elf-objcopy -j .zovl -O binary "%tmpdir%\actor.zovl.o" "%output%"

mips32-elf-objdump -t "%tmpdir%\actor.zovl.o" | findstr /I ".zovl" | findstr /I "constructor destructor init update main dest draw init_vars initvars" >> "%output_symbols%"

mips32-elf-objdump -t "%tmpdir%\actor.zovl.o" | findstr /I "_actorSegmentBssSize" >> "%output_symbols%"

echo done, output %output% !