Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

pfile cleaning #2 #373

Merged
merged 2 commits into from
Oct 1, 2018
Merged

pfile cleaning #2 #373

merged 2 commits into from
Oct 1, 2018

Conversation

squidcc
Copy link
Contributor

@squidcc squidcc commented Oct 1, 2018

Don't worry, these are all small (and bin exact) :
clean GetSaveDirectory and pfile_read_hero
clean pfile_open_save_archive
clean pfile_archive_contains_game
clean pfile_get_player_class
clean pfile_get_file_name
clean GetTempSaveNames
clean GetPermSaveNames
clean pfile_update
clean pfile_init_save_directory
clean pfile_write_hero
clean pfile_open_archive
clean pfile_flush_W

clean pfile_open_save_archive
clean pfile_archive_contains_game
clean pfile_get_player_class
clean pfile_get_file_name
clean GetTempSaveNames
clean GetPermSaveNames
clean pfile_update
clean pfile_init_save_directory
clean pfile_write_hero
clean pfile_open_archive
clean pfile_flush_W
Copy link
Contributor

@mewmew mewmew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. How do we want to do with mpqapi_update_multi_creation_time? It's probably a stub function that gets merged with other stub functions when compiling.

Source/pfile.cpp Outdated
return TRUE;

if ( a1 && gbMaxPlayers > 1 )
MI_Dummy(save_num); // some eliminated function...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mpqapi_update_multi_creation_time from the debug release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add it in and let it get eliminated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Do you wanna update the PR with it? For reference, it's at address 0x41741F of the debug release, if you wanna check something.

@mewmew mewmew merged commit b9eca92 into diasurgical:nightly Oct 1, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants