Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Minor changes for save data utility #3005

Merged
merged 6 commits into from Jul 16, 2017

Conversation

Dangles91
Copy link
Contributor

Finished cellSaveDataGetListItem implementation
Implemented cellSaveDataUserGetListItem
-- this will help games like RDR and Minecraft load correctly

Minor fixes to save_op
Added comments for future UI behaviours
Removed PFuncDone callback from save_op, not used or required.

Finished cellSaveDataGetListItem implementation
Implemented cellSaveDataUserGetListItem
Minor fixes to save_op
@mention-bot
Copy link

@Dangles91, thanks for your PR! By analyzing the history of the files in this pull request, we identified @Nekotekina, @flash-fire and @TomiYuga to be potential reviewers.

@kamer1337
Copy link

nice not sure if its this commit but it fixed tony hawk's proving ground load save game

@@ -83,6 +83,11 @@ static NEVER_INLINE s32 savedata_op(ppu_thread& ppu, u32 operation, u32 version,
vm::ptr<CellSaveDataFileSet> fileSet = g_savedata_context.ptr(&savedata_context::fileSet);

// path of the specified user (00000001 by default)
if (userId == CELL_SYSUTIL_USERID_CURRENT)
Copy link
Member

Choose a reason for hiding this comment

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

It's already checked for zero later

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would you prefer to remove the step for retrieving the current ID, where the TODO is. Or remove the check for 0 in the string initialisation?

@@ -296,6 +314,10 @@ static NEVER_INLINE s32 savedata_op(ppu_thread& ppu, u32 operation, u32 version,
}
case CELL_SAVEDATA_FOCUSPOS_NEWDATA:
{
//focus new data, placed at the end of the vector.
// not currently supported in the ui
Copy link
Member

Choose a reason for hiding this comment

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

Wrong comments are missing the point, new data is focused on -1 value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was emulate adding a new data item to the list. Instead we use a new save data button.

See - https://youtu.be/_f0kC7lgdtM?t=46s

@@ -60,10 +61,9 @@ std::mutex g_savedata_mutex;

static NEVER_INLINE s32 savedata_op(ppu_thread& ppu, u32 operation, u32 version, vm::cptr<char> dirName,
u32 errDialog, PSetList setList, PSetBuf setBuf, PFuncList funcList, PFuncFixed funcFixed, PFuncStat funcStat,
PFuncFile funcFile, u32 container, u32 unknown, vm::ptr<void> userdata, u32 userId, PFuncDone funcDone)
PFuncFile funcFile, u32 container, u32 unknown, vm::ptr<void> userdata, u32 userId)
Copy link
Member

Choose a reason for hiding this comment

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

Nope, this megafunction was modelled after an existing one. The arguments, their positions were preserved.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll chuck this back in on the next commit

@@ -79,6 +79,8 @@ enum
CELL_SYSUTIL_SYSCHAT_STOP = 0x0162,
CELL_SYSUTIL_SYSCHAT_VOICE_STREAMING_RESUMED = 0x0163,
CELL_SYSUTIL_SYSCHAT_VOICE_STREAMING_PAUSED = 0x0164,

CELL_SYSUTIL_USERID_CURRENT = 0,
Copy link
Member

Choose a reason for hiding this comment

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

This repeats definition in another file. Just use zeros everywhere, it doesn't matter.

@Nekotekina
Copy link
Member

Stop spamming with all these things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants