ppsspp/Core/HLE/sceIo.h

47 lines
1.6 KiB
C
Raw Normal View History

2012-11-01 15:19:01 +00:00
// Copyright (c) 2012- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0 or later versions.
2012-11-01 15:19:01 +00:00
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#pragma once
2014-03-15 17:48:30 +00:00
class PointerWrap;
class KernelObject;
2012-11-01 15:19:01 +00:00
void __IoInit();
void __IoDoState(PointerWrap &p);
2012-11-01 15:19:01 +00:00
void __IoShutdown();
2013-09-10 09:09:18 +00:00
struct ScePspDateTime;
struct tm;
2013-09-10 09:09:18 +00:00
u32 sceIoIoctl(u32 id, u32 cmd, u32 indataPtr, u32 inlen, u32 outdataPtr, u32 outlen);
// Called by sceIoIoctl, which normally applies the delay this function writes to usec.
// If you need to call sceIoIoctl from a HLE function implementation more than once, use
// __IoIoctl directly to avoid double-delays.
int __IoIoctl(u32 id, u32 cmd, u32 indataPtr, u32 inlen, u32 outdataPtr, u32 outlen, int &usec);
2013-01-02 11:35:37 +00:00
u32 __IoGetFileHandleFromId(u32 id, u32 &outError);
2013-09-10 09:09:18 +00:00
void __IoCopyDate(ScePspDateTime& date_out, const tm& date_in);
KernelObject *__KernelFileNodeObject();
KernelObject *__KernelDirListingObject();
2012-11-01 15:19:01 +00:00
2016-08-04 16:33:18 +00:00
void Register_IoFileMgrForKernel();
2012-11-01 15:19:01 +00:00
void Register_IoFileMgrForUser();
2016-08-04 16:33:18 +00:00
void Register_StdioForKernel();
2012-11-01 15:19:01 +00:00
void Register_StdioForUser();