ROM Hack [Request] FFX Switch Saves (Any %, Any Region)

Jungle_Jon

Well-Known Member
OP
Member
Joined
Dec 26, 2015
Messages
114
Trophies
0
Age
33
XP
223
Country
I'm looking to make a very simple application that will automate converting FFX PC > Switch & Switch > PC.
Converting to Switch > PC will be easy, but I need a few saves to check if there are any difference in the first 8 address (0x0h - 0x8h) between consoles and games versions.

If have any saves to hand please upload them and note which region it is, it will be a big help. Thank you.
 

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,628
Country
Germany
It's never used, in fact when the switch loads a save, these 8 byte are completly ignored:

Code:
__int64 __fastcall nx_load_read(int this)
{
  unsigned int ret; // w20
  const char *v3; // x1
  __int64 buffer; // x19
  unsigned __int64 fileSize; // [xsp+8h] [xbp-228h] MAPDST
  char s; // [xsp+10h] [xbp-220h]
  nn::fs *handle; // [xsp+218h] [xbp-18h]

  if ( (unsigned int)SaveDataCheckCrc() )
  {
    sprintf(&s, "%s%s", "save:/", *(_QWORD *)local_save_metainfo + 96LL * this);
    if ( (unsigned int)nn::fs::OpenFile(&handle, &s, 1LL) )
    {
      ret = 5;
    }
    else
    {
      fileSize = 0LL;
      if ( (unsigned int)nn::fs::GetFileSize(&fileSize, handle) )
      {
        ret = 4;
      }
      else
      {
        buffer = operator new[](fileSize);
        if ( (unsigned int)nn::fs::ReadFile(handle, 0LL, buffer, fileSize) )
        {
          ret = 4;
        }
        else
        {
          dword_139C708 = fileSize - 8;
          memcpy((void *)qword_139C710, (const void *)(buffer + 8), (signed int)fileSize - 8);
          ret = 3;
        }
        operator delete((void *)buffer);
      }
      nn::fs::CloseFile(handle, v3);
    }
  }
  else
  {
    ret = 6;
  }
  return ret;
}

And if you're asking what these 8 bytes are, they are the return value of "nn::time::StandardUserSystemClock::GetCurrentTime(&buf);"
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: Is Janet Jackson alive?