Post Reply 
 
Thread Rating:
  • 3 Votes - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Valkyria Chronicles II
11-01-2013, 06:05 AM
Post: #96
RE: Valkyria Chronicles II
(10-31-2013 04:24 PM)jlperkins Wrote:  So, Brackets, seeing as you are a regular contributor, how high would you rate the difficulty of adding open file handles to the savestate data?

I took a peek at the code in github, and it seems like the DoSave function in the DirectoryFileSystem.cpp is just a stub, like a benign version of a "not yet implemented" exception. Am I talking outta my arse?

That's about right. The job of each DoState function (there are a lot throughout the emulator) is to save OR load its individual chunk of state. This is actually the only one that I think is not implemented, iirc. (well and VFSFileSystem, but it's the same basically.)

The std::map "entries" is really the only thing that needs to be saved/restored. Unfortunately, this map consists of operating system file handles. It'll need to be changed to remember the relative file path, and other open parameters.

Then it'll need to save state, just ftell() maybe? Also when restoring, it'll probably need to treat truncate as read/write.

I don't think there's anything else but I'm not totally sure.

-[Unknown]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Valkyria Chronicles II - BlackDaemon - 12-26-2012, 07:04 PM
RE: [v0.4] Valkyria Chronicles II - sim981 - 02-25-2013, 11:45 PM
RE: [v0.4] Valkyria Chronicles II - sim981 - 02-26-2013, 01:04 AM
RE: [v0.4] Valkyria Chronicles II - sim981 - 02-26-2013, 01:41 AM
RE: [v0.4] Valkyria Chronicles II - sim981 - 02-26-2013, 03:00 AM
RE: Valkyria Chronicles II - fullmoon280 - 03-22-2013, 03:43 AM
RE: Valkyria Chronicles II - [Unknown] - 03-22-2013, 03:58 AM
RE: Valkyria Chronicles II - mammoth - 04-16-2013, 08:10 AM
RE: Valkyria Chronicles II - LordPusha - 04-24-2013, 05:58 PM
RE: Valkyria Chronicles II - nerono - 04-24-2013, 06:29 PM
RE: Valkyria Chronicles II - mammoth - 04-29-2013, 10:59 PM
RE: Valkyria Chronicles II - Ryan86me - 05-03-2013, 11:09 PM
RE: Valkyria Chronicles II - zhantus - 06-22-2013, 10:56 PM
RE: Valkyria Chronicles II - hotsuma - 06-23-2013, 05:15 AM
RE: Valkyria Chronicles II - chengsta - 06-24-2013, 10:07 PM
RE: Valkyria Chronicles II - chrisDLCTS - 06-24-2013, 11:36 PM
RE: Valkyria Chronicles II - Hurrfdurrf22 - 06-29-2013, 11:07 AM
RE: Valkyria Chronicles II - Brilanchery - 06-29-2013, 04:26 PM
RE: Valkyria Chronicles II - Brilanchery - 06-30-2013, 05:05 AM
RE: Valkyria Chronicles II - [Unknown] - 06-30-2013, 05:50 AM
RE: Valkyria Chronicles II - Brilanchery - 06-30-2013, 05:57 AM
RE: Valkyria Chronicles II - [Unknown] - 06-30-2013, 07:12 AM
RE: Valkyria Chronicles II - Brilanchery - 06-30-2013, 07:15 AM
RE: Valkyria Chronicles II - [Unknown] - 06-30-2013, 07:57 AM
RE: Valkyria Chronicles II - Brilanchery - 06-30-2013, 11:12 AM
RE: Valkyria Chronicles II - [Unknown] - 06-30-2013, 06:17 PM
RE: Valkyria Chronicles II - Brilanchery - 07-01-2013, 10:13 AM
RE: Valkyria Chronicles II - Ripster40 - 07-01-2013, 07:12 AM
RE: Valkyria Chronicles II - Mosquito - 07-02-2013, 12:06 PM
RE: Valkyria Chronicles II - Brilanchery - 07-03-2013, 03:44 PM
RE: Valkyria Chronicles II - BronBron06 - 07-23-2013, 02:59 AM
RE: Valkyria Chronicles II - ichirei07 - 07-28-2013, 08:42 AM
RE: Valkyria Chronicles II - BronBron06 - 07-31-2013, 01:10 AM
RE: Valkyria Chronicles II - Winn001 - 08-01-2013, 11:23 AM
RE: Valkyria Chronicles II - ichirei07 - 08-01-2013, 04:18 PM
RE: Valkyria Chronicles II - Winn001 - 08-01-2013, 05:59 PM
RE: Valkyria Chronicles II - vanmido - 08-02-2013, 09:32 AM
RE: Valkyria Chronicles II - cross93 - 08-14-2013, 02:12 PM
RE: Valkyria Chronicles II - BronBron06 - 08-14-2013, 02:15 AM
RE: Valkyria Chronicles II - powerlucario - 09-05-2013, 02:19 PM
RE: Valkyria Chronicles II - nvrbnacmp - 09-11-2013, 12:39 PM
RE: Valkyria Chronicles II - cremedecassis - 09-24-2013, 11:47 PM
RE: Valkyria Chronicles II - Ritori - 09-25-2013, 06:29 AM
RE: Valkyria Chronicles II - TheDax - 09-25-2013, 03:59 PM
RE: Valkyria Chronicles II - Ritori - 09-25-2013, 06:34 PM
RE: Valkyria Chronicles II - TheDax - 09-25-2013, 06:51 PM
RE: Valkyria Chronicles II - Ritori - 09-25-2013, 07:14 PM
RE: Valkyria Chronicles II - TheDax - 09-25-2013, 07:48 PM
RE: Valkyria Chronicles II - King of Worms - 09-29-2013, 04:17 PM
RE: Valkyria Chronicles II - nawama004 - 09-29-2013, 04:39 PM
RE: Valkyria Chronicles II - Papillon - 10-02-2013, 08:30 PM
RE: Valkyria Chronicles II - [Unknown] - 10-02-2013, 09:43 PM
RE: Valkyria Chronicles II - Papillon - 10-02-2013, 10:00 PM
RE: Valkyria Chronicles II - The Phoenix - 10-03-2013, 11:14 AM
RE: Valkyria Chronicles II - dron1885 - 10-03-2013, 09:42 PM
RE: Valkyria Chronicles II - [Unknown] - 10-04-2013, 03:40 AM
RE: Valkyria Chronicles II - Papillon - 10-04-2013, 11:22 AM
RE: Valkyria Chronicles II - WarPig262 - 10-09-2013, 06:20 PM
RE: Valkyria Chronicles II - TheDax - 10-09-2013, 06:27 PM
RE: Valkyria Chronicles II - WarPig262 - 10-09-2013, 06:39 PM
RE: Valkyria Chronicles II - TheDax - 10-09-2013, 07:03 PM
RE: Valkyria Chronicles II - WarPig262 - 10-09-2013, 11:12 PM
RE: Valkyria Chronicles II - TheDax - 10-09-2013, 11:48 PM
RE: Valkyria Chronicles II - [Unknown] - 10-10-2013, 12:02 AM
RE: Valkyria Chronicles II - TheDax - 10-10-2013, 12:21 AM
RE: Valkyria Chronicles II - WarPig262 - 10-10-2013, 12:35 AM
RE: Valkyria Chronicles II - cross14 - 10-14-2013, 01:09 AM
RE: Valkyria Chronicles II - Ritori - 10-14-2013, 05:03 PM
RE: Valkyria Chronicles II - [Unknown] - 10-15-2013, 04:16 AM
RE: Valkyria Chronicles II - jlperkins - 10-16-2013, 04:26 PM
after some testing... - jlperkins - 10-17-2013, 07:25 PM
RE: Valkyria Chronicles II - valefor - 10-18-2013, 02:40 AM
RE: Valkyria Chronicles II - jlperkins - 10-18-2013, 05:00 PM
RE: Valkyria Chronicles II - valefor - 10-18-2013, 07:04 PM
RE: Valkyria Chronicles II - mitul103 - 10-26-2013, 11:24 PM
RE: Valkyria Chronicles II - jlperkins - 10-29-2013, 06:43 PM
RE: Valkyria Chronicles II - [Unknown] - 10-27-2013, 03:53 AM
RE: Valkyria Chronicles II - Onykan - 10-27-2013, 11:05 AM
RE: Valkyria Chronicles II - Ritori - 10-27-2013, 11:56 AM
RE: Valkyria Chronicles II - Onykan - 10-27-2013, 12:30 PM
RE: Valkyria Chronicles II - [Unknown] - 10-30-2013, 12:56 AM
RE: Valkyria Chronicles II - jlperkins - 10-31-2013, 04:24 PM
RE: Valkyria Chronicles II - [Unknown] - 11-01-2013 06:05 AM
RE: Valkyria Chronicles II - Ddraig - 10-31-2013, 09:02 PM
RE: Valkyria Chronicles II - Ritori - 11-01-2013, 05:20 AM
RE: Valkyria Chronicles II - Ddraig - 11-03-2013, 04:17 AM
RE: Valkyria Chronicles II - Namulp - 11-03-2013, 03:54 AM
RE: Valkyria Chronicles II - Tat0r - 11-06-2013, 02:13 AM
RE: Valkyria Chronicles II - mitul103 - 11-06-2013, 04:18 PM
RE: Valkyria Chronicles II - Tat0r - 11-06-2013, 05:09 PM
RE: Valkyria Chronicles II - WarPig262 - 11-09-2013, 11:03 PM
RE: Valkyria Chronicles II - Ritori - 11-09-2013, 11:51 PM
RE: Valkyria Chronicles II - mitul103 - 11-23-2013, 08:06 PM
RE: Valkyria Chronicles II - isamu - 11-11-2013, 07:22 PM
RE: Valkyria Chronicles II - Ritori - 11-12-2013, 01:35 AM
RE: Valkyria Chronicles II - [Unknown] - 11-29-2013, 03:34 PM
RE: Valkyria Chronicles II - Arcitens - 11-29-2013, 04:34 PM
RE: Valkyria Chronicles II - Arcitens - 12-04-2013, 04:53 PM
RE: Valkyria Chronicles II - Arcitens - 12-13-2013, 09:39 AM
RE: Valkyria Chronicles II - Arcitens - 12-14-2013, 09:14 PM
RE: Valkyria Chronicles II - [Unknown] - 12-15-2013, 07:38 AM
RE: Valkyria Chronicles II - rmcin329 - 12-27-2013, 01:12 AM
RE: Valkyria Chronicles II - [Unknown] - 12-27-2013, 08:04 AM
RE: Valkyria Chronicles II - rmcin329 - 12-27-2013, 08:39 AM
RE: Valkyria Chronicles II - BronBron06 - 12-27-2013, 09:32 AM
RE: Valkyria Chronicles II - rmcin329 - 12-27-2013, 09:36 AM
RE: Valkyria Chronicles II - BronBron06 - 12-27-2013, 09:37 AM
RE: Valkyria Chronicles II - rmcin329 - 12-27-2013, 09:39 AM
RE: Valkyria Chronicles II - rmcin329 - 12-27-2013, 08:47 PM
RE: Valkyria Chronicles II - mr.chya - 12-27-2013, 09:16 PM
RE: Valkyria Chronicles II - rmcin329 - 12-27-2013, 09:59 PM
RE: Valkyria Chronicles II - mr.chya - 12-28-2013, 12:17 AM
RE: Valkyria Chronicles II - rmcin329 - 12-28-2013, 09:59 PM
RE: Valkyria Chronicles II - [Unknown] - 12-28-2013, 10:50 PM
RE: Valkyria Chronicles II - BronBron06 - 12-28-2013, 11:31 PM
RE: Valkyria Chronicles II - rmcin329 - 12-29-2013, 12:25 AM
RE: Valkyria Chronicles II - [Unknown] - 12-29-2013, 01:31 AM
RE: Valkyria Chronicles II - BronBron06 - 12-29-2013, 01:25 AM
RE: Valkyria Chronicles II - rmcin329 - 12-29-2013, 08:37 AM
RE: Valkyria Chronicles II - vedil - 12-29-2013, 12:24 PM
RE: Valkyria Chronicles II - rmcin329 - 12-29-2013, 09:40 PM
RE: Valkyria Chronicles II - vedil - 12-30-2013, 09:50 AM
RE: Valkyria Chronicles II - rmcin329 - 12-30-2013, 09:53 AM
RE: Valkyria Chronicles II - vedil - 12-30-2013, 12:00 PM
RE: Valkyria Chronicles II - rmcin329 - 12-30-2013, 07:01 PM
RE: Valkyria Chronicles II - [Unknown] - 12-30-2013, 09:35 PM
RE: Valkyria Chronicles II - rmcin329 - 12-30-2013, 10:03 PM
RE: Valkyria Chronicles II - [Unknown] - 12-31-2013, 12:28 AM
RE: Valkyria Chronicles II - rmcin329 - 12-31-2013, 12:34 AM
RE: Valkyria Chronicles II - [Unknown] - 12-31-2013, 05:58 AM
RE: Valkyria Chronicles II - rmcin329 - 01-02-2014, 11:43 PM
RE: Valkyria Chronicles II - ValentineVxx - 01-17-2014, 04:40 PM
RE: Valkyria Chronicles II - rmcin329 - 01-17-2014, 09:52 PM
RE: Valkyria Chronicles II - ValentineVxx - 01-18-2014, 08:56 PM
RE: Valkyria Chronicles II - riceygringo - 02-05-2014, 03:53 PM
RE: Valkyria Chronicles II - [Unknown] - 02-06-2014, 02:34 AM
RE: Valkyria Chronicles II - Nanaya99 - 02-18-2014, 05:46 PM
RE: Valkyria Chronicles II - vnctdj - 02-18-2014, 10:38 PM
RE: Valkyria Chronicles II - denslife16 - 02-19-2014, 02:45 AM
RE: Valkyria Chronicles II - denslife16 - 02-19-2014, 05:13 AM
RE: Valkyria Chronicles II - TheDax - 02-19-2014, 05:20 AM
RE: Valkyria Chronicles II - denslife16 - 02-19-2014, 08:59 AM
RE: Valkyria Chronicles II - vnctdj - 03-14-2014, 09:28 AM
RE: Valkyria Chronicles II - The Phoenix - 03-15-2014, 04:36 AM
RE: Valkyria Chronicles II - tribal386 - 03-18-2014, 11:13 PM
RE: Valkyria Chronicles II - [Unknown] - 03-19-2014, 03:57 AM
RE: Valkyria Chronicles II - nero12 - 06-25-2014, 09:18 AM
RE: Valkyria Chronicles II - Yasutsuna25 - 06-30-2014, 04:00 PM
RE: Valkyria Chronicles II - Zedd_Zorander - 12-04-2014, 12:16 PM
RE: Valkyria Chronicles II - [Unknown] - 12-04-2014, 07:37 PM
RE: Valkyria Chronicles II - Zedd_Zorander - 12-05-2014, 12:31 PM
RE: Valkyria Chronicles II - [Unknown] - 12-05-2014, 04:18 PM
RE: Valkyria Chronicles II - weloveme - 12-16-2014, 04:31 PM
RE: Valkyria Chronicles II - [Unknown] - 12-17-2014, 06:20 AM
RE: Valkyria Chronicles II - nachosam - 02-04-2015, 06:17 AM
RE: Valkyria Chronicles II - vnctdj - 02-28-2015, 10:19 PM
RE: Valkyria Chronicles II - [Unknown] - 02-28-2015, 11:24 PM
RE: Valkyria Chronicles II - klopik - 03-02-2015, 07:56 AM
RE: Valkyria Chronicles II - hevelc - 07-27-2015, 04:52 AM
RE: Valkyria Chronicles II - [Unknown] - 07-27-2015, 05:42 AM
RE: Valkyria Chronicles II - SavageAce - 12-14-2015, 07:08 AM
RE: Valkyria Chronicles II - Clementee - 09-26-2015, 11:17 AM
RE: Valkyria Chronicles II - [Unknown] - 09-26-2015, 08:38 PM
RE: Valkyria Chronicles II - Clementee - 09-30-2015, 12:29 PM
RE: Valkyria Chronicles II - TheCondor - 10-14-2015, 01:28 AM
RE: Valkyria Chronicles II - Vashzaron - 03-12-2016, 11:37 PM
RE: Valkyria Chronicles II - weloveme - 10-16-2015, 11:55 PM
RE: Valkyria Chronicles II - [Unknown] - 10-17-2015, 03:51 AM
RE: Valkyria Chronicles II - weloveme - 10-17-2015, 06:46 AM
RE: Valkyria Chronicles II - cakuyan - 12-18-2015, 09:37 AM
RE: Valkyria Chronicles II - [Unknown] - 03-13-2016, 08:48 PM
RE: Valkyria Chronicles II - Vashzaron - 03-13-2016, 11:07 PM
RE: Valkyria Chronicles II - [Unknown] - 03-14-2016, 04:42 AM
RE: Valkyria Chronicles II - Vashzaron - 03-14-2016, 08:19 PM
RE: Valkyria Chronicles II - [Unknown] - 03-16-2016, 04:29 AM
RE: Valkyria Chronicles II - Concat - 07-25-2016, 01:11 PM
RE: Valkyria Chronicles II - [Unknown] - 09-03-2016, 04:42 PM
RE: Valkyria Chronicles II - riceygringo - 10-14-2016, 02:14 PM
RE: Valkyria Chronicles II - Grimms - 10-26-2016, 10:54 AM
RE: Valkyria Chronicles II - Grimms - 10-31-2016, 10:35 AM
RE: Valkyria Chronicles II - LunaMoo - 11-20-2016, 10:26 AM
RE: Valkyria Chronicles II - Vashzaron - 03-19-2017, 10:43 PM
Valkyria Chronicles 2 - Arcitens - 11-28-2013, 02:02 PM
RE: Valkyria Chronicles II - vnctdj - 11-28-2013, 08:40 PM
RE: Valkyria Chronicles II - Arcitens - 11-29-2013, 03:26 PM
[split] CwCheat Support - Nanaya99 - 02-18-2014, 08:32 PM
RE: CwCheat Support - Kokoro - 02-18-2014, 09:47 PM
Valkyria Chronicles 2 - newdon_20000 - 03-14-2014, 07:19 AM
RE: Valkyria Chronicles 2 - LunaMoo - 03-14-2014, 08:25 AM
Valkyria Chronicles II EU DLC? - klopik - 02-28-2015, 09:53 PM

Forum Jump: