Skip to content

Commit

Permalink
Merge pull request #54 from roblabla/fix-comparison-tool
Browse files Browse the repository at this point in the history
Correctly name PDB file
  • Loading branch information
roblabla committed Dec 21, 2023
2 parents dbaad95 + 5a06751 commit 4ddabbb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/implemented.csv
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ FileSystem::WriteDataToFile
Supervisor::AddedCallback
Supervisor::LoadPbg3
Supervisor::RegisterChain
Supervisor::Parse
Supervisor::LoadConfig
InitD3dDevice
InitD3dRendering
Clear
Expand Down
3 changes: 2 additions & 1 deletion scripts/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def configure(build_type):
writer.rule("as", "$gas -o $out $in")
writer.rule("rc", "$rc /fo $out $in")
writer.rule(
"link", "$link /out:$out $link_flags /debug /pdb:$out.pdb $link_libs $in"
"link",
"""cmd /c "for %F in ("$out") do $link /out:%F $link_flags /debug /pdb:%~pdnF.pdb $link_libs $in" """,
)
writer.rule(
"copyicon",
Expand Down
2 changes: 1 addition & 1 deletion src/Supervisor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ i32 InitD3dInterface(void)
}

// TODO: Not a perfect match.
ZunResult Supervisor::Parse(char *path)
ZunResult Supervisor::LoadConfig(char *path)
{
u8 *data;
FILE *wavFile;
Expand Down
2 changes: 1 addition & 1 deletion src/Supervisor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ struct Supervisor
i32 LoadPbg3(i32 pbg3FileIdx, char *filename);
void ReleasePbg3(i32 pbg3FileIdx);

ZunResult Parse(char *path);
ZunResult LoadConfig(char *path);

void TickTimer(i32 *frames, f32 *subframes);

Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdL

g_Supervisor.hInstance = hInstance;

if (g_Supervisor.Parse(TH_CONFIG_FILE) != ZUN_SUCCESS)
if (g_Supervisor.LoadConfig(TH_CONFIG_FILE) != ZUN_SUCCESS)
{
g_GameErrorContext.Flush();
return -1;
Expand Down

0 comments on commit 4ddabbb

Please sign in to comment.