mirror of
https://github.com/Vita3K/Vita3K.git
synced 2026-07-11 01:34:23 +02:00
Import.
This commit is contained in:
+102
@@ -0,0 +1,102 @@
|
|||||||
|
---
|
||||||
|
Language: Cpp
|
||||||
|
# BasedOnStyle: WebKit
|
||||||
|
AccessModifierOffset: -4
|
||||||
|
AlignAfterOpenBracket: DontAlign
|
||||||
|
AlignConsecutiveAssignments: false
|
||||||
|
AlignConsecutiveDeclarations: false
|
||||||
|
AlignEscapedNewlines: Right
|
||||||
|
AlignOperands: false
|
||||||
|
AlignTrailingComments: false
|
||||||
|
AllowAllParametersOfDeclarationOnNextLine: true
|
||||||
|
AllowShortBlocksOnASingleLine: false
|
||||||
|
AllowShortCaseLabelsOnASingleLine: false
|
||||||
|
AllowShortFunctionsOnASingleLine: All
|
||||||
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
|
AllowShortLoopsOnASingleLine: false
|
||||||
|
AlwaysBreakAfterDefinitionReturnType: None
|
||||||
|
AlwaysBreakAfterReturnType: None
|
||||||
|
AlwaysBreakBeforeMultilineStrings: false
|
||||||
|
AlwaysBreakTemplateDeclarations: false
|
||||||
|
BinPackArguments: true
|
||||||
|
BinPackParameters: true
|
||||||
|
BraceWrapping:
|
||||||
|
AfterClass: false
|
||||||
|
AfterControlStatement: false
|
||||||
|
AfterEnum: false
|
||||||
|
AfterFunction: true
|
||||||
|
AfterNamespace: false
|
||||||
|
AfterObjCDeclaration: false
|
||||||
|
AfterStruct: false
|
||||||
|
AfterUnion: false
|
||||||
|
BeforeCatch: false
|
||||||
|
BeforeElse: false
|
||||||
|
IndentBraces: false
|
||||||
|
SplitEmptyFunctionBody: true
|
||||||
|
BreakBeforeBinaryOperators: All
|
||||||
|
BreakBeforeBraces: Attach
|
||||||
|
BreakBeforeInheritanceComma: false
|
||||||
|
BreakBeforeTernaryOperators: true
|
||||||
|
BreakConstructorInitializersBeforeComma: false
|
||||||
|
BreakConstructorInitializers: BeforeComma
|
||||||
|
BreakAfterJavaFieldAnnotations: false
|
||||||
|
BreakStringLiterals: true
|
||||||
|
ColumnLimit: 0
|
||||||
|
CommentPragmas: '^ IWYU pragma:'
|
||||||
|
CompactNamespaces: false
|
||||||
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
||||||
|
ConstructorInitializerIndentWidth: 4
|
||||||
|
ContinuationIndentWidth: 4
|
||||||
|
Cpp11BracedListStyle: false
|
||||||
|
DerivePointerAlignment: false
|
||||||
|
DisableFormat: false
|
||||||
|
ExperimentalAutoDetectBinPacking: false
|
||||||
|
FixNamespaceComments: false
|
||||||
|
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
|
||||||
|
IncludeCategories:
|
||||||
|
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
|
||||||
|
Priority: 2
|
||||||
|
- Regex: '^(<|"(gtest|isl|json)/)'
|
||||||
|
Priority: 3
|
||||||
|
- Regex: '.*'
|
||||||
|
Priority: 1
|
||||||
|
IncludeIsMainRegex: '$'
|
||||||
|
IndentCaseLabels: false
|
||||||
|
IndentWidth: 4
|
||||||
|
IndentWrappedFunctionNames: false
|
||||||
|
JavaScriptQuotes: Leave
|
||||||
|
JavaScriptWrapImports: true
|
||||||
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
|
MacroBlockBegin: ''
|
||||||
|
MacroBlockEnd: ''
|
||||||
|
MaxEmptyLinesToKeep: 1
|
||||||
|
NamespaceIndentation: All
|
||||||
|
ObjCBlockIndentWidth: 4
|
||||||
|
ObjCSpaceAfterProperty: true
|
||||||
|
ObjCSpaceBeforeProtocolList: true
|
||||||
|
PenaltyBreakAssignment: 2
|
||||||
|
PenaltyBreakBeforeFirstCallParameter: 19
|
||||||
|
PenaltyBreakComment: 300
|
||||||
|
PenaltyBreakFirstLessLess: 120
|
||||||
|
PenaltyBreakString: 1000
|
||||||
|
PenaltyExcessCharacter: 1000000
|
||||||
|
PenaltyReturnTypeOnItsOwnLine: 60
|
||||||
|
PointerAlignment: Right
|
||||||
|
ReflowComments: true
|
||||||
|
SortIncludes: true
|
||||||
|
SpaceAfterCStyleCast: false
|
||||||
|
SpaceAfterTemplateKeyword: true
|
||||||
|
SpaceBeforeAssignmentOperators: true
|
||||||
|
SpaceBeforeParens: ControlStatements
|
||||||
|
SpaceInEmptyParentheses: false
|
||||||
|
SpacesBeforeTrailingComments: 1
|
||||||
|
SpacesInAngles: false
|
||||||
|
SpacesInContainerLiterals: true
|
||||||
|
SpacesInCStyleCastParentheses: false
|
||||||
|
SpacesInParentheses: false
|
||||||
|
SpacesInSquareBrackets: false
|
||||||
|
Standard: Cpp11
|
||||||
|
TabWidth: 8
|
||||||
|
UseTab: Never
|
||||||
|
...
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
/build-macos/
|
||||||
|
/build-windows/
|
||||||
|
/api.trace
|
||||||
|
.vs/
|
||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
[submodule "src/external/elfio"]
|
||||||
|
path = src/external/elfio
|
||||||
|
url = https://github.com/serge1/ELFIO.git
|
||||||
|
[submodule "src/external/capstone"]
|
||||||
|
path = src/external/capstone
|
||||||
|
url = https://github.com/aquynh/capstone.git
|
||||||
|
[submodule "src/external/vita-headers"]
|
||||||
|
path = src/external/vita-headers
|
||||||
|
url = https://github.com/vitasdk/vita-headers.git
|
||||||
|
[submodule "src/external/glbinding"]
|
||||||
|
path = src/external/glbinding
|
||||||
|
url = https://github.com/cginternals/glbinding.git
|
||||||
|
[submodule "src/external/yaml-cpp"]
|
||||||
|
path = src/external/yaml-cpp
|
||||||
|
url = https://github.com/jbeder/yaml-cpp
|
||||||
|
[submodule "src/external/vita-toolchain"]
|
||||||
|
path = src/external/vita-toolchain
|
||||||
|
url = https://github.com/vitasdk/vita-toolchain
|
||||||
|
[submodule "src/external/microprofile"]
|
||||||
|
path = src/external/microprofile
|
||||||
|
url = https://github.com/jonasmr/microprofile.git
|
||||||
|
[submodule "src/external/sdl2-cmake-scripts"]
|
||||||
|
path = src/external/sdl2-cmake-scripts
|
||||||
|
url = https://github.com/tcbrindle/sdl2-cmake-scripts.git
|
||||||
+339
@@ -0,0 +1,339 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Lesser General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
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; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
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 for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) year name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License.
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
# Vita3K
|
||||||
|
## Introduction
|
||||||
|
Vita3K is an experimental PlayStation Vita emulator for Windows and macOS.
|
||||||
|
|
||||||
|
* [Website](https://Vita3K.github.io/)
|
||||||
|
* Feel free to join channel `#vita3k` on **freenode** IRC ([Web-based IRC client](https://webchat.freenode.net/?channels=%23vita3k))
|
||||||
|
* [Patreon](https://www.patreon.com/Vita3K)
|
||||||
|
|
||||||
|
## Compatibility
|
||||||
|
The emulator currently runs a few homebrew programs in .vpk format. No commercial games are playable.
|
||||||
|
|
||||||
|
[vitaQuake](https://github.com/Rinnegatamante/vitaQuake) by **Rinnegatamante**
|
||||||
|

|
||||||
|
|
||||||
|
[VitaTester](https://github.com/SMOKE5/VitaTester) by **SMOKE5**
|
||||||
|

|
||||||
|
|
||||||
|
## Licence
|
||||||
|
Vita3K is licensed under the **GPLv2** license. This is largely dictated by external dependencies, most notably Unicorn.
|
||||||
|
|
||||||
|
## Building
|
||||||
|
### Prerequisites
|
||||||
|
[CMake](https://cmake.org/) is used to generate Visual Studio and Xcode project files. It is assumed that you have CMake installed and on your path. Other dependencies are provided as Git submodules or as prebuilt binaries.
|
||||||
|
|
||||||
|
### Windows (Visual Studio)
|
||||||
|
1. Run `gen.bat` to create a `build-windows` directory and generate a Visual Studio solution in there.
|
||||||
|
2. Open the `Vita3K.sln` solution.
|
||||||
|
3. Set the startup project to `emulator`.
|
||||||
|
4. Build.
|
||||||
|
|
||||||
|
### macOS (Xcode)
|
||||||
|
1. Run `gen.sh` to create a `build-macos` directory and generate an Xcode project in there.
|
||||||
|
2. Open the `Vita3K.xcodeproj` project.
|
||||||
|
3. When prompted to create schemes, create one for the `emulator` target only. The project builds many targets, so it will make your life easier if you create schemes as needed.
|
||||||
|
4. Build.
|
||||||
|
|
||||||
|
## Running
|
||||||
|
The emulator does not yet have a front end. Please specify the path to a .vpk file as the first command line argument.
|
||||||
|
|
||||||
|
## Bugs and issues
|
||||||
|
The project is at an early stage, so please be sensitive to that when opening new issues. Expect crashes, glitches, low compatibility and poor performance.
|
||||||
|
|
||||||
|
## Thanks
|
||||||
|
Thanks go out to people who offered advice or otherwise made this project possible, such as Davee, korruptor, Rinnegatamante, ScHlAuChi, Simon Kilroy, TheFlow, xerpi, xyz, Yifan Lu and many others.
|
||||||
|
|
||||||
|
## Donations
|
||||||
|
If you would like to show your appreciation or even help fund development, the project has a [Patreon](https://www.patreon.com/Vita3K) page.
|
||||||
|
|
||||||
|
## Note
|
||||||
|
The purpose of the emulator is not to enable illegal activity.
|
||||||
|
|
||||||
|
PlayStation and PS Vita are trademarks of Sony Interactive Entertainment Inc. The emulator is not related to or endorsed by Sony, or derived from confidential materials belonging to Sony.
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 140 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 659 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
find src/emulator src/gen-modules src/native-tool \( -name *.cpp -o -name *.h \) | xargs clang-format -i
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
mkdir build-windows
|
||||||
|
pushd build-windows
|
||||||
|
cmake -G "Visual Studio 15 2017 Win64" ../src
|
||||||
|
popd
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
mkdir -p build-macos
|
||||||
|
cd build-macos
|
||||||
|
cmake -G Xcode ../src
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ufwb version="1.14">
|
||||||
|
<grammar name="SceGxmProgram" start="id:1">
|
||||||
|
<description>Grammar for my file format</description>
|
||||||
|
<structure name="SceGxmProgram" id="1" encoding="ISO_8859-1:1987" endian="little" signed="no">
|
||||||
|
<string name="magic" mustmatch="yes" id="2" fillcolor="00F900" type="fixed-length" length="4">
|
||||||
|
<fixedvalues>
|
||||||
|
<fixedvalue name="GXP" value="GXP"/>
|
||||||
|
</fixedvalues>
|
||||||
|
</string>
|
||||||
|
<number name="maybe_version" id="3" fillcolor="FEFB00" type="integer" length="4"/>
|
||||||
|
<number name="size" id="4" fillcolor="00F900" type="integer" length="4"/>
|
||||||
|
<binary name="maybe_hash_or_garbage" id="5" fillcolor="FF7D78" length="8"/>
|
||||||
|
<number name="maybe_type" id="6" type="integer" length="2"/>
|
||||||
|
<number name="shorts" id="7" repeatmin="7" repeatmax="7" type="integer" length="2"/>
|
||||||
|
<number name="maybe_parameter_count" id="8" fillcolor="FEFB00" type="integer" length="4"/>
|
||||||
|
<number name="maybe_offset" id="9" type="integer" length="4"/>
|
||||||
|
<binary name="unknown-1" id="11" length="maybe_offset-4"/>
|
||||||
|
<structure name="SceGxmProgramParameter" id="12" length="16" repeat="id:8" repeatmin="0" repeatmax="-1" fillcolor="FF7D78">
|
||||||
|
<number name="name_offset" id="17" fillcolor="00F900" type="integer" length="4"/>
|
||||||
|
<number name="category" id="19" fillcolor="FF9200" type="integer" length="1"/>
|
||||||
|
<number name="container_index" id="21" fillcolor="FEFB00" type="integer" length="4" lengthunit="bit"/>
|
||||||
|
<number name="component_count" id="20" fillcolor="FEFB00" type="integer" length="4" lengthunit="bit"/>
|
||||||
|
<binary name="unknown" id="22" length="2"/>
|
||||||
|
<number name="array_size" id="23" fillcolor="FF9200" type="integer" length="1"/>
|
||||||
|
<binary name="unknown-1" id="24" fillcolor="FF2600" length="3"/>
|
||||||
|
<number name="resource_index" id="25" fillcolor="FF9200" type="integer" length="1"/>
|
||||||
|
<binary name="remaining" id="18" fillcolor="FF2600" length="remaining"/>
|
||||||
|
</structure>
|
||||||
|
</structure>
|
||||||
|
</grammar>
|
||||||
|
</ufwb>
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.8)
|
||||||
|
project(Vita3K)
|
||||||
|
|
||||||
|
add_subdirectory(external)
|
||||||
|
add_subdirectory(emulator)
|
||||||
|
add_subdirectory(gen-modules)
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
set(VITA3K_ORG_NAME "Vita3K")
|
||||||
|
set(VITA3K_APP_NAME "Vita3K")
|
||||||
|
set(VITA3K_VERSION "")
|
||||||
|
|
||||||
|
if(VITA3K_VERSION STREQUAL "")
|
||||||
|
execute_process(
|
||||||
|
COMMAND git log -1 --format=%H
|
||||||
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
|
OUTPUT_VARIABLE GIT_HASH
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
if(GIT_HASH STREQUAL "")
|
||||||
|
set(VITA3K_VERSION "development version")
|
||||||
|
else()
|
||||||
|
set(VITA3K_VERSION "(git ${GIT_HASH})")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
|
add_subdirectory(audio)
|
||||||
|
add_subdirectory(cpu)
|
||||||
|
add_subdirectory(ctrl)
|
||||||
|
add_subdirectory(disasm)
|
||||||
|
add_subdirectory(glutil)
|
||||||
|
add_subdirectory(gxm)
|
||||||
|
add_subdirectory(host)
|
||||||
|
add_subdirectory(io)
|
||||||
|
add_subdirectory(kernel)
|
||||||
|
add_subdirectory(mem)
|
||||||
|
add_subdirectory(module)
|
||||||
|
add_subdirectory(modules)
|
||||||
|
add_subdirectory(nids)
|
||||||
|
add_subdirectory(util)
|
||||||
|
|
||||||
|
add_executable(
|
||||||
|
emulator
|
||||||
|
MACOSX_BUNDLE
|
||||||
|
shaders
|
||||||
|
load_self.cpp
|
||||||
|
load_self.h
|
||||||
|
main.cpp
|
||||||
|
relocation.cpp
|
||||||
|
relocation.h
|
||||||
|
vpk.cpp
|
||||||
|
vpk.h
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(emulator PRIVATE cpu elfio host modules nids vita-toolchain)
|
||||||
|
set_target_properties(emulator PROPERTIES
|
||||||
|
OUTPUT_NAME Vita3K
|
||||||
|
RESOURCE shaders)
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
add_custom_command(
|
||||||
|
TARGET emulator
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/shaders" "$<TARGET_FILE_DIR:emulator>/shaders"
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${PROJECT_SOURCE_DIR}/external/sdl/windows/lib/x64/SDL2.dll" "$<TARGET_FILE_DIR:emulator>"
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${PROJECT_SOURCE_DIR}/external/unicorn/windows/unicorn.dll" "$<TARGET_FILE_DIR:emulator>"
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${PROJECT_SOURCE_DIR}/external/unicorn/windows/libgcc_s_seh-1.dll" "$<TARGET_FILE_DIR:emulator>"
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${PROJECT_SOURCE_DIR}/external/unicorn/windows/libwinpthread-1.dll" "$<TARGET_FILE_DIR:emulator>")
|
||||||
|
endif()
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
add_library(
|
||||||
|
audio
|
||||||
|
STATIC
|
||||||
|
include/audio/functions.h
|
||||||
|
include/audio/state.h
|
||||||
|
src/audio.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(audio PUBLIC include)
|
||||||
|
target_link_libraries(audio PUBLIC sdl2 vita-headers)
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <psp2/types.h>
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
|
struct AudioState;
|
||||||
|
|
||||||
|
typedef std::function<void(SceUID)> ResumeThread;
|
||||||
|
|
||||||
|
bool init(AudioState &state, ResumeThread resume_thread);
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
|
#include <map>
|
||||||
|
#include <memory>
|
||||||
|
#include <mutex>
|
||||||
|
#include <queue>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
#include <psp2/types.h>
|
||||||
|
|
||||||
|
#include <SDL_audio.h>
|
||||||
|
|
||||||
|
typedef std::shared_ptr<SDL_AudioStream> AudioStreamPtr;
|
||||||
|
typedef std::function<void(SceUID)> ResumeThread;
|
||||||
|
|
||||||
|
struct AudioOutput {
|
||||||
|
const uint8_t *buf = nullptr;
|
||||||
|
int len_bytes = 0;
|
||||||
|
SceUID thread = -1;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ReadOnlyAudioOutPortState {
|
||||||
|
int len_bytes = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct AudioCallbackOutPortState {
|
||||||
|
AudioStreamPtr stream;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct SharedAudioOutPortState {
|
||||||
|
std::mutex mutex;
|
||||||
|
std::queue<AudioOutput> outputs;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct AudioOutPort {
|
||||||
|
ReadOnlyAudioOutPortState ro;
|
||||||
|
AudioCallbackOutPortState callback;
|
||||||
|
SharedAudioOutPortState shared;
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef std::shared_ptr<AudioOutPort> AudioOutPortPtr;
|
||||||
|
typedef std::map<int, AudioOutPortPtr> AudioOutPortPtrs;
|
||||||
|
typedef std::shared_ptr<void> AudioDevicePtr;
|
||||||
|
|
||||||
|
struct ReadOnlyAudioState {
|
||||||
|
SDL_AudioSpec spec;
|
||||||
|
ResumeThread resume_thread;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct AudioCallbackState {
|
||||||
|
std::vector<uint8_t> temp_buffer;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct SharedAudioState {
|
||||||
|
std::mutex mutex;
|
||||||
|
int next_port_id = 0;
|
||||||
|
AudioOutPortPtrs out_ports;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct AudioState {
|
||||||
|
ReadOnlyAudioState ro;
|
||||||
|
AudioCallbackState callback;
|
||||||
|
SharedAudioState shared;
|
||||||
|
AudioDevicePtr device;
|
||||||
|
};
|
||||||
@@ -0,0 +1,109 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <audio/functions.h>
|
||||||
|
|
||||||
|
#include <audio/state.h>
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
|
||||||
|
static const int stream_put_granularity = 512;
|
||||||
|
|
||||||
|
static void mix_out_port(uint8_t *stream, uint8_t *temp_buffer, int len, AudioOutPort &port, const ResumeThread &resume_thread) {
|
||||||
|
int available_to_get = SDL_AudioStreamAvailable(port.callback.stream.get());
|
||||||
|
assert(available_to_get >= 0);
|
||||||
|
|
||||||
|
while (available_to_get < len) {
|
||||||
|
std::unique_lock<std::mutex> lock(port.shared.mutex);
|
||||||
|
if (port.shared.outputs.empty()) {
|
||||||
|
lock.unlock();
|
||||||
|
SDL_AudioStreamFlush(port.callback.stream.get());
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
AudioOutput &output = port.shared.outputs.front();
|
||||||
|
const int bytes_to_put = std::min(stream_put_granularity, output.len_bytes);
|
||||||
|
const int ret = SDL_AudioStreamPut(port.callback.stream.get(), output.buf, bytes_to_put);
|
||||||
|
assert(ret == 0);
|
||||||
|
output.buf += bytes_to_put;
|
||||||
|
output.len_bytes -= bytes_to_put;
|
||||||
|
if (output.len_bytes <= 0) {
|
||||||
|
port.shared.outputs.pop();
|
||||||
|
resume_thread(output.thread);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
available_to_get = SDL_AudioStreamAvailable(port.callback.stream.get());
|
||||||
|
assert(available_to_get >= 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
const int bytes_to_get = std::min(len, available_to_get);
|
||||||
|
const int get_result = SDL_AudioStreamGet(port.callback.stream.get(), temp_buffer, bytes_to_get);
|
||||||
|
if (get_result > 0) {
|
||||||
|
SDL_MixAudio(stream, temp_buffer, bytes_to_get, SDL_MIX_MAXVOLUME);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void SDLCALL audio_callback(void *userdata, Uint8 *stream, int len) {
|
||||||
|
assert(userdata != nullptr);
|
||||||
|
assert(stream != nullptr);
|
||||||
|
AudioState &state = *static_cast<AudioState *>(userdata);
|
||||||
|
assert(len == state.ro.spec.size);
|
||||||
|
assert(len == state.callback.temp_buffer.size());
|
||||||
|
|
||||||
|
std::vector<AudioOutPortPtr> ports;
|
||||||
|
{
|
||||||
|
// Read from shared state.
|
||||||
|
const std::unique_lock<std::mutex> lock(state.shared.mutex);
|
||||||
|
ports.reserve(state.shared.out_ports.size());
|
||||||
|
for (const AudioOutPortPtrs::value_type &port : state.shared.out_ports) {
|
||||||
|
ports.push_back(port.second);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
std::memset(stream, state.ro.spec.silence, len);
|
||||||
|
|
||||||
|
for (const AudioOutPortPtr &port : ports) {
|
||||||
|
mix_out_port(stream, state.callback.temp_buffer.data(), len, *port, state.ro.resume_thread);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void close_audio(void *) {
|
||||||
|
SDL_CloseAudio();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool init(AudioState &state, ResumeThread resume_thread) {
|
||||||
|
state.ro.resume_thread = resume_thread;
|
||||||
|
|
||||||
|
SDL_AudioSpec desired = {};
|
||||||
|
desired.freq = 48000;
|
||||||
|
desired.format = AUDIO_S16LSB;
|
||||||
|
desired.channels = 2;
|
||||||
|
desired.samples = 512;
|
||||||
|
desired.callback = &audio_callback;
|
||||||
|
desired.userdata = &state;
|
||||||
|
|
||||||
|
if (SDL_OpenAudio(&desired, &state.ro.spec) != 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
state.device = AudioDevicePtr(nullptr, close_audio);
|
||||||
|
state.callback.temp_buffer.resize(state.ro.spec.size);
|
||||||
|
|
||||||
|
SDL_PauseAudio(0);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
add_library(
|
||||||
|
cpu
|
||||||
|
STATIC
|
||||||
|
include/cpu/functions.h
|
||||||
|
src/cpu.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(cpu PUBLIC include)
|
||||||
|
target_link_libraries(cpu PUBLIC disasm mem)
|
||||||
|
target_link_libraries(cpu PRIVATE unicorn)
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <mem/mem.h> // Address.
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
|
struct CPUState;
|
||||||
|
struct MemState;
|
||||||
|
|
||||||
|
typedef std::function<void(uint32_t, Address)> CallSVC;
|
||||||
|
typedef std::unique_ptr<CPUState, std::function<void(CPUState *)>> CPUStatePtr;
|
||||||
|
|
||||||
|
CPUStatePtr init_cpu(Address pc, Address sp, bool log_code, CallSVC call_svc, MemState &mem);
|
||||||
|
bool run(CPUState &state);
|
||||||
|
void stop(CPUState &state);
|
||||||
|
uint32_t read_reg(CPUState &state, size_t index);
|
||||||
|
uint32_t read_sp(CPUState &state);
|
||||||
|
void write_reg(CPUState &state, size_t index, uint32_t value);
|
||||||
|
void write_pc(CPUState &state, uint32_t value);
|
||||||
@@ -0,0 +1,223 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <cpu/functions.h>
|
||||||
|
|
||||||
|
#include <disasm/functions.h>
|
||||||
|
#include <disasm/state.h>
|
||||||
|
#include <mem/ptr.h>
|
||||||
|
|
||||||
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <iomanip>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
typedef std::unique_ptr<uc_struct, std::function<void(uc_struct *)>> UnicornPtr;
|
||||||
|
|
||||||
|
struct CPUState {
|
||||||
|
MemState *mem = nullptr;
|
||||||
|
CallSVC call_svc;
|
||||||
|
DisasmState disasm;
|
||||||
|
UnicornPtr uc;
|
||||||
|
};
|
||||||
|
|
||||||
|
static const bool LOG_CODE = true;
|
||||||
|
static const bool LOG_MEM_ACCESS = false;
|
||||||
|
|
||||||
|
static void delete_cpu_state(CPUState *state) {
|
||||||
|
delete state;
|
||||||
|
}
|
||||||
|
|
||||||
|
static bool is_thumb_mode(uc_engine *uc) {
|
||||||
|
size_t mode = 0;
|
||||||
|
const uc_err err = uc_query(uc, UC_QUERY_MODE, &mode);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
return mode & UC_MODE_THUMB;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void code_hook(uc_engine *uc, uint64_t address, uint32_t size, void *user_data) {
|
||||||
|
CPUState &state = *static_cast<CPUState *>(user_data);
|
||||||
|
const MemState &mem = *state.mem;
|
||||||
|
const uint8_t *const code = Ptr<const uint8_t>(static_cast<Address>(address)).get(mem);
|
||||||
|
const size_t buffer_size = GB(4) - address;
|
||||||
|
const bool thumb = is_thumb_mode(uc);
|
||||||
|
const std::string disassembly = disassemble(state.disasm, code, buffer_size, address, thumb);
|
||||||
|
std::cout << std::hex << std::setw(8) << address << std::dec << " " << disassembly << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void log_memory_access(const char *type, Address address, int size, int64_t value, const MemState &mem) {
|
||||||
|
const char *const name = mem_name(address, mem);
|
||||||
|
std::cout << type << " " << size << " bytes, address 0x" << std::hex << address << " (" << name << "), value 0x" << value << std::dec << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void read_hook(uc_engine *uc, uc_mem_type type, uint64_t address, int size, int64_t value, void *user_data) {
|
||||||
|
assert(value == 0);
|
||||||
|
|
||||||
|
const CPUState &state = *static_cast<const CPUState *>(user_data);
|
||||||
|
const MemState &mem = *state.mem;
|
||||||
|
memcpy(&value, Ptr<const void>(static_cast<Address>(address)).get(mem), size);
|
||||||
|
log_memory_access("Read", static_cast<Address>(address), size, value, mem);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void write_hook(uc_engine *uc, uc_mem_type type, uint64_t address, int size, int64_t value, void *user_data) {
|
||||||
|
const CPUState &state = *static_cast<const CPUState *>(user_data);
|
||||||
|
const MemState &mem = *state.mem;
|
||||||
|
log_memory_access("Write", static_cast<Address>(address), size, value, mem);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void intr_hook(uc_engine *uc, uint32_t intno, void *user_data) {
|
||||||
|
assert(intno == 2);
|
||||||
|
|
||||||
|
CPUState &state = *static_cast<CPUState *>(user_data);
|
||||||
|
|
||||||
|
uint32_t pc = 0;
|
||||||
|
uc_err err = uc_reg_read(uc, UC_ARM_REG_PC, &pc);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
if (is_thumb_mode(uc)) {
|
||||||
|
const Address svc_address = pc - 2;
|
||||||
|
uint16_t svc_instruction = 0;
|
||||||
|
err = uc_mem_read(uc, svc_address, &svc_instruction, sizeof(svc_instruction));
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
const uint8_t imm = svc_instruction & 0xff;
|
||||||
|
state.call_svc(imm, pc);
|
||||||
|
} else {
|
||||||
|
const Address svc_address = pc - 4;
|
||||||
|
uint32_t svc_instruction = 0;
|
||||||
|
err = uc_mem_read(uc, svc_address, &svc_instruction, sizeof(svc_instruction));
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
const uint32_t imm = svc_instruction & 0xffffff;
|
||||||
|
state.call_svc(imm, pc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void enable_vfp_fpu(uc_engine *uc) {
|
||||||
|
uint64_t c1_c0_2 = 0;
|
||||||
|
uc_err err = uc_reg_read(uc, UC_ARM_REG_C1_C0_2, &c1_c0_2);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
c1_c0_2 |= (0xf << 20);
|
||||||
|
|
||||||
|
err = uc_reg_write(uc, UC_ARM_REG_C1_C0_2, &c1_c0_2);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
const uint64_t fpexc = 0xf0000000;
|
||||||
|
|
||||||
|
err = uc_reg_write(uc, UC_ARM_REG_FPEXC, &fpexc);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
}
|
||||||
|
|
||||||
|
CPUStatePtr init_cpu(Address pc, Address sp, bool log_code, CallSVC call_svc, MemState &mem) {
|
||||||
|
CPUStatePtr state(new CPUState(), delete_cpu_state);
|
||||||
|
state->mem = &mem;
|
||||||
|
state->call_svc = call_svc;
|
||||||
|
|
||||||
|
if (!init(state->disasm)) {
|
||||||
|
return CPUStatePtr();
|
||||||
|
}
|
||||||
|
|
||||||
|
uc_engine *temp_uc = nullptr;
|
||||||
|
uc_err err = uc_open(UC_ARCH_ARM, UC_MODE_ARM, &temp_uc);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
state->uc = UnicornPtr(temp_uc, uc_close);
|
||||||
|
temp_uc = nullptr;
|
||||||
|
|
||||||
|
uc_hook hh = 0;
|
||||||
|
if (log_code && LOG_CODE) {
|
||||||
|
const uc_err err = uc_hook_add(state->uc.get(), &hh, UC_HOOK_CODE, reinterpret_cast<void *>(&code_hook), state.get(), 1, 0);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LOG_MEM_ACCESS) {
|
||||||
|
uc_err err = uc_hook_add(state->uc.get(), &hh, UC_HOOK_MEM_READ, reinterpret_cast<void *>(&read_hook), state.get(), 1, 0);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
err = uc_hook_add(state->uc.get(), &hh, UC_HOOK_MEM_WRITE, reinterpret_cast<void *>(&write_hook), state.get(), 1, 0);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
}
|
||||||
|
|
||||||
|
err = uc_hook_add(state->uc.get(), &hh, UC_HOOK_INTR, reinterpret_cast<void *>(&intr_hook), state.get(), 1, 0);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
err = uc_reg_write(state->uc.get(), UC_ARM_REG_SP, &sp);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
err = uc_mem_map_ptr(state->uc.get(), 0, GB(4), UC_PROT_ALL, &mem.memory[0]);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
err = uc_reg_write(state->uc.get(), UC_ARM_REG_PC, &pc);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
enable_vfp_fpu(state->uc.get());
|
||||||
|
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool run(CPUState &state) {
|
||||||
|
uint64_t pc = 0;
|
||||||
|
uc_err err = uc_reg_read(state.uc.get(), UC_ARM_REG_PC, &pc);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
if (is_thumb_mode(state.uc.get())) {
|
||||||
|
pc |= 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
err = uc_emu_start(state.uc.get(), pc, 0, 0, 0);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void stop(CPUState &state) {
|
||||||
|
const uc_err err = uc_emu_stop(state.uc.get());
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t read_reg(CPUState &state, size_t index) {
|
||||||
|
assert(index >= 0);
|
||||||
|
assert(index <= 3);
|
||||||
|
|
||||||
|
uint32_t value = 0;
|
||||||
|
const uc_err err = uc_reg_read(state.uc.get(), UC_ARM_REG_R0 + index, &value);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t read_sp(CPUState &state) {
|
||||||
|
uint32_t value = 0;
|
||||||
|
const uc_err err = uc_reg_read(state.uc.get(), UC_ARM_REG_SP, &value);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
void write_reg(CPUState &state, size_t index, uint32_t value) {
|
||||||
|
assert(index >= 0);
|
||||||
|
assert(index <= 1);
|
||||||
|
|
||||||
|
const uc_err err = uc_reg_write(state.uc.get(), UC_ARM_REG_R0 + index, &value);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
}
|
||||||
|
|
||||||
|
void write_pc(CPUState &state, uint32_t value) {
|
||||||
|
const uc_err err = uc_reg_write(state.uc.get(), UC_ARM_REG_PC, &value);
|
||||||
|
assert(err == UC_ERR_OK);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
add_library(
|
||||||
|
ctrl
|
||||||
|
INTERFACE
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(ctrl INTERFACE include)
|
||||||
|
target_link_libraries(ctrl INTERFACE sdl2)
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <SDL_joystick.h>
|
||||||
|
|
||||||
|
#include <map>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
struct _SDL_GameController;
|
||||||
|
|
||||||
|
typedef std::shared_ptr<_SDL_GameController> GameControllerPtr;
|
||||||
|
typedef std::map<SDL_JoystickGUID, GameControllerPtr> GameControllerList;
|
||||||
|
|
||||||
|
struct CtrlState {
|
||||||
|
GameControllerList controllers;
|
||||||
|
};
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
add_library(
|
||||||
|
disasm
|
||||||
|
STATIC
|
||||||
|
src/disasm.cpp
|
||||||
|
include/disasm/functions.h
|
||||||
|
include/disasm/state.h
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(disasm PUBLIC include)
|
||||||
|
target_include_directories(disasm PRIVATE ${capstone_INCLUDE_DIRS})
|
||||||
|
target_link_libraries(disasm PRIVATE capstone-static)
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
struct DisasmState;
|
||||||
|
|
||||||
|
bool init(DisasmState &state);
|
||||||
|
std::string disassemble(DisasmState &state, const uint8_t *code, size_t size, uint64_t address, bool thumb);
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
struct cs_insn;
|
||||||
|
|
||||||
|
typedef std::unique_ptr<cs_insn, std::function<void(cs_insn *)>> InsnPtr;
|
||||||
|
|
||||||
|
struct DisasmState {
|
||||||
|
size_t csh;
|
||||||
|
InsnPtr insn;
|
||||||
|
};
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <disasm/functions.h>
|
||||||
|
|
||||||
|
#include <disasm/state.h>
|
||||||
|
|
||||||
|
#include <capstone.h>
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
|
static void delete_insn(cs_insn *insn) {
|
||||||
|
if (insn != nullptr) {
|
||||||
|
cs_free(insn, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool init(DisasmState &state) {
|
||||||
|
cs_err err = cs_open(CS_ARCH_ARM, CS_MODE_THUMB, &state.csh);
|
||||||
|
if (err != CS_ERR_OK) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
cs_option(state.csh, CS_OPT_SKIPDATA, CS_OPT_ON);
|
||||||
|
|
||||||
|
state.insn = InsnPtr(cs_malloc(state.csh), delete_insn);
|
||||||
|
if (!state.insn) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string disassemble(DisasmState &state, const uint8_t *code, size_t size, uint64_t address, bool thumb) {
|
||||||
|
const cs_err err = cs_option(state.csh, CS_OPT_MODE, thumb ? CS_MODE_THUMB : CS_MODE_ARM);
|
||||||
|
assert(err == CS_ERR_OK);
|
||||||
|
|
||||||
|
const bool success = cs_disasm_iter(state.csh, &code, &size, &address, state.insn.get());
|
||||||
|
|
||||||
|
std::ostringstream out;
|
||||||
|
out << state.insn->mnemonic << " " << state.insn->op_str;
|
||||||
|
if (!success) {
|
||||||
|
const cs_err err = cs_errno(state.csh);
|
||||||
|
out << " (" << cs_strerror(err) << ")";
|
||||||
|
}
|
||||||
|
|
||||||
|
return out.str();
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
add_library(
|
||||||
|
glutil
|
||||||
|
STATIC
|
||||||
|
include/glutil/gl.h
|
||||||
|
include/glutil/object.h
|
||||||
|
include/glutil/object_array.h
|
||||||
|
src/object.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(glutil PUBLIC include)
|
||||||
|
target_link_libraries(glutil PUBLIC glbinding)
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <glbinding/gl21/gl.h>
|
||||||
|
#include <glbinding/gl21ext/gl.h>
|
||||||
|
|
||||||
|
using namespace gl21;
|
||||||
|
using namespace gl21ext;
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <glutil/gl.h>
|
||||||
|
|
||||||
|
class GLObject {
|
||||||
|
public:
|
||||||
|
typedef void Deleter(GLuint);
|
||||||
|
|
||||||
|
GLObject() = default;
|
||||||
|
~GLObject();
|
||||||
|
bool init(GLuint name, Deleter *deleter);
|
||||||
|
GLuint get() const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
GLObject(const GLObject &);
|
||||||
|
const GLObject &operator=(const GLObject &);
|
||||||
|
|
||||||
|
GLuint name = 0;
|
||||||
|
Deleter *deleter = nullptr;
|
||||||
|
};
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <glutil/gl.h>
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
|
template <size_t Size>
|
||||||
|
class GLObjectArray {
|
||||||
|
public:
|
||||||
|
typedef void Generator(GLsizei, GLuint *);
|
||||||
|
typedef void Deleter(GLsizei, const GLuint *);
|
||||||
|
|
||||||
|
GLObjectArray() {
|
||||||
|
names.fill(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
~GLObjectArray() {
|
||||||
|
assert(deleter != nullptr);
|
||||||
|
deleter(static_cast<GLsizei>(names.size()), &names[0]);
|
||||||
|
names.fill(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool init(Generator *generator, Deleter *deleter) {
|
||||||
|
assert(generator != nullptr);
|
||||||
|
assert(deleter != nullptr);
|
||||||
|
this->deleter = deleter;
|
||||||
|
generator(static_cast<GLsizei>(names.size()), &names[0]);
|
||||||
|
|
||||||
|
return glGetError() == GL_NO_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
const GLuint operator[](size_t i) const {
|
||||||
|
assert(i >= 0);
|
||||||
|
assert(i < names.size());
|
||||||
|
assert(names[i] != 0);
|
||||||
|
return names[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t size() const {
|
||||||
|
return names.size();
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
typedef std::array<GLuint, Size> Names;
|
||||||
|
|
||||||
|
GLObjectArray(const GLObjectArray &);
|
||||||
|
const GLObjectArray &operator=(const GLObjectArray &);
|
||||||
|
|
||||||
|
Names names;
|
||||||
|
Deleter *deleter = nullptr;
|
||||||
|
};
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <glutil/object.h>
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
|
GLObject::~GLObject() {
|
||||||
|
if (deleter != nullptr) {
|
||||||
|
deleter(name);
|
||||||
|
}
|
||||||
|
name = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GLObject::init(GLuint name, Deleter *deleter) {
|
||||||
|
assert(name != 0);
|
||||||
|
assert(deleter != nullptr);
|
||||||
|
assert(this->name == 0);
|
||||||
|
assert(this->deleter == nullptr);
|
||||||
|
this->name = name;
|
||||||
|
this->deleter = deleter;
|
||||||
|
|
||||||
|
return name != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
GLuint GLObject::get() const {
|
||||||
|
assert(name != 0);
|
||||||
|
return name;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
add_library(
|
||||||
|
gxm
|
||||||
|
INTERFACE
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(gxm INTERFACE include)
|
||||||
|
target_link_libraries(gxm INTERFACE mem)
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <mem/ptr.h>
|
||||||
|
|
||||||
|
namespace emu {
|
||||||
|
typedef void SceGxmDisplayQueueCallback(Ptr<const void> callbackData);
|
||||||
|
|
||||||
|
struct SceGxmInitializeParams {
|
||||||
|
uint32_t flags = 0;
|
||||||
|
uint32_t displayQueueMaxPendingCount = 0;
|
||||||
|
Ptr<SceGxmDisplayQueueCallback> displayQueueCallback;
|
||||||
|
uint32_t displayQueueCallbackDataSize = 0;
|
||||||
|
uint32_t parameterBufferSize = 0;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
struct GxmState {
|
||||||
|
emu::SceGxmInitializeParams params;
|
||||||
|
};
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
add_library(
|
||||||
|
host
|
||||||
|
STATIC
|
||||||
|
include/host/functions.h
|
||||||
|
include/host/import_fn.h
|
||||||
|
include/host/state.h
|
||||||
|
include/host/version.h
|
||||||
|
src/host.cpp
|
||||||
|
version.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
configure_file(src/version.cpp.in version.cpp)
|
||||||
|
|
||||||
|
target_include_directories(host PUBLIC include)
|
||||||
|
target_link_libraries(host PUBLIC audio cpu ctrl gxm io kernel mem)
|
||||||
|
target_link_libraries(host PRIVATE nids sdl2)
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <psp2/types.h>
|
||||||
|
|
||||||
|
struct HostState;
|
||||||
|
|
||||||
|
bool init(HostState &state);
|
||||||
|
bool handle_events(HostState &host);
|
||||||
|
void call_import(HostState &host, uint32_t nid, SceUID thread_id);
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <psp2/types.h>
|
||||||
|
|
||||||
|
struct HostState;
|
||||||
|
|
||||||
|
typedef void ImportFn(HostState &host, SceUID thread_id);
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <audio/state.h>
|
||||||
|
#include <ctrl/state.h>
|
||||||
|
#include <gxm/state.h>
|
||||||
|
#include <io/state.h>
|
||||||
|
#include <kernel/state.h>
|
||||||
|
|
||||||
|
struct SDL_Window;
|
||||||
|
|
||||||
|
typedef std::shared_ptr<SDL_Window> WindowPtr;
|
||||||
|
|
||||||
|
struct HostState {
|
||||||
|
std::string base_path;
|
||||||
|
std::string pref_path;
|
||||||
|
size_t frame_count = 0;
|
||||||
|
uint32_t t1 = 0;
|
||||||
|
WindowPtr window;
|
||||||
|
MemState mem;
|
||||||
|
CtrlState ctrl;
|
||||||
|
KernelState kernel;
|
||||||
|
AudioState audio;
|
||||||
|
GxmState gxm;
|
||||||
|
IOState io;
|
||||||
|
};
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
extern const char org_name[];
|
||||||
|
extern const char app_name[];
|
||||||
|
extern const char window_title[];
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <host/functions.h>
|
||||||
|
|
||||||
|
#include <host/import_fn.h>
|
||||||
|
#include <host/state.h>
|
||||||
|
#include <host/version.h>
|
||||||
|
|
||||||
|
#include <audio/functions.h>
|
||||||
|
#include <io/functions.h>
|
||||||
|
#include <kernel/functions.h>
|
||||||
|
#include <kernel/thread_state.h>
|
||||||
|
#include <nids/functions.h>
|
||||||
|
#include <util/lock_and_find.h>
|
||||||
|
|
||||||
|
#include <SDL_events.h>
|
||||||
|
#include <SDL_filesystem.h>
|
||||||
|
#include <SDL_video.h>
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <iomanip>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
static const bool LOG_IMPORT_CALLS = false;
|
||||||
|
|
||||||
|
#define NID(name, nid) extern ImportFn *const import_##name;
|
||||||
|
#include <nids/nids.h>
|
||||||
|
#undef NID
|
||||||
|
|
||||||
|
static ImportFn *resolve_import(uint32_t nid) {
|
||||||
|
switch (nid) {
|
||||||
|
#define NID(name, nid) \
|
||||||
|
case nid: \
|
||||||
|
return import_##name;
|
||||||
|
#include <nids/nids.h>
|
||||||
|
#undef NID
|
||||||
|
}
|
||||||
|
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool init(HostState &state) {
|
||||||
|
const std::unique_ptr<char, void (&)(void *)> base_path(SDL_GetBasePath(), SDL_free);
|
||||||
|
const std::unique_ptr<char, void (&)(void *)> pref_path(SDL_GetPrefPath(org_name, app_name), SDL_free);
|
||||||
|
|
||||||
|
const ResumeThread resume_thread = [&state](SceUID thread_id) {
|
||||||
|
const ThreadStatePtr thread = lock_and_find(thread_id, state.kernel.threads, state.kernel.mutex);
|
||||||
|
const std::unique_lock<std::mutex> lock(thread->mutex);
|
||||||
|
assert(thread->to_do == ThreadToDo::wait);
|
||||||
|
thread->to_do = ThreadToDo::run;
|
||||||
|
thread->something_to_do.notify_all();
|
||||||
|
};
|
||||||
|
|
||||||
|
state.base_path = base_path.get();
|
||||||
|
state.pref_path = pref_path.get();
|
||||||
|
state.window = WindowPtr(SDL_CreateWindow(window_title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 960, 544, SDL_WINDOW_OPENGL), SDL_DestroyWindow);
|
||||||
|
if (!state.window || !init(state.mem) || !init(state.audio, resume_thread) || !init(state.io, pref_path.get())) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool handle_events(HostState &host) {
|
||||||
|
SDL_Event event;
|
||||||
|
while (SDL_PollEvent(&event)) {
|
||||||
|
if (event.type == SDL_QUIT) {
|
||||||
|
stop_all_threads(host.kernel);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void call_import(HostState &host, uint32_t nid, SceUID thread_id) {
|
||||||
|
if (LOG_IMPORT_CALLS) {
|
||||||
|
const char *const name = import_name(nid);
|
||||||
|
const char prev_fill = std::cout.fill();
|
||||||
|
std::cout << "NID " << std::hex << std::setw(8) << std::setfill('0') << nid << std::setfill(prev_fill) << std::dec << " (" << name << ") called." << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
ImportFn *const fn = resolve_import(nid);
|
||||||
|
assert(fn != nullptr);
|
||||||
|
if (fn != nullptr) {
|
||||||
|
(*fn)(host, thread_id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#include <host/version.h>
|
||||||
|
|
||||||
|
const char org_name[] = "${VITA3K_ORG_NAME}";
|
||||||
|
const char app_name[] = "${VITA3K_APP_NAME}";
|
||||||
|
const char window_title[] = "${VITA3K_APP_NAME} ${VITA3K_VERSION}";
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
add_library(
|
||||||
|
io
|
||||||
|
STATIC
|
||||||
|
src/io.cpp
|
||||||
|
include/io/functions.h
|
||||||
|
include/io/state.h
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(io PUBLIC include)
|
||||||
|
target_link_libraries(io PUBLIC miniz vita-headers)
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <psp2/types.h>
|
||||||
|
|
||||||
|
struct IOState;
|
||||||
|
|
||||||
|
bool init(IOState &io, const char *pref_path);
|
||||||
|
SceUID open_file(IOState &io, const char *path, int flags, const char *pref_path);
|
||||||
|
int read_file(void *data, IOState &io, SceUID fd, SceSize size);
|
||||||
|
int write_file(SceUID fd, const void *data, SceSize size, const IOState &io);
|
||||||
|
int seek_file(SceUID fd, int offset, int whence, const IOState &io);
|
||||||
|
void close_file(IOState &io, SceUID fd);
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <miniz.h>
|
||||||
|
#include <psp2/types.h>
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
|
#include <map>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
typedef std::shared_ptr<FILE> FilePtr;
|
||||||
|
typedef std::shared_ptr<mz_zip_archive> ZipPtr;
|
||||||
|
typedef std::shared_ptr<mz_zip_reader_extract_iter_state> ZipFilePtr;
|
||||||
|
|
||||||
|
typedef std::map<SceUID, FilePtr> StdFiles;
|
||||||
|
typedef std::map<SceUID, ZipFilePtr> ZipFiles;
|
||||||
|
|
||||||
|
struct IOState {
|
||||||
|
ZipPtr vpk;
|
||||||
|
SceUID next_fd = 0;
|
||||||
|
StdFiles std_files;
|
||||||
|
ZipFiles zip_files;
|
||||||
|
};
|
||||||
@@ -0,0 +1,210 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <io/functions.h>
|
||||||
|
|
||||||
|
#include <io/state.h>
|
||||||
|
|
||||||
|
#include <psp2/io/fcntl.h>
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <Windows.h>
|
||||||
|
#else
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
#include <cassert>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
static ZipFilePtr open_zip(mz_zip_archive &zip, const char *entry_path) {
|
||||||
|
const int index = mz_zip_reader_locate_file(&zip, entry_path, nullptr, 0);
|
||||||
|
if (index < 0) {
|
||||||
|
return ZipFilePtr();
|
||||||
|
}
|
||||||
|
|
||||||
|
const ZipFilePtr zip_file(mz_zip_reader_extract_iter_new(&zip, index, 0), mz_zip_reader_extract_iter_free);
|
||||||
|
if (!zip_file) {
|
||||||
|
return ZipFilePtr();
|
||||||
|
}
|
||||||
|
|
||||||
|
return zip_file;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void delete_file(FILE *file) {
|
||||||
|
if (file != nullptr) {
|
||||||
|
fclose(file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *translate_open_mode(int flags) {
|
||||||
|
if (flags & SCE_O_WRONLY) {
|
||||||
|
if (flags & SCE_O_RDONLY) {
|
||||||
|
if (flags & SCE_O_CREAT) {
|
||||||
|
if (flags & SCE_O_APPEND) {
|
||||||
|
return "ab+";
|
||||||
|
} else {
|
||||||
|
return "wb+";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return "rb+";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (flags & SCE_O_APPEND) {
|
||||||
|
return "ab";
|
||||||
|
} else {
|
||||||
|
return "wb";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return "rb";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool init(IOState &io, const char *pref_path) {
|
||||||
|
std::string ux0 = pref_path;
|
||||||
|
ux0 += "ux0";
|
||||||
|
const std::string ux0_data = ux0 + "/data";
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
CreateDirectoryA(ux0.c_str(), nullptr);
|
||||||
|
CreateDirectoryA(ux0_data.c_str(), nullptr);
|
||||||
|
#else
|
||||||
|
const int mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
|
||||||
|
mkdir(ux0.c_str(), mode);
|
||||||
|
mkdir(ux0_data.c_str(), mode);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
SceUID open_file(IOState &io, const char *path, int flags, const char *pref_path) {
|
||||||
|
// TODO Hacky magic numbers.
|
||||||
|
assert((strcmp(path, "tty0:") == 0) || (strncmp(path, "app0:/", 6) == 0) || (strncmp(path, "ux0:/", 5) == 0));
|
||||||
|
|
||||||
|
if (strcmp(path, "tty0:") == 0) {
|
||||||
|
assert(flags >= 0);
|
||||||
|
assert(flags <= SCE_O_RDWR);
|
||||||
|
|
||||||
|
return io.next_fd++;
|
||||||
|
} else if (strncmp(path, "app0:/", 6) == 0) {
|
||||||
|
assert(flags == SCE_O_RDONLY);
|
||||||
|
|
||||||
|
if (!io.vpk) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ZipFilePtr file = open_zip(*io.vpk, &path[6]);
|
||||||
|
if (!file) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
const SceUID fd = io.next_fd++;
|
||||||
|
io.zip_files.emplace(fd, file);
|
||||||
|
|
||||||
|
return fd;
|
||||||
|
} else if (strncmp(path, "ux0:/", 5) == 0) {
|
||||||
|
std::string file_path = pref_path;
|
||||||
|
file_path += "ux0/";
|
||||||
|
file_path += &path[5];
|
||||||
|
|
||||||
|
const char *const open_mode = translate_open_mode(flags);
|
||||||
|
const FilePtr file(fopen(file_path.c_str(), open_mode), delete_file);
|
||||||
|
if (!file) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
const SceUID fd = io.next_fd++;
|
||||||
|
io.std_files.emplace(fd, file);
|
||||||
|
|
||||||
|
return fd;
|
||||||
|
} else {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int read_file(void *data, IOState &io, SceUID fd, SceSize size) {
|
||||||
|
assert(data != nullptr);
|
||||||
|
assert(fd >= 0);
|
||||||
|
assert(size >= 0);
|
||||||
|
|
||||||
|
const ZipFiles::const_iterator zip_file = io.zip_files.find(fd);
|
||||||
|
if (zip_file != io.zip_files.end()) {
|
||||||
|
return mz_zip_reader_extract_iter_read(zip_file->second.get(), data, size);
|
||||||
|
}
|
||||||
|
|
||||||
|
const StdFiles::const_iterator file = io.std_files.find(fd);
|
||||||
|
if (file != io.std_files.end()) {
|
||||||
|
return fread(data, 1, size, file->second.get());
|
||||||
|
}
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int write_file(SceUID fd, const void *data, SceSize size, const IOState &io) {
|
||||||
|
assert(data != nullptr);
|
||||||
|
assert(fd >= 0);
|
||||||
|
assert(size >= 0);
|
||||||
|
|
||||||
|
const StdFiles::const_iterator file = io.std_files.find(fd);
|
||||||
|
assert(file != io.std_files.end());
|
||||||
|
if (file == io.std_files.end()) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return fwrite(data, 1, size, file->second.get());
|
||||||
|
}
|
||||||
|
|
||||||
|
int seek_file(SceUID fd, int offset, int whence, const IOState &io) {
|
||||||
|
assert(fd >= 0);
|
||||||
|
assert((whence == SCE_SEEK_SET) || (whence == SCE_SEEK_CUR) || (whence == SCE_SEEK_END));
|
||||||
|
|
||||||
|
const StdFiles::const_iterator file = io.std_files.find(fd);
|
||||||
|
assert(file != io.std_files.end());
|
||||||
|
if (file == io.std_files.end()) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int base = SEEK_SET;
|
||||||
|
switch (whence) {
|
||||||
|
case SCE_SEEK_SET:
|
||||||
|
base = SEEK_SET;
|
||||||
|
break;
|
||||||
|
case SCE_SEEK_CUR:
|
||||||
|
base = SEEK_CUR;
|
||||||
|
break;
|
||||||
|
case SCE_SEEK_END:
|
||||||
|
base = SEEK_END;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
const int ret = fseek(file->second.get(), offset, base);
|
||||||
|
if (ret != 0) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
const long pos = ftell(file->second.get());
|
||||||
|
return pos;
|
||||||
|
}
|
||||||
|
|
||||||
|
void close_file(IOState &io, SceUID fd) {
|
||||||
|
assert(fd >= 0);
|
||||||
|
|
||||||
|
io.std_files.erase(fd);
|
||||||
|
io.zip_files.erase(fd);
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
add_library(
|
||||||
|
kernel
|
||||||
|
STATIC
|
||||||
|
include/kernel/functions.h
|
||||||
|
include/kernel/state.h
|
||||||
|
include/kernel/thread_functions.h
|
||||||
|
include/kernel/thread_state.h
|
||||||
|
src/kernel.cpp
|
||||||
|
src/thread.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(kernel PUBLIC include)
|
||||||
|
target_link_libraries(kernel PUBLIC cpu vita-headers util)
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <psp2/types.h>
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
class Ptr;
|
||||||
|
struct KernelState;
|
||||||
|
struct MemState;
|
||||||
|
|
||||||
|
Ptr<Ptr<void>> get_thread_tls_addr(KernelState &kernel, MemState &mem, SceUID thread_id, int key);
|
||||||
|
void stop_all_threads(KernelState &kernel);
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <mem/ptr.h>
|
||||||
|
|
||||||
|
#include <psp2/types.h>
|
||||||
|
|
||||||
|
#include <map>
|
||||||
|
#include <mutex>
|
||||||
|
|
||||||
|
struct Semaphore;
|
||||||
|
struct ThreadState;
|
||||||
|
|
||||||
|
struct SDL_semaphore;
|
||||||
|
struct SDL_Thread;
|
||||||
|
|
||||||
|
typedef std::map<SceUID, Ptr<void>> Blocks;
|
||||||
|
typedef std::shared_ptr<Semaphore> SemaphorePtr;
|
||||||
|
typedef std::map<SceUID, SemaphorePtr> SemaphorePtrs;
|
||||||
|
typedef std::map<SceUID, Ptr<Ptr<void>>> SlotToAddress;
|
||||||
|
typedef std::map<SceUID, SlotToAddress> ThreadToSlotToAddress;
|
||||||
|
typedef std::shared_ptr<ThreadState> ThreadStatePtr;
|
||||||
|
typedef std::map<SceUID, ThreadStatePtr> ThreadStatePtrs;
|
||||||
|
typedef std::shared_ptr<SDL_Thread> ThreadPtr;
|
||||||
|
typedef std::map<SceUID, ThreadPtr> ThreadPtrs;
|
||||||
|
|
||||||
|
namespace emu {
|
||||||
|
typedef Ptr<int(SceSize args, Ptr<void> argp)> SceKernelThreadEntry;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct WaitingThreadState {
|
||||||
|
std::string name;
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef std::map<SceUID, WaitingThreadState> WaitingThreadStates;
|
||||||
|
|
||||||
|
struct KernelState {
|
||||||
|
std::mutex mutex;
|
||||||
|
Blocks blocks;
|
||||||
|
SceUID next_uid = 0;
|
||||||
|
ThreadToSlotToAddress tls;
|
||||||
|
SemaphorePtrs semaphores;
|
||||||
|
ThreadStatePtrs threads;
|
||||||
|
ThreadPtrs running_threads;
|
||||||
|
WaitingThreadStates waiting_threads;
|
||||||
|
};
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <mem/ptr.h>
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
struct CPUState;
|
||||||
|
struct ThreadState;
|
||||||
|
|
||||||
|
typedef std::function<void(uint32_t)> CallImport;
|
||||||
|
typedef std::shared_ptr<ThreadState> ThreadStatePtr;
|
||||||
|
|
||||||
|
ThreadStatePtr init_thread(Ptr<const void> entry_point, size_t stack_size, bool log_code, MemState &mem, CallImport call_import);
|
||||||
|
bool run_thread(ThreadState &thread);
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <mem/mem.h> // Address.
|
||||||
|
|
||||||
|
#include <mutex>
|
||||||
|
|
||||||
|
struct CPUState;
|
||||||
|
template <typename T>
|
||||||
|
class Resource;
|
||||||
|
|
||||||
|
typedef Resource<Address> ThreadStack;
|
||||||
|
typedef std::shared_ptr<ThreadStack> ThreadStackPtr;
|
||||||
|
typedef std::unique_ptr<CPUState, std::function<void(CPUState *)>> CPUStatePtr;
|
||||||
|
|
||||||
|
enum class ThreadToDo {
|
||||||
|
exit,
|
||||||
|
run,
|
||||||
|
wait,
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ThreadState {
|
||||||
|
ThreadStackPtr stack;
|
||||||
|
CPUStatePtr cpu;
|
||||||
|
ThreadToDo to_do = ThreadToDo::run;
|
||||||
|
std::mutex mutex;
|
||||||
|
std::condition_variable something_to_do;
|
||||||
|
};
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <kernel/functions.h>
|
||||||
|
|
||||||
|
#include <kernel/state.h>
|
||||||
|
#include <kernel/thread_state.h>
|
||||||
|
|
||||||
|
#include <cpu/functions.h>
|
||||||
|
#include <mem/mem.h>
|
||||||
|
#include <mem/ptr.h>
|
||||||
|
|
||||||
|
Ptr<Ptr<void>> get_thread_tls_addr(KernelState &kernel, MemState &mem, SceUID thread_id, int key) {
|
||||||
|
SlotToAddress &slot_to_address = kernel.tls[thread_id];
|
||||||
|
|
||||||
|
const SlotToAddress::const_iterator existing = slot_to_address.find(key);
|
||||||
|
if (existing != slot_to_address.end()) {
|
||||||
|
return existing->second;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO Use a finer-grained allocator.
|
||||||
|
// TODO This is a memory leak.
|
||||||
|
const Ptr<Ptr<void>> address(alloc<Ptr<void>>(mem, "TLS"));
|
||||||
|
slot_to_address.insert(SlotToAddress::value_type(key, address));
|
||||||
|
|
||||||
|
return address;
|
||||||
|
}
|
||||||
|
|
||||||
|
void stop_all_threads(KernelState &kernel) {
|
||||||
|
const std::unique_lock<std::mutex> lock(kernel.mutex);
|
||||||
|
for (ThreadStatePtrs::iterator thread = kernel.threads.begin(); thread != kernel.threads.end(); ++thread) {
|
||||||
|
{
|
||||||
|
const std::unique_lock<std::mutex> lock(thread->second->mutex);
|
||||||
|
thread->second->to_do = ThreadToDo::exit;
|
||||||
|
}
|
||||||
|
thread->second->something_to_do.notify_all();
|
||||||
|
stop(*thread->second->cpu);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <kernel/thread_functions.h>
|
||||||
|
|
||||||
|
#include <kernel/thread_state.h>
|
||||||
|
|
||||||
|
#include <cpu/functions.h>
|
||||||
|
#include <util/resource.h>
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
|
||||||
|
ThreadStatePtr init_thread(Ptr<const void> entry_point, size_t stack_size, bool log_code, MemState &mem, CallImport call_import) {
|
||||||
|
const ThreadStack::Deleter stack_deleter = [&mem](Address stack) {
|
||||||
|
free(mem, stack);
|
||||||
|
};
|
||||||
|
|
||||||
|
const ThreadStatePtr thread = std::make_shared<ThreadState>();
|
||||||
|
thread->stack = std::make_shared<ThreadStack>(alloc(mem, stack_size, "Stack"), stack_deleter);
|
||||||
|
const Address stack_top = thread->stack->get() + stack_size;
|
||||||
|
memset(Ptr<void>(thread->stack->get()).get(mem), 0xcc, stack_size);
|
||||||
|
|
||||||
|
const CallSVC call_svc = [call_import, &mem](uint32_t imm, Address pc) {
|
||||||
|
assert(imm == 0);
|
||||||
|
const uint32_t nid = *Ptr<uint32_t>(pc + 4).get(mem);
|
||||||
|
call_import(nid);
|
||||||
|
};
|
||||||
|
|
||||||
|
thread->cpu = init_cpu(entry_point.address(), stack_top, log_code, call_svc, mem);
|
||||||
|
if (!thread->cpu) {
|
||||||
|
return ThreadStatePtr();
|
||||||
|
}
|
||||||
|
|
||||||
|
return thread;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool run_thread(ThreadState &thread) {
|
||||||
|
std::unique_lock<std::mutex> lock(thread.mutex);
|
||||||
|
while (true) {
|
||||||
|
switch (thread.to_do) {
|
||||||
|
case ThreadToDo::exit:
|
||||||
|
return true;
|
||||||
|
case ThreadToDo::run:
|
||||||
|
lock.unlock();
|
||||||
|
if (!run(*thread.cpu)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
lock.lock();
|
||||||
|
break;
|
||||||
|
case ThreadToDo::wait:
|
||||||
|
thread.something_to_do.wait(lock);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,124 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include "load_self.h"
|
||||||
|
|
||||||
|
#include "relocation.h"
|
||||||
|
|
||||||
|
#include <nids/functions.h>
|
||||||
|
|
||||||
|
#include <elfio/elf_types.hpp>
|
||||||
|
#define SCE_ELF_DEFS_TARGET
|
||||||
|
#include <sce-elf-defs.h>
|
||||||
|
#undef SCE_ELF_DEFS_TARGET
|
||||||
|
#include <self.h>
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
|
#include <iomanip>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
using namespace ELFIO;
|
||||||
|
|
||||||
|
static const bool LOG_IMPORTS = false;
|
||||||
|
|
||||||
|
static bool load_func_imports(const uint32_t *nids, const Ptr<uint32_t> *entries, size_t count, const MemState &mem) {
|
||||||
|
for (size_t i = 0; i < count; ++i) {
|
||||||
|
const uint32_t nid = nids[i];
|
||||||
|
const Ptr<uint32_t> entry = entries[i];
|
||||||
|
|
||||||
|
if (LOG_IMPORTS) {
|
||||||
|
const char *const name = import_name(nid);
|
||||||
|
const char prev_fill = std::cout.fill();
|
||||||
|
std::cout << "\tNID " << std::hex << std::setw(8) << std::setfill('0') << nid << std::setfill(prev_fill) << " (" << name << ") at 0x" << entry.address() << std::dec << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t *const stub = entry.get(mem);
|
||||||
|
stub[0] = 0xef000000; // svc #0 - Call our interrupt hook.
|
||||||
|
stub[1] = 0xe1a0f00e; // mov pc, lr - Return to the caller.
|
||||||
|
stub[2] = nid; // Our interrupt hook will read this.
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
static bool load_imports(const sce_module_info_raw &module, Ptr<const void> segment_address, const MemState &mem) {
|
||||||
|
const uint8_t *const base = segment_address.cast<const uint8_t>().get(mem);
|
||||||
|
const sce_module_imports_raw *const imports_begin = reinterpret_cast<const sce_module_imports_raw *>(base + module.import_top);
|
||||||
|
const sce_module_imports_raw *const imports_end = reinterpret_cast<const sce_module_imports_raw *>(base + module.import_end);
|
||||||
|
|
||||||
|
for (const sce_module_imports_raw *imports = imports_begin; imports < imports_end; imports = reinterpret_cast<const sce_module_imports_raw *>(reinterpret_cast<const uint8_t *>(imports) + imports->size)) {
|
||||||
|
if (LOG_IMPORTS) {
|
||||||
|
const char *const lib_name = Ptr<const char>(imports->module_name).get(mem);
|
||||||
|
std::cout << "Loading imports from " << lib_name << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
assert(imports->version == 1);
|
||||||
|
assert(imports->num_syms_vars == 0);
|
||||||
|
assert(imports->num_syms_unk == 0);
|
||||||
|
|
||||||
|
const uint32_t *const nids = Ptr<const uint32_t>(imports->func_nid_table).get(mem);
|
||||||
|
const Ptr<uint32_t> *const entries = Ptr<Ptr<uint32_t>>(imports->func_entry_table).get(mem);
|
||||||
|
if (!load_func_imports(nids, entries, imports->num_syms_funcs, mem)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool load_self(Ptr<const void> &entry_point, MemState &mem, const void *self) {
|
||||||
|
const uint8_t *const self_bytes = static_cast<const uint8_t *>(self);
|
||||||
|
const SCE_header &self_header = *static_cast<const SCE_header *>(self);
|
||||||
|
const uint8_t *const elf_bytes = self_bytes + self_header.header_len;
|
||||||
|
const Elf32_Ehdr &elf = *reinterpret_cast<const Elf32_Ehdr *>(elf_bytes);
|
||||||
|
const unsigned int module_info_segment_index = static_cast<unsigned int>(elf.e_entry >> 30);
|
||||||
|
const uint32_t module_info_offset = elf.e_entry & 0x3fffffff;
|
||||||
|
const Elf32_Phdr *const segments = reinterpret_cast<const Elf32_Phdr *>(self_bytes + self_header.phdr_offset);
|
||||||
|
const Elf32_Phdr &module_info_segment = segments[module_info_segment_index];
|
||||||
|
const uint8_t *const module_info_segment_bytes = elf_bytes + module_info_segment.p_offset;
|
||||||
|
const sce_module_info_raw *const module_info = reinterpret_cast<const sce_module_info_raw *>(module_info_segment_bytes + module_info_offset);
|
||||||
|
|
||||||
|
SegmentAddresses segment_addrs;
|
||||||
|
for (Elf_Half segment_index = 0; segment_index < elf.e_phnum; ++segment_index) {
|
||||||
|
const Elf32_Phdr &src = segments[segment_index];
|
||||||
|
const uint8_t *const segment_bytes = elf_bytes + src.p_offset;
|
||||||
|
if (src.p_type == PT_LOAD) {
|
||||||
|
const Ptr<void> address(alloc(mem, src.p_memsz, "segment"));
|
||||||
|
if (!address) {
|
||||||
|
std::cerr << "Failed to allocate memory for segment." << std::endl;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
memcpy(address.get(mem), segment_bytes, src.p_filesz);
|
||||||
|
|
||||||
|
segment_addrs[segment_index] = address;
|
||||||
|
} else if (src.p_type == PT_LOOS) {
|
||||||
|
if (!relocate(segment_bytes, src.p_filesz, segment_addrs, mem)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const Ptr<const uint8_t> module_info_segment_address = segment_addrs[module_info_segment_index].cast<const uint8_t>();
|
||||||
|
entry_point = module_info_segment_address + module_info->module_start;
|
||||||
|
|
||||||
|
if (!load_imports(*module_info, module_info_segment_address, mem)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
struct MemState;
|
||||||
|
template <class T>
|
||||||
|
class Ptr;
|
||||||
|
|
||||||
|
bool load_self(Ptr<const void> &entry_point, MemState &mem, const void *self);
|
||||||
@@ -0,0 +1,112 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include "vpk.h"
|
||||||
|
|
||||||
|
#include <host/functions.h>
|
||||||
|
#include <host/state.h>
|
||||||
|
#include <host/version.h>
|
||||||
|
#include <kernel/thread_functions.h>
|
||||||
|
|
||||||
|
#include <SDL.h>
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
typedef std::unique_ptr<const void, void (*)(const void *)> SDLPtr;
|
||||||
|
|
||||||
|
enum ExitCode {
|
||||||
|
Success = 0,
|
||||||
|
IncorrectArgs,
|
||||||
|
SDLInitFailed,
|
||||||
|
HostInitFailed,
|
||||||
|
ModuleLoadFailed,
|
||||||
|
InitThreadFailed,
|
||||||
|
RunThreadFailed
|
||||||
|
};
|
||||||
|
|
||||||
|
static void error(const char *message, SDL_Window *window) {
|
||||||
|
if (SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", message, window) < 0) {
|
||||||
|
std::cerr << message << std::endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void term_sdl(const void *succeeded) {
|
||||||
|
assert(succeeded != nullptr);
|
||||||
|
|
||||||
|
SDL_Quit();
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char *argv[]) {
|
||||||
|
std::cout << window_title << std::endl;
|
||||||
|
|
||||||
|
if (argc < 2) {
|
||||||
|
std::string message = "Usage: ";
|
||||||
|
message += argv[0];
|
||||||
|
message += " <path to VPK file>";
|
||||||
|
error(message.c_str(), nullptr);
|
||||||
|
return IncorrectArgs;
|
||||||
|
}
|
||||||
|
|
||||||
|
const SDLPtr sdl(reinterpret_cast<const void *>(SDL_Init(SDL_INIT_AUDIO | SDL_INIT_GAMECONTROLLER | SDL_INIT_VIDEO) >= 0), term_sdl);
|
||||||
|
if (!sdl) {
|
||||||
|
error("SDL initialisation failed.", nullptr);
|
||||||
|
return SDLInitFailed;
|
||||||
|
}
|
||||||
|
|
||||||
|
HostState host;
|
||||||
|
if (!init(host)) {
|
||||||
|
error("Host initialisation failed.", host.window.get());
|
||||||
|
return HostInitFailed;
|
||||||
|
}
|
||||||
|
|
||||||
|
Ptr<const void> entry_point;
|
||||||
|
const char *const path = argv[1];
|
||||||
|
if (!load_vpk(entry_point, host.io, host.mem, path)) {
|
||||||
|
std::string message = "Failed to load \"";
|
||||||
|
message += path;
|
||||||
|
message += "\".";
|
||||||
|
error(message.c_str(), host.window.get());
|
||||||
|
return ModuleLoadFailed;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO This is hacky. Belongs in kernel?
|
||||||
|
const SceUID main_thread_id = host.kernel.next_uid++;
|
||||||
|
|
||||||
|
const CallImport call_import = [&host, main_thread_id](uint32_t nid) {
|
||||||
|
::call_import(host, nid, main_thread_id);
|
||||||
|
};
|
||||||
|
|
||||||
|
const size_t stack_size = MB(1); // TODO Get main thread stack size from somewhere?
|
||||||
|
const bool log_code = false;
|
||||||
|
const ThreadStatePtr main_thread = init_thread(entry_point, stack_size, log_code, host.mem, call_import);
|
||||||
|
if (!main_thread) {
|
||||||
|
error("Failed to init main thread.", host.window.get());
|
||||||
|
return InitThreadFailed;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO Move this to kernel.
|
||||||
|
host.kernel.threads.emplace(main_thread_id, main_thread);
|
||||||
|
|
||||||
|
host.t1 = SDL_GetTicks();
|
||||||
|
if (!run_thread(*main_thread)) {
|
||||||
|
error("Failed to run main thread.", host.window.get());
|
||||||
|
return RunThreadFailed;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Success;
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
add_library(
|
||||||
|
mem
|
||||||
|
STATIC
|
||||||
|
src/mem.cpp
|
||||||
|
include/mem/mem.h
|
||||||
|
include/mem/ptr.h
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(mem PUBLIC include)
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
|
#include <map>
|
||||||
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
typedef uint32_t Address;
|
||||||
|
typedef size_t Generation;
|
||||||
|
typedef std::unique_ptr<uint8_t[], std::function<void(uint8_t *)>> Memory;
|
||||||
|
typedef std::vector<Generation> Allocated;
|
||||||
|
typedef std::map<Generation, std::string> GenerationNames;
|
||||||
|
|
||||||
|
struct MemState {
|
||||||
|
size_t page_size = 0;
|
||||||
|
Generation generation = 0;
|
||||||
|
Memory memory;
|
||||||
|
Allocated allocated_pages;
|
||||||
|
GenerationNames generation_names;
|
||||||
|
};
|
||||||
|
|
||||||
|
constexpr size_t KB(size_t kb) {
|
||||||
|
return kb * 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
constexpr size_t MB(size_t mb) {
|
||||||
|
return mb * KB(1024);
|
||||||
|
}
|
||||||
|
|
||||||
|
constexpr size_t GB(size_t gb) {
|
||||||
|
return gb * MB(1024);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool init(MemState &state);
|
||||||
|
Address alloc(MemState &state, size_t size, const char *name);
|
||||||
|
void free(MemState &state, Address address);
|
||||||
|
const char *mem_name(Address address, const MemState &state);
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <mem/mem.h>
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
class Ptr {
|
||||||
|
public:
|
||||||
|
Ptr()
|
||||||
|
: addr(0) {
|
||||||
|
}
|
||||||
|
|
||||||
|
explicit Ptr(Address address)
|
||||||
|
: addr(address) {
|
||||||
|
}
|
||||||
|
|
||||||
|
template <class U>
|
||||||
|
Ptr(const Ptr<U> &other)
|
||||||
|
: addr(other.address()) {
|
||||||
|
static_assert(std::is_convertible<U *, T *>::value, "Ptr is not convertible.");
|
||||||
|
}
|
||||||
|
|
||||||
|
Address address() const {
|
||||||
|
return addr;
|
||||||
|
}
|
||||||
|
|
||||||
|
template <class U>
|
||||||
|
Ptr<U> cast() const {
|
||||||
|
return Ptr<U>(addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
T *get(const MemState &mem) const {
|
||||||
|
if (addr == 0) {
|
||||||
|
return nullptr;
|
||||||
|
} else {
|
||||||
|
return reinterpret_cast<T *>(&mem.memory[addr]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void reset() {
|
||||||
|
addr = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
explicit operator bool() const {
|
||||||
|
return addr != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
Address addr;
|
||||||
|
};
|
||||||
|
|
||||||
|
static_assert(sizeof(Ptr<const void>) == 4, "Size of Ptr isn't 4 bytes.");
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
Ptr<T> operator+(const Ptr<T> &base, int32_t offset) {
|
||||||
|
return Ptr<T>(base.address() + (offset * sizeof(T)));
|
||||||
|
}
|
||||||
|
|
||||||
|
template <class T, class U>
|
||||||
|
bool operator<(const Ptr<T> &a, const Ptr<U> &b) {
|
||||||
|
return a.address() < b.address();
|
||||||
|
}
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
Ptr<T> alloc(MemState &mem, const char *name) {
|
||||||
|
const Address address = alloc(mem, sizeof(T), name);
|
||||||
|
const Ptr<T> ptr(address);
|
||||||
|
if (!ptr) {
|
||||||
|
return ptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
T *const memory = ptr.get(mem);
|
||||||
|
new (memory) T;
|
||||||
|
|
||||||
|
return ptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
void free(MemState &mem, const Ptr<T> &ptr) {
|
||||||
|
ptr.get(mem)->~T();
|
||||||
|
free(mem, ptr.address());
|
||||||
|
}
|
||||||
@@ -0,0 +1,147 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <mem/mem.h>
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
#include <cassert>
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <Windows.h>
|
||||||
|
#else
|
||||||
|
#include <sys/mman.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static void delete_memory(uint8_t *memory) {
|
||||||
|
if (memory != nullptr) {
|
||||||
|
#ifdef WIN32
|
||||||
|
const BOOL ret = VirtualFree(memory, 0, MEM_RELEASE);
|
||||||
|
assert(ret);
|
||||||
|
#else
|
||||||
|
munmap(memory, GB(4));
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void alloc_inner(MemState &state, Address address, size_t page_count, Allocated::iterator block, const char *name) {
|
||||||
|
uint8_t *const memory = &state.memory[address];
|
||||||
|
const size_t aligned_size = page_count * state.page_size;
|
||||||
|
|
||||||
|
const Generation generation = ++state.generation;
|
||||||
|
std::fill_n(block, page_count, generation);
|
||||||
|
state.generation_names[generation] = name;
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
const void *const ret = VirtualAlloc(memory, aligned_size, MEM_COMMIT, PAGE_READWRITE);
|
||||||
|
assert(ret == memory);
|
||||||
|
#else
|
||||||
|
mprotect(memory, aligned_size, PROT_READ | PROT_WRITE);
|
||||||
|
#endif
|
||||||
|
std::memset(memory, 0, aligned_size);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool init(MemState &state) {
|
||||||
|
#ifdef WIN32
|
||||||
|
SYSTEM_INFO system_info = {};
|
||||||
|
GetSystemInfo(&system_info);
|
||||||
|
state.page_size = system_info.dwPageSize;
|
||||||
|
#else
|
||||||
|
state.page_size = sysconf(_SC_PAGESIZE);
|
||||||
|
#endif
|
||||||
|
assert(state.page_size >= 4096); // Limit imposed by Unicorn.
|
||||||
|
|
||||||
|
const size_t length = GB(4);
|
||||||
|
#ifdef WIN32
|
||||||
|
state.memory = Memory(static_cast<uint8_t *>(VirtualAlloc(nullptr, length, MEM_RESERVE, PAGE_NOACCESS)), delete_memory);
|
||||||
|
#else
|
||||||
|
// http://man7.org/linux/man-pages/man2/mmap.2.html
|
||||||
|
void *const addr = nullptr;
|
||||||
|
const int prot = PROT_NONE;
|
||||||
|
const int flags = MAP_PRIVATE | MAP_ANONYMOUS;
|
||||||
|
const int fd = 0;
|
||||||
|
const off_t offset = 0;
|
||||||
|
state.memory = Memory(static_cast<uint8_t *>(mmap(addr, length, prot, flags, fd, offset)), delete_memory);
|
||||||
|
#endif
|
||||||
|
if (!state.memory) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
state.allocated_pages.resize(length / state.page_size);
|
||||||
|
const Address null_address = alloc(state, 1, "NULL");
|
||||||
|
assert(null_address == 0);
|
||||||
|
#ifdef WIN32
|
||||||
|
const BOOL res = VirtualProtect(state.memory.get(), state.page_size, PAGE_NOACCESS, nullptr);
|
||||||
|
#else
|
||||||
|
mprotect(state.memory.get(), state.page_size, PROT_NONE);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
Address alloc(MemState &state, size_t size, const char *name) {
|
||||||
|
const size_t page_count = (size + (state.page_size - 1)) / state.page_size;
|
||||||
|
const Allocated::iterator block = std::search_n(state.allocated_pages.begin(), state.allocated_pages.end(), page_count, 0);
|
||||||
|
if (block == state.allocated_pages.end()) {
|
||||||
|
assert(false);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
const size_t block_page_index = block - state.allocated_pages.begin();
|
||||||
|
const Address address = static_cast<Address>(block_page_index * state.page_size);
|
||||||
|
|
||||||
|
alloc_inner(state, address, page_count, block, name);
|
||||||
|
|
||||||
|
return address;
|
||||||
|
}
|
||||||
|
|
||||||
|
void free(MemState &state, Address address) {
|
||||||
|
const size_t page = address / state.page_size;
|
||||||
|
assert(page >= 0);
|
||||||
|
assert(page < state.allocated_pages.size());
|
||||||
|
|
||||||
|
const Generation generation = state.allocated_pages[page];
|
||||||
|
assert(generation != 0);
|
||||||
|
|
||||||
|
const std::binder1st<std::not_equal_to<Generation>> different_generation = std::bind1st(std::not_equal_to<Generation>(), generation);
|
||||||
|
const Allocated::iterator first_page = state.allocated_pages.begin() + page;
|
||||||
|
const Allocated::iterator last_page = std::find_if(first_page, state.allocated_pages.end(), different_generation);
|
||||||
|
std::fill(first_page, last_page, 0);
|
||||||
|
|
||||||
|
// TODO Decommit/protect freed memory.
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *mem_name(Address address, const MemState &state) {
|
||||||
|
const size_t page = address / state.page_size;
|
||||||
|
assert(page >= 0);
|
||||||
|
assert(page < state.allocated_pages.size());
|
||||||
|
|
||||||
|
const Generation generation = state.allocated_pages[page];
|
||||||
|
if (generation == 0) {
|
||||||
|
return "UNALLOCATED";
|
||||||
|
}
|
||||||
|
|
||||||
|
const GenerationNames::const_iterator found = state.generation_names.find(generation);
|
||||||
|
assert(found != state.generation_names.end());
|
||||||
|
if (found == state.generation_names.end()) {
|
||||||
|
return "UNNAMED";
|
||||||
|
}
|
||||||
|
|
||||||
|
return found->second.c_str();
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
add_library(
|
||||||
|
module
|
||||||
|
STATIC
|
||||||
|
include/module/bridge.h
|
||||||
|
include/module/bridge_args.h
|
||||||
|
include/module/bridge_return.h
|
||||||
|
include/module/module.h
|
||||||
|
src/bridge_return.cpp
|
||||||
|
src/module.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(module PUBLIC include)
|
||||||
|
target_link_libraries(module PUBLIC host microprofile)
|
||||||
|
target_link_libraries(module PRIVATE util)
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <host/state.h>
|
||||||
|
#include <kernel/thread_state.h>
|
||||||
|
#include <util/lock_and_find.h>
|
||||||
|
|
||||||
|
#include <microprofile.h>
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
|
||||||
|
struct CPUState;
|
||||||
|
|
||||||
|
template <typename... Args>
|
||||||
|
struct ArgLayout;
|
||||||
|
|
||||||
|
template <typename Ret>
|
||||||
|
struct BridgeReturn;
|
||||||
|
|
||||||
|
template <typename Fn, Fn, typename Indices>
|
||||||
|
struct CallAndBridgeReturn;
|
||||||
|
|
||||||
|
// Function returns a value that requires bridging.
|
||||||
|
template <typename Ret, typename... Args, Ret (*export_fn)(HostState &, SceUID, Args...), size_t... Indices>
|
||||||
|
struct CallAndBridgeReturn<Ret (*)(HostState &, SceUID, Args...), export_fn, std::index_sequence<Indices...>> {
|
||||||
|
static void call(SceUID thread_id, CPUState &cpu, HostState &host) {
|
||||||
|
using ArgLayoutType = ArgLayout<Args...>;
|
||||||
|
const Ret ret = (*export_fn)(host, thread_id, ArgLayoutType::template read<Args, Indices>(cpu, host.mem)...);
|
||||||
|
BridgeReturn<Ret>::write(cpu, ret);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Function does not return a value.
|
||||||
|
template <typename... Args, void (*export_fn)(HostState &, SceUID, Args...), size_t... Indices>
|
||||||
|
struct CallAndBridgeReturn<void (*)(HostState &, SceUID, Args...), export_fn, std::index_sequence<Indices...>> {
|
||||||
|
static void call(SceUID thread_id, CPUState &cpu, HostState &host) {
|
||||||
|
using ArgLayoutType = ArgLayout<Args...>;
|
||||||
|
(*export_fn)(host, thread_id, ArgLayoutType::template read<Args, Indices>(cpu, host.mem)...);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
template <typename FnPtr, FnPtr>
|
||||||
|
struct Bridge;
|
||||||
|
|
||||||
|
template <typename Ret, typename... Args, Ret (*export_fn)(HostState &, SceUID, Args...)>
|
||||||
|
struct Bridge<Ret (*)(HostState &, SceUID, Args...), export_fn> {
|
||||||
|
static void call(HostState &host, SceUID thread_id) {
|
||||||
|
MICROPROFILE_SCOPEI("HLE", "", MP_YELLOW);
|
||||||
|
|
||||||
|
const ThreadStatePtr thread = lock_and_find(thread_id, host.kernel.threads, host.kernel.mutex);
|
||||||
|
assert(thread);
|
||||||
|
|
||||||
|
using Indices = std::index_sequence_for<Args...>;
|
||||||
|
CallAndBridgeReturn<Ret (*)(HostState &, SceUID, Args...), export_fn, Indices>::call(thread_id, *thread->cpu, host);
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <cpu/functions.h>
|
||||||
|
#include <mem/ptr.h>
|
||||||
|
|
||||||
|
// Given some types on the stack...
|
||||||
|
template <typename... Args>
|
||||||
|
struct StackLayout {
|
||||||
|
// Compute the offset of a particular argument on the stack.
|
||||||
|
template <size_t index>
|
||||||
|
static constexpr size_t offset() {
|
||||||
|
constexpr size_t sizes[] = { sizeof(Args)... };
|
||||||
|
size_t size = 0;
|
||||||
|
|
||||||
|
for (size_t i = 0; i < index; ++i) {
|
||||||
|
size += sizes[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Simple case - argument can be cast from integer.
|
||||||
|
template <typename T>
|
||||||
|
struct RegArg {
|
||||||
|
static T bridge(const MemState &, uint32_t value) {
|
||||||
|
return static_cast<T>(value);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Emulated pointer constructed from address in register.
|
||||||
|
template <typename Pointee>
|
||||||
|
struct RegArg<Ptr<Pointee>> {
|
||||||
|
static Ptr<Pointee> bridge(const MemState &, uint32_t value) {
|
||||||
|
return Ptr<Pointee>(value);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Real pointer bridged from address in register.
|
||||||
|
template <typename Pointee>
|
||||||
|
struct RegArg<Pointee *> {
|
||||||
|
static Pointee *bridge(const MemState &mem, uint32_t value) {
|
||||||
|
const Ptr<Pointee> ptr(value);
|
||||||
|
return ptr.get(mem);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Simple case - argument is on stack.
|
||||||
|
template <typename T>
|
||||||
|
struct StackArg {
|
||||||
|
using Type = T;
|
||||||
|
|
||||||
|
static T bridge(const MemState &, const Type &value) {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Real pointer bridged from emulated pointer on stack.
|
||||||
|
template <typename Pointee>
|
||||||
|
struct StackArg<Pointee *> {
|
||||||
|
using Type = Ptr<Pointee>;
|
||||||
|
|
||||||
|
static Pointee *bridge(const MemState &mem, Ptr<Pointee> ptr) {
|
||||||
|
return ptr.get(mem);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Syntactic sugar.
|
||||||
|
template <typename T>
|
||||||
|
using StackType = const typename StackArg<T>::Type;
|
||||||
|
|
||||||
|
// Simple case - all arguments in registers.
|
||||||
|
template <typename... Args>
|
||||||
|
struct ArgLayout {
|
||||||
|
template <typename T, size_t index>
|
||||||
|
static T read(CPUState &cpu, const MemState &mem) {
|
||||||
|
const uint32_t value = read_reg(cpu, index);
|
||||||
|
return RegArg<T>::bridge(mem, value);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Complex case - at least one argument has spilled onto stack.
|
||||||
|
template <typename R0, typename R1, typename R2, typename R3, typename StackHead, typename... StackTail>
|
||||||
|
struct ArgLayout<R0, R1, R2, R3, StackHead, StackTail...> {
|
||||||
|
using StackLayout = StackLayout<StackType<StackHead>, StackType<StackTail>...>;
|
||||||
|
|
||||||
|
template <typename T, size_t index>
|
||||||
|
static typename std::enable_if < index<4, T>::type read(CPUState &cpu, const MemState &mem) {
|
||||||
|
const uint32_t value = read_reg(cpu, index);
|
||||||
|
return RegArg<T>::bridge(mem, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
template <typename T, size_t index>
|
||||||
|
static typename std::enable_if<index >= 4, T>::type read(CPUState &cpu, const MemState &mem) {
|
||||||
|
using StackType = StackType<T>;
|
||||||
|
|
||||||
|
constexpr size_t offset_on_stack = StackLayout::template offset<index - 4>();
|
||||||
|
const Address sp = read_sp(cpu);
|
||||||
|
const Address address = static_cast<Address>(sp + offset_on_stack);
|
||||||
|
const Ptr<StackType> ptr(address);
|
||||||
|
const StackType &value_on_stack = *ptr.get(mem);
|
||||||
|
const T bridged_value = StackArg<T>::bridge(mem, std::forward<StackType>(value_on_stack));
|
||||||
|
return bridged_value;
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <mem/ptr.h>
|
||||||
|
|
||||||
|
struct CPUState;
|
||||||
|
|
||||||
|
template <typename Ret>
|
||||||
|
void bridge_return(CPUState &, Ret ret);
|
||||||
|
|
||||||
|
// Simple case - return value can be written directly to registers.
|
||||||
|
template <typename Ret>
|
||||||
|
struct BridgeReturn {
|
||||||
|
static void write(CPUState &cpu, Ret ret) {
|
||||||
|
bridge_return(cpu, ret);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Write pointers as addresses.
|
||||||
|
template <typename Pointee>
|
||||||
|
struct BridgeReturn<Ptr<Pointee>> {
|
||||||
|
static void write(CPUState &cpu, const Ptr<Pointee> &ret) {
|
||||||
|
bridge_return(cpu, ret.address());
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "bridge.h"
|
||||||
|
#include "bridge_args.h"
|
||||||
|
#include "bridge_return.h"
|
||||||
|
|
||||||
|
#include <host/import_fn.h>
|
||||||
|
#include <host/state.h>
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
|
||||||
|
int unimplemented(const char *name);
|
||||||
|
|
||||||
|
#define BRIDGE_DECL(name) extern ImportFn *const import_##name;
|
||||||
|
#define BRIDGE_IMPL(name) ImportFn *const import_##name = &Bridge<decltype(&export_##name), &export_##name>::call;
|
||||||
|
|
||||||
|
#define EXPORT(ret, name, ...) ret export_##name(HostState &host, SceUID thread_id, ##__VA_ARGS__)
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <module/bridge_return.h>
|
||||||
|
|
||||||
|
#include <cpu/functions.h>
|
||||||
|
|
||||||
|
template <>
|
||||||
|
void bridge_return<int32_t>(CPUState &cpu, int32_t ret) {
|
||||||
|
write_reg(cpu, 0, ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
template <>
|
||||||
|
void bridge_return<uint32_t>(CPUState &cpu, uint32_t ret) {
|
||||||
|
write_reg(cpu, 0, ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
template <>
|
||||||
|
void bridge_return<uint64_t>(CPUState &cpu, uint64_t ret) {
|
||||||
|
write_reg(cpu, 0, ret & UINT32_MAX);
|
||||||
|
write_reg(cpu, 1, ret >> 32);
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <module/module.h>
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <mutex>
|
||||||
|
#include <set>
|
||||||
|
|
||||||
|
typedef std::set<std::string> NameSet;
|
||||||
|
|
||||||
|
static std::mutex mutex;
|
||||||
|
static NameSet logged;
|
||||||
|
|
||||||
|
int unimplemented(const char *name) {
|
||||||
|
bool inserted = false;
|
||||||
|
|
||||||
|
{
|
||||||
|
const std::lock_guard<std::mutex> lock(mutex);
|
||||||
|
inserted = logged.insert(name).second;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (inserted) {
|
||||||
|
std::cerr << ">>> " << name << " <<< Unimplemented import called." << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1,261 @@
|
|||||||
|
add_subdirectory(SceAVConfig)
|
||||||
|
add_subdirectory(SceAppMgr)
|
||||||
|
add_subdirectory(SceAppUtil)
|
||||||
|
add_subdirectory(SceAtrac)
|
||||||
|
add_subdirectory(SceAudio)
|
||||||
|
add_subdirectory(SceAudioIn)
|
||||||
|
add_subdirectory(SceAudiodec)
|
||||||
|
add_subdirectory(SceAudioenc)
|
||||||
|
add_subdirectory(SceAvPlayer)
|
||||||
|
add_subdirectory(SceBt)
|
||||||
|
add_subdirectory(SceCamera)
|
||||||
|
add_subdirectory(SceClipboard)
|
||||||
|
add_subdirectory(SceCodecEngine)
|
||||||
|
add_subdirectory(SceCodecEnginePerf)
|
||||||
|
add_subdirectory(SceCommonDialog)
|
||||||
|
add_subdirectory(SceCoredump)
|
||||||
|
add_subdirectory(SceCtrl)
|
||||||
|
add_subdirectory(SceDTrace)
|
||||||
|
add_subdirectory(SceDeci4p)
|
||||||
|
add_subdirectory(SceDeflt)
|
||||||
|
add_subdirectory(SceDisplay)
|
||||||
|
add_subdirectory(SceFace)
|
||||||
|
add_subdirectory(SceFiber)
|
||||||
|
add_subdirectory(SceFios2)
|
||||||
|
add_subdirectory(SceGpuEs4)
|
||||||
|
add_subdirectory(SceGxm)
|
||||||
|
add_subdirectory(SceHandwriting)
|
||||||
|
add_subdirectory(SceHeap)
|
||||||
|
add_subdirectory(SceHid)
|
||||||
|
add_subdirectory(SceHmac)
|
||||||
|
add_subdirectory(SceIme)
|
||||||
|
add_subdirectory(SceIofilemgr)
|
||||||
|
add_subdirectory(SceJpeg)
|
||||||
|
add_subdirectory(SceJpegEnc)
|
||||||
|
add_subdirectory(SceKernelDmacMgr)
|
||||||
|
add_subdirectory(SceKernelModulemgr)
|
||||||
|
add_subdirectory(SceKernelThreadMgr)
|
||||||
|
add_subdirectory(SceLibDbg)
|
||||||
|
add_subdirectory(SceLibGameUpdate)
|
||||||
|
add_subdirectory(SceLibHttp)
|
||||||
|
add_subdirectory(SceLibKernel)
|
||||||
|
add_subdirectory(SceLibLocation)
|
||||||
|
add_subdirectory(SceLibLocationExtension)
|
||||||
|
add_subdirectory(SceLibMonoBridge)
|
||||||
|
add_subdirectory(SceLibNetCtl)
|
||||||
|
add_subdirectory(SceLibPgf)
|
||||||
|
add_subdirectory(SceLibPspnetAdhoc)
|
||||||
|
add_subdirectory(SceLibPvf)
|
||||||
|
add_subdirectory(SceLibRudp)
|
||||||
|
add_subdirectory(SceLibSsl)
|
||||||
|
add_subdirectory(SceLibc)
|
||||||
|
add_subdirectory(SceLiveAreaUtil)
|
||||||
|
add_subdirectory(SceLsdb)
|
||||||
|
add_subdirectory(SceMd5)
|
||||||
|
add_subdirectory(SceMotion)
|
||||||
|
add_subdirectory(SceMotionDev)
|
||||||
|
add_subdirectory(SceMt19937)
|
||||||
|
add_subdirectory(SceMtpIfDriver)
|
||||||
|
add_subdirectory(SceMusicExport)
|
||||||
|
add_subdirectory(SceNearDialogUtil)
|
||||||
|
add_subdirectory(SceNearUtil)
|
||||||
|
add_subdirectory(SceNet)
|
||||||
|
add_subdirectory(SceNetAdhocMatching)
|
||||||
|
add_subdirectory(SceNgs)
|
||||||
|
add_subdirectory(SceNpActivity)
|
||||||
|
add_subdirectory(SceNpBasic)
|
||||||
|
add_subdirectory(SceNpCommerce2)
|
||||||
|
add_subdirectory(SceNpCommon)
|
||||||
|
add_subdirectory(SceNpDrm)
|
||||||
|
add_subdirectory(SceNpManager)
|
||||||
|
add_subdirectory(SceNpMatching2)
|
||||||
|
add_subdirectory(SceNpMessage)
|
||||||
|
add_subdirectory(SceNpPartyGameUtil)
|
||||||
|
add_subdirectory(SceNpScore)
|
||||||
|
add_subdirectory(SceNpSignaling)
|
||||||
|
add_subdirectory(SceNpSnsFacebook)
|
||||||
|
add_subdirectory(SceNpTrophy)
|
||||||
|
add_subdirectory(SceNpTus)
|
||||||
|
add_subdirectory(SceNpUtility)
|
||||||
|
add_subdirectory(ScePaf)
|
||||||
|
add_subdirectory(ScePerf)
|
||||||
|
add_subdirectory(ScePhotoExport)
|
||||||
|
add_subdirectory(ScePower)
|
||||||
|
add_subdirectory(SceProcessmgr)
|
||||||
|
add_subdirectory(ScePromoterUtil)
|
||||||
|
add_subdirectory(SceRazorCapture)
|
||||||
|
add_subdirectory(SceRazorHud)
|
||||||
|
add_subdirectory(SceRegistryMgr)
|
||||||
|
add_subdirectory(SceRtc)
|
||||||
|
add_subdirectory(SceSasUser)
|
||||||
|
add_subdirectory(SceSblUpdateMgr)
|
||||||
|
add_subdirectory(SceScreenShot)
|
||||||
|
add_subdirectory(SceSfmt11213)
|
||||||
|
add_subdirectory(SceSfmt1279)
|
||||||
|
add_subdirectory(SceSfmt132049)
|
||||||
|
add_subdirectory(SceSfmt19937)
|
||||||
|
add_subdirectory(SceSfmt216091)
|
||||||
|
add_subdirectory(SceSfmt2281)
|
||||||
|
add_subdirectory(SceSfmt4253)
|
||||||
|
add_subdirectory(SceSfmt44497)
|
||||||
|
add_subdirectory(SceSfmt607)
|
||||||
|
add_subdirectory(SceSfmt86243)
|
||||||
|
add_subdirectory(SceSha0)
|
||||||
|
add_subdirectory(SceSha1)
|
||||||
|
add_subdirectory(SceSha224)
|
||||||
|
add_subdirectory(SceSha256)
|
||||||
|
add_subdirectory(SceSha384)
|
||||||
|
add_subdirectory(SceSha512)
|
||||||
|
add_subdirectory(SceSha512t)
|
||||||
|
add_subdirectory(SceShellSvc)
|
||||||
|
add_subdirectory(SceShutterSound)
|
||||||
|
add_subdirectory(SceSmart)
|
||||||
|
add_subdirectory(SceSqlite)
|
||||||
|
add_subdirectory(SceStdio)
|
||||||
|
add_subdirectory(SceSulpha)
|
||||||
|
add_subdirectory(SceSysmem)
|
||||||
|
add_subdirectory(SceSysmodule)
|
||||||
|
add_subdirectory(SceSystemGesture)
|
||||||
|
add_subdirectory(SceTouch)
|
||||||
|
add_subdirectory(SceUdcd)
|
||||||
|
add_subdirectory(SceUlt)
|
||||||
|
add_subdirectory(SceUsbSerial)
|
||||||
|
add_subdirectory(SceUsbd)
|
||||||
|
add_subdirectory(SceUsbstorVStorDriver)
|
||||||
|
add_subdirectory(SceVideoExport)
|
||||||
|
add_subdirectory(SceVideodec)
|
||||||
|
add_subdirectory(SceVoice)
|
||||||
|
add_subdirectory(SceVoiceQoS)
|
||||||
|
add_subdirectory(SceVshBridge)
|
||||||
|
|
||||||
|
add_library(modules INTERFACE)
|
||||||
|
target_link_libraries(modules INTERFACE
|
||||||
|
SceAVConfig
|
||||||
|
SceAppMgr
|
||||||
|
SceAppUtil
|
||||||
|
SceAtrac
|
||||||
|
SceAudio
|
||||||
|
SceAudioIn
|
||||||
|
SceAudiodec
|
||||||
|
SceAudioenc
|
||||||
|
SceAvPlayer
|
||||||
|
SceBt
|
||||||
|
SceCamera
|
||||||
|
SceClipboard
|
||||||
|
SceCodecEngine
|
||||||
|
SceCodecEnginePerf
|
||||||
|
SceCommonDialog
|
||||||
|
SceCoredump
|
||||||
|
SceCtrl
|
||||||
|
SceDTrace
|
||||||
|
SceDeci4p
|
||||||
|
SceDeflt
|
||||||
|
SceDisplay
|
||||||
|
SceFace
|
||||||
|
SceFiber
|
||||||
|
SceFios2
|
||||||
|
SceGpuEs4
|
||||||
|
SceGxm
|
||||||
|
SceHandwriting
|
||||||
|
SceHeap
|
||||||
|
SceHid
|
||||||
|
SceHmac
|
||||||
|
SceIme
|
||||||
|
SceIofilemgr
|
||||||
|
SceJpeg
|
||||||
|
SceJpegEnc
|
||||||
|
SceKernelDmacMgr
|
||||||
|
SceKernelModulemgr
|
||||||
|
SceKernelThreadMgr
|
||||||
|
SceLibDbg
|
||||||
|
SceLibGameUpdate
|
||||||
|
SceLibHttp
|
||||||
|
SceLibKernel
|
||||||
|
SceLibLocation
|
||||||
|
SceLibLocationExtension
|
||||||
|
SceLibMonoBridge
|
||||||
|
SceLibNetCtl
|
||||||
|
SceLibPgf
|
||||||
|
SceLibPspnetAdhoc
|
||||||
|
SceLibPvf
|
||||||
|
SceLibRudp
|
||||||
|
SceLibSsl
|
||||||
|
SceLibc
|
||||||
|
SceLiveAreaUtil
|
||||||
|
SceLsdb
|
||||||
|
SceMd5
|
||||||
|
SceMotion
|
||||||
|
SceMotionDev
|
||||||
|
SceMt19937
|
||||||
|
SceMtpIfDriver
|
||||||
|
SceMusicExport
|
||||||
|
SceNearDialogUtil
|
||||||
|
SceNearUtil
|
||||||
|
SceNet
|
||||||
|
SceNetAdhocMatching
|
||||||
|
SceNgs
|
||||||
|
SceNpActivity
|
||||||
|
SceNpBasic
|
||||||
|
SceNpCommerce2
|
||||||
|
SceNpCommon
|
||||||
|
SceNpDrm
|
||||||
|
SceNpManager
|
||||||
|
SceNpMatching2
|
||||||
|
SceNpMessage
|
||||||
|
SceNpPartyGameUtil
|
||||||
|
SceNpScore
|
||||||
|
SceNpSignaling
|
||||||
|
SceNpSnsFacebook
|
||||||
|
SceNpTrophy
|
||||||
|
SceNpTus
|
||||||
|
SceNpUtility
|
||||||
|
ScePaf
|
||||||
|
ScePerf
|
||||||
|
ScePhotoExport
|
||||||
|
ScePower
|
||||||
|
SceProcessmgr
|
||||||
|
ScePromoterUtil
|
||||||
|
SceRazorCapture
|
||||||
|
SceRazorHud
|
||||||
|
SceRegistryMgr
|
||||||
|
SceRtc
|
||||||
|
SceSasUser
|
||||||
|
SceSblUpdateMgr
|
||||||
|
SceScreenShot
|
||||||
|
SceSfmt11213
|
||||||
|
SceSfmt1279
|
||||||
|
SceSfmt132049
|
||||||
|
SceSfmt19937
|
||||||
|
SceSfmt216091
|
||||||
|
SceSfmt2281
|
||||||
|
SceSfmt4253
|
||||||
|
SceSfmt44497
|
||||||
|
SceSfmt607
|
||||||
|
SceSfmt86243
|
||||||
|
SceSha0
|
||||||
|
SceSha1
|
||||||
|
SceSha224
|
||||||
|
SceSha256
|
||||||
|
SceSha384
|
||||||
|
SceSha512
|
||||||
|
SceSha512t
|
||||||
|
SceShellSvc
|
||||||
|
SceShutterSound
|
||||||
|
SceSmart
|
||||||
|
SceSqlite
|
||||||
|
SceStdio
|
||||||
|
SceSulpha
|
||||||
|
SceSysmem
|
||||||
|
SceSysmodule
|
||||||
|
SceSystemGesture
|
||||||
|
SceTouch
|
||||||
|
SceUdcd
|
||||||
|
SceUlt
|
||||||
|
SceUsbSerial
|
||||||
|
SceUsbd
|
||||||
|
SceUsbstorVStorDriver
|
||||||
|
SceVideoExport
|
||||||
|
SceVideodec
|
||||||
|
SceVoice
|
||||||
|
SceVoiceQoS
|
||||||
|
SceVshBridge)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
add_library(SceAVConfig STATIC include/SceAVConfig/exports.h src/SceAVConfig.cpp)
|
||||||
|
target_include_directories(SceAVConfig PUBLIC include)
|
||||||
|
target_link_libraries(SceAVConfig PRIVATE module)
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <module/module.h>
|
||||||
|
|
||||||
|
// SceAVConfig
|
||||||
|
BRIDGE_DECL(sceAVConfigChangeReg)
|
||||||
|
BRIDGE_DECL(sceAVConfigClearAutoSuspend2)
|
||||||
|
BRIDGE_DECL(sceAVConfigDisplayOn)
|
||||||
|
BRIDGE_DECL(sceAVConfigGetAcStatus)
|
||||||
|
BRIDGE_DECL(sceAVConfigGetBtVol)
|
||||||
|
BRIDGE_DECL(sceAVConfigGetConnectedAudioDevice)
|
||||||
|
BRIDGE_DECL(sceAVConfigGetDisplayMaxBrightness)
|
||||||
|
BRIDGE_DECL(sceAVConfigGetMasterVol)
|
||||||
|
BRIDGE_DECL(sceAVConfigGetShutterVol)
|
||||||
|
BRIDGE_DECL(sceAVConfigGetSystemVol)
|
||||||
|
BRIDGE_DECL(sceAVConfigGetVolCtrlEnable)
|
||||||
|
BRIDGE_DECL(sceAVConfigHdmiCecCmdOneTouchPlay)
|
||||||
|
BRIDGE_DECL(sceAVConfigHdmiCecDisable)
|
||||||
|
BRIDGE_DECL(sceAVConfigHdmiCecEnable)
|
||||||
|
BRIDGE_DECL(sceAVConfigHdmiClearCecInfo)
|
||||||
|
BRIDGE_DECL(sceAVConfigHdmiGetCecInfo)
|
||||||
|
BRIDGE_DECL(sceAVConfigHdmiGetMonitorInfo)
|
||||||
|
BRIDGE_DECL(sceAVConfigHdmiGetOutScalingRatio)
|
||||||
|
BRIDGE_DECL(sceAVConfigHdmiSetOutScalingRatio)
|
||||||
|
BRIDGE_DECL(sceAVConfigHdmiSetResolution)
|
||||||
|
BRIDGE_DECL(sceAVConfigHdmiSetRgbRangeMode)
|
||||||
|
BRIDGE_DECL(sceAVConfigMuteOn)
|
||||||
|
BRIDGE_DECL(sceAVConfigRegisterCallback)
|
||||||
|
BRIDGE_DECL(sceAVConfigSendVolKey)
|
||||||
|
BRIDGE_DECL(sceAVConfigSetAutoDisplayDimming)
|
||||||
|
BRIDGE_DECL(sceAVConfigSetAutoSuspend)
|
||||||
|
BRIDGE_DECL(sceAVConfigSetAutoSuspend2)
|
||||||
|
BRIDGE_DECL(sceAVConfigSetDisplayBrightness)
|
||||||
|
BRIDGE_DECL(sceAVConfigSetDisplayColorSpaceMode)
|
||||||
|
BRIDGE_DECL(sceAVConfigSetMasterVol)
|
||||||
|
BRIDGE_DECL(sceAVConfigSetSystemVol)
|
||||||
|
BRIDGE_DECL(sceAVConfigUnRegisterCallback)
|
||||||
|
BRIDGE_DECL(sceAVConfigWriteMasterVol)
|
||||||
|
BRIDGE_DECL(sceAVConfigWriteRegSystemVol)
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceAVConfig/exports.h>
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigChangeReg) {
|
||||||
|
return unimplemented("sceAVConfigChangeReg");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigClearAutoSuspend2) {
|
||||||
|
return unimplemented("sceAVConfigClearAutoSuspend2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigDisplayOn) {
|
||||||
|
return unimplemented("sceAVConfigDisplayOn");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigGetAcStatus) {
|
||||||
|
return unimplemented("sceAVConfigGetAcStatus");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigGetBtVol) {
|
||||||
|
return unimplemented("sceAVConfigGetBtVol");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigGetConnectedAudioDevice) {
|
||||||
|
return unimplemented("sceAVConfigGetConnectedAudioDevice");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigGetDisplayMaxBrightness) {
|
||||||
|
return unimplemented("sceAVConfigGetDisplayMaxBrightness");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigGetMasterVol) {
|
||||||
|
return unimplemented("sceAVConfigGetMasterVol");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigGetShutterVol) {
|
||||||
|
return unimplemented("sceAVConfigGetShutterVol");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigGetSystemVol) {
|
||||||
|
return unimplemented("sceAVConfigGetSystemVol");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigGetVolCtrlEnable) {
|
||||||
|
return unimplemented("sceAVConfigGetVolCtrlEnable");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigHdmiCecCmdOneTouchPlay) {
|
||||||
|
return unimplemented("sceAVConfigHdmiCecCmdOneTouchPlay");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigHdmiCecDisable) {
|
||||||
|
return unimplemented("sceAVConfigHdmiCecDisable");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigHdmiCecEnable) {
|
||||||
|
return unimplemented("sceAVConfigHdmiCecEnable");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigHdmiClearCecInfo) {
|
||||||
|
return unimplemented("sceAVConfigHdmiClearCecInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigHdmiGetCecInfo) {
|
||||||
|
return unimplemented("sceAVConfigHdmiGetCecInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigHdmiGetMonitorInfo) {
|
||||||
|
return unimplemented("sceAVConfigHdmiGetMonitorInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigHdmiGetOutScalingRatio) {
|
||||||
|
return unimplemented("sceAVConfigHdmiGetOutScalingRatio");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigHdmiSetOutScalingRatio) {
|
||||||
|
return unimplemented("sceAVConfigHdmiSetOutScalingRatio");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigHdmiSetResolution) {
|
||||||
|
return unimplemented("sceAVConfigHdmiSetResolution");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigHdmiSetRgbRangeMode) {
|
||||||
|
return unimplemented("sceAVConfigHdmiSetRgbRangeMode");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigMuteOn) {
|
||||||
|
return unimplemented("sceAVConfigMuteOn");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigRegisterCallback) {
|
||||||
|
return unimplemented("sceAVConfigRegisterCallback");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigSendVolKey) {
|
||||||
|
return unimplemented("sceAVConfigSendVolKey");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigSetAutoDisplayDimming) {
|
||||||
|
return unimplemented("sceAVConfigSetAutoDisplayDimming");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigSetAutoSuspend) {
|
||||||
|
return unimplemented("sceAVConfigSetAutoSuspend");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigSetAutoSuspend2) {
|
||||||
|
return unimplemented("sceAVConfigSetAutoSuspend2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigSetDisplayBrightness) {
|
||||||
|
return unimplemented("sceAVConfigSetDisplayBrightness");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigSetDisplayColorSpaceMode) {
|
||||||
|
return unimplemented("sceAVConfigSetDisplayColorSpaceMode");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigSetMasterVol) {
|
||||||
|
return unimplemented("sceAVConfigSetMasterVol");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigSetSystemVol) {
|
||||||
|
return unimplemented("sceAVConfigSetSystemVol");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigUnRegisterCallback) {
|
||||||
|
return unimplemented("sceAVConfigUnRegisterCallback");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigWriteMasterVol) {
|
||||||
|
return unimplemented("sceAVConfigWriteMasterVol");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAVConfigWriteRegSystemVol) {
|
||||||
|
return unimplemented("sceAVConfigWriteRegSystemVol");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(sceAVConfigChangeReg)
|
||||||
|
BRIDGE_IMPL(sceAVConfigClearAutoSuspend2)
|
||||||
|
BRIDGE_IMPL(sceAVConfigDisplayOn)
|
||||||
|
BRIDGE_IMPL(sceAVConfigGetAcStatus)
|
||||||
|
BRIDGE_IMPL(sceAVConfigGetBtVol)
|
||||||
|
BRIDGE_IMPL(sceAVConfigGetConnectedAudioDevice)
|
||||||
|
BRIDGE_IMPL(sceAVConfigGetDisplayMaxBrightness)
|
||||||
|
BRIDGE_IMPL(sceAVConfigGetMasterVol)
|
||||||
|
BRIDGE_IMPL(sceAVConfigGetShutterVol)
|
||||||
|
BRIDGE_IMPL(sceAVConfigGetSystemVol)
|
||||||
|
BRIDGE_IMPL(sceAVConfigGetVolCtrlEnable)
|
||||||
|
BRIDGE_IMPL(sceAVConfigHdmiCecCmdOneTouchPlay)
|
||||||
|
BRIDGE_IMPL(sceAVConfigHdmiCecDisable)
|
||||||
|
BRIDGE_IMPL(sceAVConfigHdmiCecEnable)
|
||||||
|
BRIDGE_IMPL(sceAVConfigHdmiClearCecInfo)
|
||||||
|
BRIDGE_IMPL(sceAVConfigHdmiGetCecInfo)
|
||||||
|
BRIDGE_IMPL(sceAVConfigHdmiGetMonitorInfo)
|
||||||
|
BRIDGE_IMPL(sceAVConfigHdmiGetOutScalingRatio)
|
||||||
|
BRIDGE_IMPL(sceAVConfigHdmiSetOutScalingRatio)
|
||||||
|
BRIDGE_IMPL(sceAVConfigHdmiSetResolution)
|
||||||
|
BRIDGE_IMPL(sceAVConfigHdmiSetRgbRangeMode)
|
||||||
|
BRIDGE_IMPL(sceAVConfigMuteOn)
|
||||||
|
BRIDGE_IMPL(sceAVConfigRegisterCallback)
|
||||||
|
BRIDGE_IMPL(sceAVConfigSendVolKey)
|
||||||
|
BRIDGE_IMPL(sceAVConfigSetAutoDisplayDimming)
|
||||||
|
BRIDGE_IMPL(sceAVConfigSetAutoSuspend)
|
||||||
|
BRIDGE_IMPL(sceAVConfigSetAutoSuspend2)
|
||||||
|
BRIDGE_IMPL(sceAVConfigSetDisplayBrightness)
|
||||||
|
BRIDGE_IMPL(sceAVConfigSetDisplayColorSpaceMode)
|
||||||
|
BRIDGE_IMPL(sceAVConfigSetMasterVol)
|
||||||
|
BRIDGE_IMPL(sceAVConfigSetSystemVol)
|
||||||
|
BRIDGE_IMPL(sceAVConfigUnRegisterCallback)
|
||||||
|
BRIDGE_IMPL(sceAVConfigWriteMasterVol)
|
||||||
|
BRIDGE_IMPL(sceAVConfigWriteRegSystemVol)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
add_library(SceAppMgr STATIC include/SceAppMgr/exports.h src/SceAppMgr.cpp src/SceAppMgrUser.cpp src/SceSharedFb.cpp)
|
||||||
|
target_include_directories(SceAppMgr PUBLIC include)
|
||||||
|
target_link_libraries(SceAppMgr PRIVATE module)
|
||||||
@@ -0,0 +1,352 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <module/module.h>
|
||||||
|
|
||||||
|
// SceAppMgr
|
||||||
|
BRIDGE_DECL(__sceAppMgrGetAppState)
|
||||||
|
BRIDGE_DECL(_sceAppMgrAcidDirSet)
|
||||||
|
BRIDGE_DECL(_sceAppMgrAcquireSoundOutExclusive3)
|
||||||
|
BRIDGE_DECL(_sceAppMgrAddContAddMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrAddContMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrAppDataMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrAppDataMountById)
|
||||||
|
BRIDGE_DECL(_sceAppMgrAppMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrAppParamGetInt)
|
||||||
|
BRIDGE_DECL(_sceAppMgrAppParamGetString)
|
||||||
|
BRIDGE_DECL(_sceAppMgrAppParamSetString)
|
||||||
|
BRIDGE_DECL(_sceAppMgrAppUmount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrBgdlGetQueueStatus)
|
||||||
|
BRIDGE_DECL(_sceAppMgrCaptureFrameBufDMACByAppId)
|
||||||
|
BRIDGE_DECL(_sceAppMgrCaptureFrameBufIFTUByAppId)
|
||||||
|
BRIDGE_DECL(_sceAppMgrCheckRifGD)
|
||||||
|
BRIDGE_DECL(_sceAppMgrContentInstallPeriodStart)
|
||||||
|
BRIDGE_DECL(_sceAppMgrContentInstallPeriodStop)
|
||||||
|
BRIDGE_DECL(_sceAppMgrConvertVs0UserDrivePath)
|
||||||
|
BRIDGE_DECL(_sceAppMgrDeclareShellProcess2)
|
||||||
|
BRIDGE_DECL(_sceAppMgrDestroyAppByName)
|
||||||
|
BRIDGE_DECL(_sceAppMgrDrmClose)
|
||||||
|
BRIDGE_DECL(_sceAppMgrDrmOpen)
|
||||||
|
BRIDGE_DECL(_sceAppMgrForceUmount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGameDataMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetAppInfo)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetAppMgrState)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetAppParam)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetAppParam2)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetBootParam)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetBudgetInfo)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetCoredumpStateForShell)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetCurrentBgmState)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetCurrentBgmState2)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetDevInfo)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetFgAppInfo)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetIdByName)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetMediaTypeFromDrive)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetMediaTypeFromDriveByPid)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetMountProcessNum)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetNameById)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetPfsDrive)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetPidListForShell)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetRawPath)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetRawPathOfApp0ByAppIdForShell)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetRawPathOfApp0ByPidForShell)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetRecommendedScreenOrientation)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetRunningAppIdListForShell)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetSaveDataInfo)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetSaveDataInfoForSpecialExport)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetStatusByAppId)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetStatusById)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetStatusByName)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetSystemDataFilePlayReady)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetUserDirPath)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetUserDirPathById)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetVs0UserDataDrive)
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetVs0UserModuleDrive)
|
||||||
|
BRIDGE_DECL(_sceAppMgrInitSafeMemoryById)
|
||||||
|
BRIDGE_DECL(_sceAppMgrInstallDirMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrIsCameraActive)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLaunchAppByName)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLaunchAppByName2)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLaunchAppByName2ForShell)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLaunchAppByName2ndStage)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLaunchAppByNameForShell)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLaunchAppByPath4)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLaunchAppByUri)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLaunchAppByUri2)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLaunchVideoStreamingApp)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLoadExec)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLoadSaveDataSystemFile)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLoopBackFormat)
|
||||||
|
BRIDGE_DECL(_sceAppMgrLoopBackMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrMmsMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrOverwriteLaunchParamForShell)
|
||||||
|
BRIDGE_DECL(_sceAppMgrPeekLaunchParamForShell)
|
||||||
|
BRIDGE_DECL(_sceAppMgrPhotoMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrPhotoUmount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrPspSaveDataGetParams)
|
||||||
|
BRIDGE_DECL(_sceAppMgrPspSaveDataRead)
|
||||||
|
BRIDGE_DECL(_sceAppMgrPspSaveDataRootMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrReceiveEvent)
|
||||||
|
BRIDGE_DECL(_sceAppMgrReceiveEventNum)
|
||||||
|
BRIDGE_DECL(_sceAppMgrReceiveNotificationRequestForShell)
|
||||||
|
BRIDGE_DECL(_sceAppMgrReceiveShellEvent)
|
||||||
|
BRIDGE_DECL(_sceAppMgrReceiveSystemEvent)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataAddMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataDataRemove)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataDataRemove2)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataDataSave)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataDataSave2)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataGetQuota)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataSlotCreate)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataSlotDelete)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataSlotFileClose)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataSlotFileGetParam)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataSlotFileOpen)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataSlotGetParam)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataSlotGetStatus)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataSlotInit)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataSlotSetParam)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataSlotSetStatus)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSaveDataUmount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSendNotificationRequest)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSendParam)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSendSystemEvent)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSendSystemEvent2)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSetBackRenderPortOwner)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSetBgmProxyApp)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSetNetworkDisconnectionWarningDialogState)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSetPowerSaveMode)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSetRecommendedScreenOrientationForShell)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSetShellScreenOrientation)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSetSystemDataFile)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSetSystemDataFilePlayReady)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSystemParamDateTimeGetConf)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSystemParamGetInt)
|
||||||
|
BRIDGE_DECL(_sceAppMgrSystemParamGetString)
|
||||||
|
BRIDGE_DECL(_sceAppMgrThemeDataMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrTrophyMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrTrophyMountById)
|
||||||
|
BRIDGE_DECL(_sceAppMgrUmount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrUmountByPid)
|
||||||
|
BRIDGE_DECL(_sceAppMgrUpdateSaveDataParam)
|
||||||
|
BRIDGE_DECL(_sceAppMgrWorkDirMount)
|
||||||
|
BRIDGE_DECL(_sceAppMgrWorkDirMountById)
|
||||||
|
BRIDGE_DECL(sceAppMgrAcquireBgmPort)
|
||||||
|
BRIDGE_DECL(sceAppMgrAcquireBgmPortForMusicPlayer)
|
||||||
|
BRIDGE_DECL(sceAppMgrAcquireBgmPortWithPriority)
|
||||||
|
BRIDGE_DECL(sceAppMgrAcquireBtrm)
|
||||||
|
BRIDGE_DECL(sceAppMgrAcquireSoundOutExclusive)
|
||||||
|
BRIDGE_DECL(sceAppMgrAcquireSoundOutExclusive2)
|
||||||
|
BRIDGE_DECL(sceAppMgrActivateApp)
|
||||||
|
BRIDGE_DECL(sceAppMgrDeactivateApp)
|
||||||
|
BRIDGE_DECL(sceAppMgrDeclareSystemChatApp)
|
||||||
|
BRIDGE_DECL(sceAppMgrDestroyAppByAppId)
|
||||||
|
BRIDGE_DECL(sceAppMgrDestroyOtherApp)
|
||||||
|
BRIDGE_DECL(sceAppMgrDestroyOtherAppByAppIdForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrDestroyOtherAppByPidForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrDump)
|
||||||
|
BRIDGE_DECL(sceAppMgrEnableCoredumpForTest)
|
||||||
|
BRIDGE_DECL(sceAppMgrEnableDuckingOnSystemChat)
|
||||||
|
BRIDGE_DECL(sceAppMgrEnablePrioritizingSystemChat)
|
||||||
|
BRIDGE_DECL(sceAppMgrExitToLiveboardForGameApp)
|
||||||
|
BRIDGE_DECL(sceAppMgrFinishCoredumpForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetAppIdByAppId)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetExtraAppParam)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetProcessIdByAppIdForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetSystemDataFile)
|
||||||
|
BRIDGE_DECL(sceAppMgrGrowMemory)
|
||||||
|
BRIDGE_DECL(sceAppMgrGrowMemory3)
|
||||||
|
BRIDGE_DECL(sceAppMgrIsDevelopmentMode)
|
||||||
|
BRIDGE_DECL(sceAppMgrIsGameBudgetAppPresent)
|
||||||
|
BRIDGE_DECL(sceAppMgrIsGameProgram)
|
||||||
|
BRIDGE_DECL(sceAppMgrIsNonGameProgram)
|
||||||
|
BRIDGE_DECL(sceAppMgrIsOtherAppPresent)
|
||||||
|
BRIDGE_DECL(sceAppMgrIsPidShellAndCrashed)
|
||||||
|
BRIDGE_DECL(sceAppMgrIsPsNowClient)
|
||||||
|
BRIDGE_DECL(sceAppMgrLaunchAppCancel)
|
||||||
|
BRIDGE_DECL(sceAppMgrLoadSafeMemory)
|
||||||
|
BRIDGE_DECL(sceAppMgrNotifyLiveBoardModeForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrQuitApp)
|
||||||
|
BRIDGE_DECL(sceAppMgrQuitForNonSuspendableApp)
|
||||||
|
BRIDGE_DECL(sceAppMgrReceiveShellEventNum)
|
||||||
|
BRIDGE_DECL(sceAppMgrReleaseBgmPort)
|
||||||
|
BRIDGE_DECL(sceAppMgrReleaseBtrm)
|
||||||
|
BRIDGE_DECL(sceAppMgrReleaseSoundOutExclusive)
|
||||||
|
BRIDGE_DECL(sceAppMgrReleaseSoundOutExclusive2)
|
||||||
|
BRIDGE_DECL(sceAppMgrReleaseSoundOutExclusive3)
|
||||||
|
BRIDGE_DECL(sceAppMgrRestoreBgmSettingForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrRestoreDisplaySettingForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrResumeBgAppByShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrReturnLiveAreaOperationResultForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataGetCachedRequiredSizeKiB)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveSafeMemory)
|
||||||
|
BRIDGE_DECL(sceAppMgrSendLiveBoardMode)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetAppProtectionModeOnMemoryShortage)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetBgmSubPriority)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetBgmSubPriorityForSystemChat)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetDisplayMergeConf)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetFakeSettingBug51800)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetInfobarState)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetInfobarStateForCommonDialog)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetInfobarStateForShellByAppId)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetRecommendedScreenOrientationActivated)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetSystemImposeState)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetSystemImposeState2)
|
||||||
|
BRIDGE_DECL(sceAppMgrSuspendBgAppByShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrSuspendUntilActivated)
|
||||||
|
|
||||||
|
// SceAppMgrUser
|
||||||
|
BRIDGE_DECL(_sceAppMgrGetAppState)
|
||||||
|
BRIDGE_DECL(sceAppMgrAcidDirSet)
|
||||||
|
BRIDGE_DECL(sceAppMgrAcquireSoundOutExclusive3)
|
||||||
|
BRIDGE_DECL(sceAppMgrAddContAddMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrAddContMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrAppDataMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrAppDataMountById)
|
||||||
|
BRIDGE_DECL(sceAppMgrAppMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrAppParamGetInt)
|
||||||
|
BRIDGE_DECL(sceAppMgrAppParamGetString)
|
||||||
|
BRIDGE_DECL(sceAppMgrAppParamSetString)
|
||||||
|
BRIDGE_DECL(sceAppMgrAppUmount)
|
||||||
|
BRIDGE_DECL(sceAppMgrBgdlGetQueueStatus)
|
||||||
|
BRIDGE_DECL(sceAppMgrCaptureFrameBufDMACByAppId)
|
||||||
|
BRIDGE_DECL(sceAppMgrCaptureFrameBufIFTUByAppId)
|
||||||
|
BRIDGE_DECL(sceAppMgrCheckRifGD)
|
||||||
|
BRIDGE_DECL(sceAppMgrContentInstallPeriodStart)
|
||||||
|
BRIDGE_DECL(sceAppMgrContentInstallPeriodStop)
|
||||||
|
BRIDGE_DECL(sceAppMgrConvertVs0UserDrivePath)
|
||||||
|
BRIDGE_DECL(sceAppMgrDeclareShellProcess2)
|
||||||
|
BRIDGE_DECL(sceAppMgrDestroyAppByName)
|
||||||
|
BRIDGE_DECL(sceAppMgrDrmClose)
|
||||||
|
BRIDGE_DECL(sceAppMgrDrmOpen)
|
||||||
|
BRIDGE_DECL(sceAppMgrForceUmount)
|
||||||
|
BRIDGE_DECL(sceAppMgrGameDataMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetAppInfo)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetAppMgrState)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetAppParam)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetAppParam2)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetBootParam)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetBudgetInfo)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetCoredumpStateForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetCurrentBgmState)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetCurrentBgmState2)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetDevInfo)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetFgAppInfo)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetIdByName)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetMediaTypeFromDrive)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetMediaTypeFromDriveByPid)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetMountProcessNum)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetNameById)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetPfsDrive)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetPidListForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetRawPath)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetRawPathOfApp0ByAppIdForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetRawPathOfApp0ByPidForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetRecommendedScreenOrientation)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetRunningAppIdListForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetSaveDataInfo)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetSaveDataInfoForSpecialExport)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetStatusByAppId)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetStatusById)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetStatusByName)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetSystemDataFilePlayReady)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetUserDirPath)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetVs0UserDataDrive)
|
||||||
|
BRIDGE_DECL(sceAppMgrGetVs0UserModuleDrive)
|
||||||
|
BRIDGE_DECL(sceAppMgrInitSafeMemoryById)
|
||||||
|
BRIDGE_DECL(sceAppMgrInstallDirMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrIsCameraActive)
|
||||||
|
BRIDGE_DECL(sceAppMgrLaunchAppByName)
|
||||||
|
BRIDGE_DECL(sceAppMgrLaunchAppByName2)
|
||||||
|
BRIDGE_DECL(sceAppMgrLaunchAppByName2ForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrLaunchAppByName2ndStage)
|
||||||
|
BRIDGE_DECL(sceAppMgrLaunchAppByNameForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrLaunchAppByPath4)
|
||||||
|
BRIDGE_DECL(sceAppMgrLaunchAppByUri)
|
||||||
|
BRIDGE_DECL(sceAppMgrLaunchAppByUri2)
|
||||||
|
BRIDGE_DECL(sceAppMgrLaunchVideoStreamingApp)
|
||||||
|
BRIDGE_DECL(sceAppMgrLoadExec)
|
||||||
|
BRIDGE_DECL(sceAppMgrLoopBackFormat)
|
||||||
|
BRIDGE_DECL(sceAppMgrLoopBackMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrMmsMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrOverwriteLaunchParamForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrPeekLaunchParamForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrPhotoMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrPhotoUmount)
|
||||||
|
BRIDGE_DECL(sceAppMgrPspSaveDataGetParams)
|
||||||
|
BRIDGE_DECL(sceAppMgrPspSaveDataRead)
|
||||||
|
BRIDGE_DECL(sceAppMgrPspSaveDataRootMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrReceiveEvent)
|
||||||
|
BRIDGE_DECL(sceAppMgrReceiveEventNum)
|
||||||
|
BRIDGE_DECL(sceAppMgrReceiveNotificationRequestForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrReceiveShellEvent)
|
||||||
|
BRIDGE_DECL(sceAppMgrReceiveSystemEvent)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataAddMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataDataRemove)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataDataSave)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataGetQuota)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataSlotCreate)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataSlotDelete)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataSlotFileClose)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataSlotFileGetParam)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataSlotFileOpen)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataSlotGetParam)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataSlotGetStatus)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataSlotInit)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataSlotSetParam)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataSlotSetStatus)
|
||||||
|
BRIDGE_DECL(sceAppMgrSaveDataUmount)
|
||||||
|
BRIDGE_DECL(sceAppMgrSendNotificationRequest)
|
||||||
|
BRIDGE_DECL(sceAppMgrSendParam)
|
||||||
|
BRIDGE_DECL(sceAppMgrSendSystemEvent)
|
||||||
|
BRIDGE_DECL(sceAppMgrSendSystemEvent2)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetBackRenderPortOwner)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetBgmProxyApp)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetNetworkDisconnectionWarningDialogState)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetPowerSaveMode)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetRecommendedScreenOrientationForShell)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetShellScreenOrientation)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetSystemDataFile)
|
||||||
|
BRIDGE_DECL(sceAppMgrSetSystemDataFilePlayReady)
|
||||||
|
BRIDGE_DECL(sceAppMgrSystemParamDateTimeGetConf)
|
||||||
|
BRIDGE_DECL(sceAppMgrSystemParamGetInt)
|
||||||
|
BRIDGE_DECL(sceAppMgrSystemParamGetString)
|
||||||
|
BRIDGE_DECL(sceAppMgrTrophyMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrTrophyMountById)
|
||||||
|
BRIDGE_DECL(sceAppMgrUmount)
|
||||||
|
BRIDGE_DECL(sceAppMgrUmountByPid)
|
||||||
|
BRIDGE_DECL(sceAppMgrUpdateSaveDataParam)
|
||||||
|
BRIDGE_DECL(sceAppMgrWorkDirMount)
|
||||||
|
BRIDGE_DECL(sceAppMgrWorkDirMountById)
|
||||||
|
|
||||||
|
// SceSharedFb
|
||||||
|
BRIDGE_DECL(_sceSharedFbOpen)
|
||||||
|
BRIDGE_DECL(sceSharedFbBegin)
|
||||||
|
BRIDGE_DECL(sceSharedFbClose)
|
||||||
|
BRIDGE_DECL(sceSharedFbCreate)
|
||||||
|
BRIDGE_DECL(sceSharedFbDelete)
|
||||||
|
BRIDGE_DECL(sceSharedFbEnd)
|
||||||
|
BRIDGE_DECL(sceSharedFbGetInfo)
|
||||||
|
BRIDGE_DECL(sceSharedFbGetRenderingInfo)
|
||||||
|
BRIDGE_DECL(sceSharedFbGetShellRenderPort)
|
||||||
|
BRIDGE_DECL(sceSharedFbUpdateProcess)
|
||||||
|
BRIDGE_DECL(sceSharedFbUpdateProcessBegin)
|
||||||
|
BRIDGE_DECL(sceSharedFbUpdateProcessEnd)
|
||||||
@@ -0,0 +1,974 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceAppMgr/exports.h>
|
||||||
|
|
||||||
|
EXPORT(int, __sceAppMgrGetAppState) {
|
||||||
|
return unimplemented("__sceAppMgrGetAppState");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrAcidDirSet) {
|
||||||
|
return unimplemented("_sceAppMgrAcidDirSet");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrAcquireSoundOutExclusive3) {
|
||||||
|
return unimplemented("_sceAppMgrAcquireSoundOutExclusive3");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrAddContAddMount) {
|
||||||
|
return unimplemented("_sceAppMgrAddContAddMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrAddContMount) {
|
||||||
|
return unimplemented("_sceAppMgrAddContMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrAppDataMount) {
|
||||||
|
return unimplemented("_sceAppMgrAppDataMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrAppDataMountById) {
|
||||||
|
return unimplemented("_sceAppMgrAppDataMountById");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrAppMount) {
|
||||||
|
return unimplemented("_sceAppMgrAppMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrAppParamGetInt) {
|
||||||
|
return unimplemented("_sceAppMgrAppParamGetInt");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrAppParamGetString) {
|
||||||
|
return unimplemented("_sceAppMgrAppParamGetString");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrAppParamSetString) {
|
||||||
|
return unimplemented("_sceAppMgrAppParamSetString");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrAppUmount) {
|
||||||
|
return unimplemented("_sceAppMgrAppUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrBgdlGetQueueStatus) {
|
||||||
|
return unimplemented("_sceAppMgrBgdlGetQueueStatus");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrCaptureFrameBufDMACByAppId) {
|
||||||
|
return unimplemented("_sceAppMgrCaptureFrameBufDMACByAppId");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrCaptureFrameBufIFTUByAppId) {
|
||||||
|
return unimplemented("_sceAppMgrCaptureFrameBufIFTUByAppId");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrCheckRifGD) {
|
||||||
|
return unimplemented("_sceAppMgrCheckRifGD");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrContentInstallPeriodStart) {
|
||||||
|
return unimplemented("_sceAppMgrContentInstallPeriodStart");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrContentInstallPeriodStop) {
|
||||||
|
return unimplemented("_sceAppMgrContentInstallPeriodStop");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrConvertVs0UserDrivePath) {
|
||||||
|
return unimplemented("_sceAppMgrConvertVs0UserDrivePath");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrDeclareShellProcess2) {
|
||||||
|
return unimplemented("_sceAppMgrDeclareShellProcess2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrDestroyAppByName) {
|
||||||
|
return unimplemented("_sceAppMgrDestroyAppByName");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrDrmClose) {
|
||||||
|
return unimplemented("_sceAppMgrDrmClose");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrDrmOpen) {
|
||||||
|
return unimplemented("_sceAppMgrDrmOpen");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrForceUmount) {
|
||||||
|
return unimplemented("_sceAppMgrForceUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGameDataMount) {
|
||||||
|
return unimplemented("_sceAppMgrGameDataMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetAppInfo) {
|
||||||
|
return unimplemented("_sceAppMgrGetAppInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetAppMgrState) {
|
||||||
|
return unimplemented("_sceAppMgrGetAppMgrState");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetAppParam) {
|
||||||
|
return unimplemented("_sceAppMgrGetAppParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetAppParam2) {
|
||||||
|
return unimplemented("_sceAppMgrGetAppParam2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetBootParam) {
|
||||||
|
return unimplemented("_sceAppMgrGetBootParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetBudgetInfo) {
|
||||||
|
return unimplemented("_sceAppMgrGetBudgetInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetCoredumpStateForShell) {
|
||||||
|
return unimplemented("_sceAppMgrGetCoredumpStateForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetCurrentBgmState) {
|
||||||
|
return unimplemented("_sceAppMgrGetCurrentBgmState");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetCurrentBgmState2) {
|
||||||
|
return unimplemented("_sceAppMgrGetCurrentBgmState2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetDevInfo) {
|
||||||
|
return unimplemented("_sceAppMgrGetDevInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetFgAppInfo) {
|
||||||
|
return unimplemented("_sceAppMgrGetFgAppInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetIdByName) {
|
||||||
|
return unimplemented("_sceAppMgrGetIdByName");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetMediaTypeFromDrive) {
|
||||||
|
return unimplemented("_sceAppMgrGetMediaTypeFromDrive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetMediaTypeFromDriveByPid) {
|
||||||
|
return unimplemented("_sceAppMgrGetMediaTypeFromDriveByPid");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetMountProcessNum) {
|
||||||
|
return unimplemented("_sceAppMgrGetMountProcessNum");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetNameById) {
|
||||||
|
return unimplemented("_sceAppMgrGetNameById");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetPfsDrive) {
|
||||||
|
return unimplemented("_sceAppMgrGetPfsDrive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetPidListForShell) {
|
||||||
|
return unimplemented("_sceAppMgrGetPidListForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetRawPath) {
|
||||||
|
return unimplemented("_sceAppMgrGetRawPath");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetRawPathOfApp0ByAppIdForShell) {
|
||||||
|
return unimplemented("_sceAppMgrGetRawPathOfApp0ByAppIdForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetRawPathOfApp0ByPidForShell) {
|
||||||
|
return unimplemented("_sceAppMgrGetRawPathOfApp0ByPidForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetRecommendedScreenOrientation) {
|
||||||
|
return unimplemented("_sceAppMgrGetRecommendedScreenOrientation");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetRunningAppIdListForShell) {
|
||||||
|
return unimplemented("_sceAppMgrGetRunningAppIdListForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetSaveDataInfo) {
|
||||||
|
return unimplemented("_sceAppMgrGetSaveDataInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetSaveDataInfoForSpecialExport) {
|
||||||
|
return unimplemented("_sceAppMgrGetSaveDataInfoForSpecialExport");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetStatusByAppId) {
|
||||||
|
return unimplemented("_sceAppMgrGetStatusByAppId");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetStatusById) {
|
||||||
|
return unimplemented("_sceAppMgrGetStatusById");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetStatusByName) {
|
||||||
|
return unimplemented("_sceAppMgrGetStatusByName");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetSystemDataFilePlayReady) {
|
||||||
|
return unimplemented("_sceAppMgrGetSystemDataFilePlayReady");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetUserDirPath) {
|
||||||
|
return unimplemented("_sceAppMgrGetUserDirPath");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetUserDirPathById) {
|
||||||
|
return unimplemented("_sceAppMgrGetUserDirPathById");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetVs0UserDataDrive) {
|
||||||
|
return unimplemented("_sceAppMgrGetVs0UserDataDrive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetVs0UserModuleDrive) {
|
||||||
|
return unimplemented("_sceAppMgrGetVs0UserModuleDrive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrInitSafeMemoryById) {
|
||||||
|
return unimplemented("_sceAppMgrInitSafeMemoryById");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrInstallDirMount) {
|
||||||
|
return unimplemented("_sceAppMgrInstallDirMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrIsCameraActive) {
|
||||||
|
return unimplemented("_sceAppMgrIsCameraActive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLaunchAppByName) {
|
||||||
|
return unimplemented("_sceAppMgrLaunchAppByName");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLaunchAppByName2) {
|
||||||
|
return unimplemented("_sceAppMgrLaunchAppByName2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLaunchAppByName2ForShell) {
|
||||||
|
return unimplemented("_sceAppMgrLaunchAppByName2ForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLaunchAppByName2ndStage) {
|
||||||
|
return unimplemented("_sceAppMgrLaunchAppByName2ndStage");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLaunchAppByNameForShell) {
|
||||||
|
return unimplemented("_sceAppMgrLaunchAppByNameForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLaunchAppByPath4) {
|
||||||
|
return unimplemented("_sceAppMgrLaunchAppByPath4");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLaunchAppByUri) {
|
||||||
|
return unimplemented("_sceAppMgrLaunchAppByUri");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLaunchAppByUri2) {
|
||||||
|
return unimplemented("_sceAppMgrLaunchAppByUri2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLaunchVideoStreamingApp) {
|
||||||
|
return unimplemented("_sceAppMgrLaunchVideoStreamingApp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLoadExec) {
|
||||||
|
return unimplemented("_sceAppMgrLoadExec");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLoadSaveDataSystemFile) {
|
||||||
|
return unimplemented("_sceAppMgrLoadSaveDataSystemFile");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLoopBackFormat) {
|
||||||
|
return unimplemented("_sceAppMgrLoopBackFormat");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrLoopBackMount) {
|
||||||
|
return unimplemented("_sceAppMgrLoopBackMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrMmsMount) {
|
||||||
|
return unimplemented("_sceAppMgrMmsMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrOverwriteLaunchParamForShell) {
|
||||||
|
return unimplemented("_sceAppMgrOverwriteLaunchParamForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrPeekLaunchParamForShell) {
|
||||||
|
return unimplemented("_sceAppMgrPeekLaunchParamForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrPhotoMount) {
|
||||||
|
return unimplemented("_sceAppMgrPhotoMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrPhotoUmount) {
|
||||||
|
return unimplemented("_sceAppMgrPhotoUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrPspSaveDataGetParams) {
|
||||||
|
return unimplemented("_sceAppMgrPspSaveDataGetParams");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrPspSaveDataRead) {
|
||||||
|
return unimplemented("_sceAppMgrPspSaveDataRead");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrPspSaveDataRootMount) {
|
||||||
|
return unimplemented("_sceAppMgrPspSaveDataRootMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrReceiveEvent) {
|
||||||
|
return unimplemented("_sceAppMgrReceiveEvent");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrReceiveEventNum) {
|
||||||
|
return unimplemented("_sceAppMgrReceiveEventNum");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrReceiveNotificationRequestForShell) {
|
||||||
|
return unimplemented("_sceAppMgrReceiveNotificationRequestForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrReceiveShellEvent) {
|
||||||
|
return unimplemented("_sceAppMgrReceiveShellEvent");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrReceiveSystemEvent) {
|
||||||
|
return unimplemented("_sceAppMgrReceiveSystemEvent");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataAddMount) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataAddMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataDataRemove) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataDataRemove");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataDataRemove2) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataDataRemove2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataDataSave) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataDataSave");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataDataSave2) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataDataSave2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataGetQuota) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataGetQuota");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataMount) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataSlotCreate) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataSlotCreate");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataSlotDelete) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataSlotDelete");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataSlotFileClose) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataSlotFileClose");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataSlotFileGetParam) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataSlotFileGetParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataSlotFileOpen) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataSlotFileOpen");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataSlotGetParam) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataSlotGetParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataSlotGetStatus) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataSlotGetStatus");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataSlotInit) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataSlotInit");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataSlotSetParam) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataSlotSetParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataSlotSetStatus) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataSlotSetStatus");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSaveDataUmount) {
|
||||||
|
return unimplemented("_sceAppMgrSaveDataUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSendNotificationRequest) {
|
||||||
|
return unimplemented("_sceAppMgrSendNotificationRequest");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSendParam) {
|
||||||
|
return unimplemented("_sceAppMgrSendParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSendSystemEvent) {
|
||||||
|
return unimplemented("_sceAppMgrSendSystemEvent");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSendSystemEvent2) {
|
||||||
|
return unimplemented("_sceAppMgrSendSystemEvent2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSetBackRenderPortOwner) {
|
||||||
|
return unimplemented("_sceAppMgrSetBackRenderPortOwner");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSetBgmProxyApp) {
|
||||||
|
return unimplemented("_sceAppMgrSetBgmProxyApp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSetNetworkDisconnectionWarningDialogState) {
|
||||||
|
return unimplemented("_sceAppMgrSetNetworkDisconnectionWarningDialogState");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSetPowerSaveMode) {
|
||||||
|
return unimplemented("_sceAppMgrSetPowerSaveMode");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSetRecommendedScreenOrientationForShell) {
|
||||||
|
return unimplemented("_sceAppMgrSetRecommendedScreenOrientationForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSetShellScreenOrientation) {
|
||||||
|
return unimplemented("_sceAppMgrSetShellScreenOrientation");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSetSystemDataFile) {
|
||||||
|
return unimplemented("_sceAppMgrSetSystemDataFile");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSetSystemDataFilePlayReady) {
|
||||||
|
return unimplemented("_sceAppMgrSetSystemDataFilePlayReady");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSystemParamDateTimeGetConf) {
|
||||||
|
return unimplemented("_sceAppMgrSystemParamDateTimeGetConf");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSystemParamGetInt) {
|
||||||
|
return unimplemented("_sceAppMgrSystemParamGetInt");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrSystemParamGetString) {
|
||||||
|
return unimplemented("_sceAppMgrSystemParamGetString");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrThemeDataMount) {
|
||||||
|
return unimplemented("_sceAppMgrThemeDataMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrTrophyMount) {
|
||||||
|
return unimplemented("_sceAppMgrTrophyMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrTrophyMountById) {
|
||||||
|
return unimplemented("_sceAppMgrTrophyMountById");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrUmount) {
|
||||||
|
return unimplemented("_sceAppMgrUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrUmountByPid) {
|
||||||
|
return unimplemented("_sceAppMgrUmountByPid");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrUpdateSaveDataParam) {
|
||||||
|
return unimplemented("_sceAppMgrUpdateSaveDataParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrWorkDirMount) {
|
||||||
|
return unimplemented("_sceAppMgrWorkDirMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrWorkDirMountById) {
|
||||||
|
return unimplemented("_sceAppMgrWorkDirMountById");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAcquireBgmPort) {
|
||||||
|
return unimplemented("sceAppMgrAcquireBgmPort");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAcquireBgmPortForMusicPlayer) {
|
||||||
|
return unimplemented("sceAppMgrAcquireBgmPortForMusicPlayer");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAcquireBgmPortWithPriority) {
|
||||||
|
return unimplemented("sceAppMgrAcquireBgmPortWithPriority");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAcquireBtrm) {
|
||||||
|
return unimplemented("sceAppMgrAcquireBtrm");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAcquireSoundOutExclusive) {
|
||||||
|
return unimplemented("sceAppMgrAcquireSoundOutExclusive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAcquireSoundOutExclusive2) {
|
||||||
|
return unimplemented("sceAppMgrAcquireSoundOutExclusive2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrActivateApp) {
|
||||||
|
return unimplemented("sceAppMgrActivateApp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrDeactivateApp) {
|
||||||
|
return unimplemented("sceAppMgrDeactivateApp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrDeclareSystemChatApp) {
|
||||||
|
return unimplemented("sceAppMgrDeclareSystemChatApp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrDestroyAppByAppId) {
|
||||||
|
return unimplemented("sceAppMgrDestroyAppByAppId");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrDestroyOtherApp) {
|
||||||
|
return unimplemented("sceAppMgrDestroyOtherApp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrDestroyOtherAppByAppIdForShell) {
|
||||||
|
return unimplemented("sceAppMgrDestroyOtherAppByAppIdForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrDestroyOtherAppByPidForShell) {
|
||||||
|
return unimplemented("sceAppMgrDestroyOtherAppByPidForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrDump) {
|
||||||
|
return unimplemented("sceAppMgrDump");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrEnableCoredumpForTest) {
|
||||||
|
return unimplemented("sceAppMgrEnableCoredumpForTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrEnableDuckingOnSystemChat) {
|
||||||
|
return unimplemented("sceAppMgrEnableDuckingOnSystemChat");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrEnablePrioritizingSystemChat) {
|
||||||
|
return unimplemented("sceAppMgrEnablePrioritizingSystemChat");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrExitToLiveboardForGameApp) {
|
||||||
|
return unimplemented("sceAppMgrExitToLiveboardForGameApp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrFinishCoredumpForShell) {
|
||||||
|
return unimplemented("sceAppMgrFinishCoredumpForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetAppIdByAppId) {
|
||||||
|
return unimplemented("sceAppMgrGetAppIdByAppId");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetExtraAppParam) {
|
||||||
|
return unimplemented("sceAppMgrGetExtraAppParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetProcessIdByAppIdForShell) {
|
||||||
|
return unimplemented("sceAppMgrGetProcessIdByAppIdForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetSystemDataFile) {
|
||||||
|
return unimplemented("sceAppMgrGetSystemDataFile");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGrowMemory) {
|
||||||
|
return unimplemented("sceAppMgrGrowMemory");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGrowMemory3) {
|
||||||
|
return unimplemented("sceAppMgrGrowMemory3");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrIsDevelopmentMode) {
|
||||||
|
return unimplemented("sceAppMgrIsDevelopmentMode");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrIsGameBudgetAppPresent) {
|
||||||
|
return unimplemented("sceAppMgrIsGameBudgetAppPresent");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrIsGameProgram) {
|
||||||
|
return unimplemented("sceAppMgrIsGameProgram");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrIsNonGameProgram) {
|
||||||
|
return unimplemented("sceAppMgrIsNonGameProgram");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrIsOtherAppPresent) {
|
||||||
|
return unimplemented("sceAppMgrIsOtherAppPresent");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrIsPidShellAndCrashed) {
|
||||||
|
return unimplemented("sceAppMgrIsPidShellAndCrashed");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrIsPsNowClient) {
|
||||||
|
return unimplemented("sceAppMgrIsPsNowClient");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLaunchAppCancel) {
|
||||||
|
return unimplemented("sceAppMgrLaunchAppCancel");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLoadSafeMemory) {
|
||||||
|
return unimplemented("sceAppMgrLoadSafeMemory");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrNotifyLiveBoardModeForShell) {
|
||||||
|
return unimplemented("sceAppMgrNotifyLiveBoardModeForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrQuitApp) {
|
||||||
|
return unimplemented("sceAppMgrQuitApp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrQuitForNonSuspendableApp) {
|
||||||
|
return unimplemented("sceAppMgrQuitForNonSuspendableApp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrReceiveShellEventNum) {
|
||||||
|
return unimplemented("sceAppMgrReceiveShellEventNum");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrReleaseBgmPort) {
|
||||||
|
return unimplemented("sceAppMgrReleaseBgmPort");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrReleaseBtrm) {
|
||||||
|
return unimplemented("sceAppMgrReleaseBtrm");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrReleaseSoundOutExclusive) {
|
||||||
|
return unimplemented("sceAppMgrReleaseSoundOutExclusive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrReleaseSoundOutExclusive2) {
|
||||||
|
return unimplemented("sceAppMgrReleaseSoundOutExclusive2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrReleaseSoundOutExclusive3) {
|
||||||
|
return unimplemented("sceAppMgrReleaseSoundOutExclusive3");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrRestoreBgmSettingForShell) {
|
||||||
|
return unimplemented("sceAppMgrRestoreBgmSettingForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrRestoreDisplaySettingForShell) {
|
||||||
|
return unimplemented("sceAppMgrRestoreDisplaySettingForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrResumeBgAppByShell) {
|
||||||
|
return unimplemented("sceAppMgrResumeBgAppByShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrReturnLiveAreaOperationResultForShell) {
|
||||||
|
return unimplemented("sceAppMgrReturnLiveAreaOperationResultForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataGetCachedRequiredSizeKiB) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataGetCachedRequiredSizeKiB");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveSafeMemory) {
|
||||||
|
return unimplemented("sceAppMgrSaveSafeMemory");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSendLiveBoardMode) {
|
||||||
|
return unimplemented("sceAppMgrSendLiveBoardMode");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetAppProtectionModeOnMemoryShortage) {
|
||||||
|
return unimplemented("sceAppMgrSetAppProtectionModeOnMemoryShortage");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetBgmSubPriority) {
|
||||||
|
return unimplemented("sceAppMgrSetBgmSubPriority");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetBgmSubPriorityForSystemChat) {
|
||||||
|
return unimplemented("sceAppMgrSetBgmSubPriorityForSystemChat");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetDisplayMergeConf) {
|
||||||
|
return unimplemented("sceAppMgrSetDisplayMergeConf");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetFakeSettingBug51800) {
|
||||||
|
return unimplemented("sceAppMgrSetFakeSettingBug51800");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetInfobarState) {
|
||||||
|
return unimplemented("sceAppMgrSetInfobarState");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetInfobarStateForCommonDialog) {
|
||||||
|
return unimplemented("sceAppMgrSetInfobarStateForCommonDialog");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetInfobarStateForShellByAppId) {
|
||||||
|
return unimplemented("sceAppMgrSetInfobarStateForShellByAppId");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetRecommendedScreenOrientationActivated) {
|
||||||
|
return unimplemented("sceAppMgrSetRecommendedScreenOrientationActivated");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetSystemImposeState) {
|
||||||
|
return unimplemented("sceAppMgrSetSystemImposeState");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetSystemImposeState2) {
|
||||||
|
return unimplemented("sceAppMgrSetSystemImposeState2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSuspendBgAppByShell) {
|
||||||
|
return unimplemented("sceAppMgrSuspendBgAppByShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSuspendUntilActivated) {
|
||||||
|
return unimplemented("sceAppMgrSuspendUntilActivated");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(__sceAppMgrGetAppState)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrAcidDirSet)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrAcquireSoundOutExclusive3)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrAddContAddMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrAddContMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrAppDataMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrAppDataMountById)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrAppMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrAppParamGetInt)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrAppParamGetString)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrAppParamSetString)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrAppUmount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrBgdlGetQueueStatus)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrCaptureFrameBufDMACByAppId)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrCaptureFrameBufIFTUByAppId)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrCheckRifGD)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrContentInstallPeriodStart)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrContentInstallPeriodStop)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrConvertVs0UserDrivePath)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrDeclareShellProcess2)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrDestroyAppByName)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrDrmClose)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrDrmOpen)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrForceUmount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGameDataMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetAppInfo)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetAppMgrState)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetAppParam)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetAppParam2)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetBootParam)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetBudgetInfo)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetCoredumpStateForShell)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetCurrentBgmState)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetCurrentBgmState2)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetDevInfo)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetFgAppInfo)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetIdByName)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetMediaTypeFromDrive)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetMediaTypeFromDriveByPid)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetMountProcessNum)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetNameById)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetPfsDrive)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetPidListForShell)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetRawPath)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetRawPathOfApp0ByAppIdForShell)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetRawPathOfApp0ByPidForShell)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetRecommendedScreenOrientation)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetRunningAppIdListForShell)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetSaveDataInfo)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetSaveDataInfoForSpecialExport)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetStatusByAppId)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetStatusById)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetStatusByName)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetSystemDataFilePlayReady)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetUserDirPath)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetUserDirPathById)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetVs0UserDataDrive)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetVs0UserModuleDrive)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrInitSafeMemoryById)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrInstallDirMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrIsCameraActive)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLaunchAppByName)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLaunchAppByName2)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLaunchAppByName2ForShell)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLaunchAppByName2ndStage)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLaunchAppByNameForShell)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLaunchAppByPath4)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLaunchAppByUri)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLaunchAppByUri2)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLaunchVideoStreamingApp)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLoadExec)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLoadSaveDataSystemFile)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLoopBackFormat)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrLoopBackMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrMmsMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrOverwriteLaunchParamForShell)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrPeekLaunchParamForShell)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrPhotoMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrPhotoUmount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrPspSaveDataGetParams)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrPspSaveDataRead)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrPspSaveDataRootMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrReceiveEvent)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrReceiveEventNum)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrReceiveNotificationRequestForShell)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrReceiveShellEvent)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrReceiveSystemEvent)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataAddMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataDataRemove)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataDataRemove2)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataDataSave)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataDataSave2)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataGetQuota)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataSlotCreate)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataSlotDelete)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataSlotFileClose)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataSlotFileGetParam)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataSlotFileOpen)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataSlotGetParam)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataSlotGetStatus)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataSlotInit)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataSlotSetParam)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataSlotSetStatus)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSaveDataUmount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSendNotificationRequest)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSendParam)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSendSystemEvent)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSendSystemEvent2)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSetBackRenderPortOwner)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSetBgmProxyApp)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSetNetworkDisconnectionWarningDialogState)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSetPowerSaveMode)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSetRecommendedScreenOrientationForShell)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSetShellScreenOrientation)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSetSystemDataFile)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSetSystemDataFilePlayReady)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSystemParamDateTimeGetConf)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSystemParamGetInt)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrSystemParamGetString)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrThemeDataMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrTrophyMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrTrophyMountById)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrUmount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrUmountByPid)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrUpdateSaveDataParam)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrWorkDirMount)
|
||||||
|
BRIDGE_IMPL(_sceAppMgrWorkDirMountById)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAcquireBgmPort)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAcquireBgmPortForMusicPlayer)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAcquireBgmPortWithPriority)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAcquireBtrm)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAcquireSoundOutExclusive)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAcquireSoundOutExclusive2)
|
||||||
|
BRIDGE_IMPL(sceAppMgrActivateApp)
|
||||||
|
BRIDGE_IMPL(sceAppMgrDeactivateApp)
|
||||||
|
BRIDGE_IMPL(sceAppMgrDeclareSystemChatApp)
|
||||||
|
BRIDGE_IMPL(sceAppMgrDestroyAppByAppId)
|
||||||
|
BRIDGE_IMPL(sceAppMgrDestroyOtherApp)
|
||||||
|
BRIDGE_IMPL(sceAppMgrDestroyOtherAppByAppIdForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrDestroyOtherAppByPidForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrDump)
|
||||||
|
BRIDGE_IMPL(sceAppMgrEnableCoredumpForTest)
|
||||||
|
BRIDGE_IMPL(sceAppMgrEnableDuckingOnSystemChat)
|
||||||
|
BRIDGE_IMPL(sceAppMgrEnablePrioritizingSystemChat)
|
||||||
|
BRIDGE_IMPL(sceAppMgrExitToLiveboardForGameApp)
|
||||||
|
BRIDGE_IMPL(sceAppMgrFinishCoredumpForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetAppIdByAppId)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetExtraAppParam)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetProcessIdByAppIdForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetSystemDataFile)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGrowMemory)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGrowMemory3)
|
||||||
|
BRIDGE_IMPL(sceAppMgrIsDevelopmentMode)
|
||||||
|
BRIDGE_IMPL(sceAppMgrIsGameBudgetAppPresent)
|
||||||
|
BRIDGE_IMPL(sceAppMgrIsGameProgram)
|
||||||
|
BRIDGE_IMPL(sceAppMgrIsNonGameProgram)
|
||||||
|
BRIDGE_IMPL(sceAppMgrIsOtherAppPresent)
|
||||||
|
BRIDGE_IMPL(sceAppMgrIsPidShellAndCrashed)
|
||||||
|
BRIDGE_IMPL(sceAppMgrIsPsNowClient)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLaunchAppCancel)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLoadSafeMemory)
|
||||||
|
BRIDGE_IMPL(sceAppMgrNotifyLiveBoardModeForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrQuitApp)
|
||||||
|
BRIDGE_IMPL(sceAppMgrQuitForNonSuspendableApp)
|
||||||
|
BRIDGE_IMPL(sceAppMgrReceiveShellEventNum)
|
||||||
|
BRIDGE_IMPL(sceAppMgrReleaseBgmPort)
|
||||||
|
BRIDGE_IMPL(sceAppMgrReleaseBtrm)
|
||||||
|
BRIDGE_IMPL(sceAppMgrReleaseSoundOutExclusive)
|
||||||
|
BRIDGE_IMPL(sceAppMgrReleaseSoundOutExclusive2)
|
||||||
|
BRIDGE_IMPL(sceAppMgrReleaseSoundOutExclusive3)
|
||||||
|
BRIDGE_IMPL(sceAppMgrRestoreBgmSettingForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrRestoreDisplaySettingForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrResumeBgAppByShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrReturnLiveAreaOperationResultForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataGetCachedRequiredSizeKiB)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveSafeMemory)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSendLiveBoardMode)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetAppProtectionModeOnMemoryShortage)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetBgmSubPriority)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetBgmSubPriorityForSystemChat)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetDisplayMergeConf)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetFakeSettingBug51800)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetInfobarState)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetInfobarStateForCommonDialog)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetInfobarStateForShellByAppId)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetRecommendedScreenOrientationActivated)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetSystemImposeState)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetSystemImposeState2)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSuspendBgAppByShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSuspendUntilActivated)
|
||||||
@@ -0,0 +1,634 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceAppMgr/exports.h>
|
||||||
|
|
||||||
|
EXPORT(int, _sceAppMgrGetAppState) {
|
||||||
|
return unimplemented("_sceAppMgrGetAppState");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAcidDirSet) {
|
||||||
|
return unimplemented("sceAppMgrAcidDirSet");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAcquireSoundOutExclusive3) {
|
||||||
|
return unimplemented("sceAppMgrAcquireSoundOutExclusive3");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAddContAddMount) {
|
||||||
|
return unimplemented("sceAppMgrAddContAddMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAddContMount) {
|
||||||
|
return unimplemented("sceAppMgrAddContMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAppDataMount) {
|
||||||
|
return unimplemented("sceAppMgrAppDataMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAppDataMountById) {
|
||||||
|
return unimplemented("sceAppMgrAppDataMountById");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAppMount) {
|
||||||
|
return unimplemented("sceAppMgrAppMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAppParamGetInt) {
|
||||||
|
return unimplemented("sceAppMgrAppParamGetInt");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAppParamGetString) {
|
||||||
|
return unimplemented("sceAppMgrAppParamGetString");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAppParamSetString) {
|
||||||
|
return unimplemented("sceAppMgrAppParamSetString");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrAppUmount) {
|
||||||
|
return unimplemented("sceAppMgrAppUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrBgdlGetQueueStatus) {
|
||||||
|
return unimplemented("sceAppMgrBgdlGetQueueStatus");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrCaptureFrameBufDMACByAppId) {
|
||||||
|
return unimplemented("sceAppMgrCaptureFrameBufDMACByAppId");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrCaptureFrameBufIFTUByAppId) {
|
||||||
|
return unimplemented("sceAppMgrCaptureFrameBufIFTUByAppId");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrCheckRifGD) {
|
||||||
|
return unimplemented("sceAppMgrCheckRifGD");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrContentInstallPeriodStart) {
|
||||||
|
return unimplemented("sceAppMgrContentInstallPeriodStart");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrContentInstallPeriodStop) {
|
||||||
|
return unimplemented("sceAppMgrContentInstallPeriodStop");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrConvertVs0UserDrivePath) {
|
||||||
|
return unimplemented("sceAppMgrConvertVs0UserDrivePath");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrDeclareShellProcess2) {
|
||||||
|
return unimplemented("sceAppMgrDeclareShellProcess2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrDestroyAppByName) {
|
||||||
|
return unimplemented("sceAppMgrDestroyAppByName");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrDrmClose) {
|
||||||
|
return unimplemented("sceAppMgrDrmClose");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrDrmOpen) {
|
||||||
|
return unimplemented("sceAppMgrDrmOpen");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrForceUmount) {
|
||||||
|
return unimplemented("sceAppMgrForceUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGameDataMount) {
|
||||||
|
return unimplemented("sceAppMgrGameDataMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetAppInfo) {
|
||||||
|
return unimplemented("sceAppMgrGetAppInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetAppMgrState) {
|
||||||
|
return unimplemented("sceAppMgrGetAppMgrState");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetAppParam) {
|
||||||
|
return unimplemented("sceAppMgrGetAppParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetAppParam2) {
|
||||||
|
return unimplemented("sceAppMgrGetAppParam2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetBootParam) {
|
||||||
|
return unimplemented("sceAppMgrGetBootParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetBudgetInfo) {
|
||||||
|
return unimplemented("sceAppMgrGetBudgetInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetCoredumpStateForShell) {
|
||||||
|
return unimplemented("sceAppMgrGetCoredumpStateForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetCurrentBgmState) {
|
||||||
|
return unimplemented("sceAppMgrGetCurrentBgmState");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetCurrentBgmState2) {
|
||||||
|
return unimplemented("sceAppMgrGetCurrentBgmState2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetDevInfo) {
|
||||||
|
return unimplemented("sceAppMgrGetDevInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetFgAppInfo) {
|
||||||
|
return unimplemented("sceAppMgrGetFgAppInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetIdByName) {
|
||||||
|
return unimplemented("sceAppMgrGetIdByName");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetMediaTypeFromDrive) {
|
||||||
|
return unimplemented("sceAppMgrGetMediaTypeFromDrive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetMediaTypeFromDriveByPid) {
|
||||||
|
return unimplemented("sceAppMgrGetMediaTypeFromDriveByPid");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetMountProcessNum) {
|
||||||
|
return unimplemented("sceAppMgrGetMountProcessNum");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetNameById) {
|
||||||
|
return unimplemented("sceAppMgrGetNameById");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetPfsDrive) {
|
||||||
|
return unimplemented("sceAppMgrGetPfsDrive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetPidListForShell) {
|
||||||
|
return unimplemented("sceAppMgrGetPidListForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetRawPath) {
|
||||||
|
return unimplemented("sceAppMgrGetRawPath");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetRawPathOfApp0ByAppIdForShell) {
|
||||||
|
return unimplemented("sceAppMgrGetRawPathOfApp0ByAppIdForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetRawPathOfApp0ByPidForShell) {
|
||||||
|
return unimplemented("sceAppMgrGetRawPathOfApp0ByPidForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetRecommendedScreenOrientation) {
|
||||||
|
return unimplemented("sceAppMgrGetRecommendedScreenOrientation");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetRunningAppIdListForShell) {
|
||||||
|
return unimplemented("sceAppMgrGetRunningAppIdListForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetSaveDataInfo) {
|
||||||
|
return unimplemented("sceAppMgrGetSaveDataInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetSaveDataInfoForSpecialExport) {
|
||||||
|
return unimplemented("sceAppMgrGetSaveDataInfoForSpecialExport");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetStatusByAppId) {
|
||||||
|
return unimplemented("sceAppMgrGetStatusByAppId");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetStatusById) {
|
||||||
|
return unimplemented("sceAppMgrGetStatusById");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetStatusByName) {
|
||||||
|
return unimplemented("sceAppMgrGetStatusByName");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetSystemDataFilePlayReady) {
|
||||||
|
return unimplemented("sceAppMgrGetSystemDataFilePlayReady");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetUserDirPath) {
|
||||||
|
return unimplemented("sceAppMgrGetUserDirPath");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetVs0UserDataDrive) {
|
||||||
|
return unimplemented("sceAppMgrGetVs0UserDataDrive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrGetVs0UserModuleDrive) {
|
||||||
|
return unimplemented("sceAppMgrGetVs0UserModuleDrive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrInitSafeMemoryById) {
|
||||||
|
return unimplemented("sceAppMgrInitSafeMemoryById");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrInstallDirMount) {
|
||||||
|
return unimplemented("sceAppMgrInstallDirMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrIsCameraActive) {
|
||||||
|
return unimplemented("sceAppMgrIsCameraActive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLaunchAppByName) {
|
||||||
|
return unimplemented("sceAppMgrLaunchAppByName");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLaunchAppByName2) {
|
||||||
|
return unimplemented("sceAppMgrLaunchAppByName2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLaunchAppByName2ForShell) {
|
||||||
|
return unimplemented("sceAppMgrLaunchAppByName2ForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLaunchAppByName2ndStage) {
|
||||||
|
return unimplemented("sceAppMgrLaunchAppByName2ndStage");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLaunchAppByNameForShell) {
|
||||||
|
return unimplemented("sceAppMgrLaunchAppByNameForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLaunchAppByPath4) {
|
||||||
|
return unimplemented("sceAppMgrLaunchAppByPath4");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLaunchAppByUri) {
|
||||||
|
return unimplemented("sceAppMgrLaunchAppByUri");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLaunchAppByUri2) {
|
||||||
|
return unimplemented("sceAppMgrLaunchAppByUri2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLaunchVideoStreamingApp) {
|
||||||
|
return unimplemented("sceAppMgrLaunchVideoStreamingApp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLoadExec) {
|
||||||
|
return unimplemented("sceAppMgrLoadExec");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLoopBackFormat) {
|
||||||
|
return unimplemented("sceAppMgrLoopBackFormat");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrLoopBackMount) {
|
||||||
|
return unimplemented("sceAppMgrLoopBackMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrMmsMount) {
|
||||||
|
return unimplemented("sceAppMgrMmsMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrOverwriteLaunchParamForShell) {
|
||||||
|
return unimplemented("sceAppMgrOverwriteLaunchParamForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrPeekLaunchParamForShell) {
|
||||||
|
return unimplemented("sceAppMgrPeekLaunchParamForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrPhotoMount) {
|
||||||
|
return unimplemented("sceAppMgrPhotoMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrPhotoUmount) {
|
||||||
|
return unimplemented("sceAppMgrPhotoUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrPspSaveDataGetParams) {
|
||||||
|
return unimplemented("sceAppMgrPspSaveDataGetParams");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrPspSaveDataRead) {
|
||||||
|
return unimplemented("sceAppMgrPspSaveDataRead");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrPspSaveDataRootMount) {
|
||||||
|
return unimplemented("sceAppMgrPspSaveDataRootMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrReceiveEvent) {
|
||||||
|
return unimplemented("sceAppMgrReceiveEvent");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrReceiveEventNum) {
|
||||||
|
return unimplemented("sceAppMgrReceiveEventNum");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrReceiveNotificationRequestForShell) {
|
||||||
|
return unimplemented("sceAppMgrReceiveNotificationRequestForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrReceiveShellEvent) {
|
||||||
|
return unimplemented("sceAppMgrReceiveShellEvent");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrReceiveSystemEvent) {
|
||||||
|
return unimplemented("sceAppMgrReceiveSystemEvent");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataAddMount) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataAddMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataDataRemove) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataDataRemove");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataDataSave) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataDataSave");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataGetQuota) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataGetQuota");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataMount) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataSlotCreate) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataSlotCreate");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataSlotDelete) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataSlotDelete");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataSlotFileClose) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataSlotFileClose");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataSlotFileGetParam) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataSlotFileGetParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataSlotFileOpen) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataSlotFileOpen");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataSlotGetParam) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataSlotGetParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataSlotGetStatus) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataSlotGetStatus");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataSlotInit) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataSlotInit");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataSlotSetParam) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataSlotSetParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataSlotSetStatus) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataSlotSetStatus");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSaveDataUmount) {
|
||||||
|
return unimplemented("sceAppMgrSaveDataUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSendNotificationRequest) {
|
||||||
|
return unimplemented("sceAppMgrSendNotificationRequest");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSendParam) {
|
||||||
|
return unimplemented("sceAppMgrSendParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSendSystemEvent) {
|
||||||
|
return unimplemented("sceAppMgrSendSystemEvent");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSendSystemEvent2) {
|
||||||
|
return unimplemented("sceAppMgrSendSystemEvent2");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetBackRenderPortOwner) {
|
||||||
|
return unimplemented("sceAppMgrSetBackRenderPortOwner");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetBgmProxyApp) {
|
||||||
|
return unimplemented("sceAppMgrSetBgmProxyApp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetNetworkDisconnectionWarningDialogState) {
|
||||||
|
return unimplemented("sceAppMgrSetNetworkDisconnectionWarningDialogState");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetPowerSaveMode) {
|
||||||
|
return unimplemented("sceAppMgrSetPowerSaveMode");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetRecommendedScreenOrientationForShell) {
|
||||||
|
return unimplemented("sceAppMgrSetRecommendedScreenOrientationForShell");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetShellScreenOrientation) {
|
||||||
|
return unimplemented("sceAppMgrSetShellScreenOrientation");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetSystemDataFile) {
|
||||||
|
return unimplemented("sceAppMgrSetSystemDataFile");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSetSystemDataFilePlayReady) {
|
||||||
|
return unimplemented("sceAppMgrSetSystemDataFilePlayReady");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSystemParamDateTimeGetConf) {
|
||||||
|
return unimplemented("sceAppMgrSystemParamDateTimeGetConf");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSystemParamGetInt) {
|
||||||
|
return unimplemented("sceAppMgrSystemParamGetInt");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrSystemParamGetString) {
|
||||||
|
return unimplemented("sceAppMgrSystemParamGetString");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrTrophyMount) {
|
||||||
|
return unimplemented("sceAppMgrTrophyMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrTrophyMountById) {
|
||||||
|
return unimplemented("sceAppMgrTrophyMountById");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrUmount) {
|
||||||
|
return unimplemented("sceAppMgrUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrUmountByPid) {
|
||||||
|
return unimplemented("sceAppMgrUmountByPid");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrUpdateSaveDataParam) {
|
||||||
|
return unimplemented("sceAppMgrUpdateSaveDataParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrWorkDirMount) {
|
||||||
|
return unimplemented("sceAppMgrWorkDirMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppMgrWorkDirMountById) {
|
||||||
|
return unimplemented("sceAppMgrWorkDirMountById");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(_sceAppMgrGetAppState)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAcidDirSet)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAcquireSoundOutExclusive3)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAddContAddMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAddContMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAppDataMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAppDataMountById)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAppMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAppParamGetInt)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAppParamGetString)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAppParamSetString)
|
||||||
|
BRIDGE_IMPL(sceAppMgrAppUmount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrBgdlGetQueueStatus)
|
||||||
|
BRIDGE_IMPL(sceAppMgrCaptureFrameBufDMACByAppId)
|
||||||
|
BRIDGE_IMPL(sceAppMgrCaptureFrameBufIFTUByAppId)
|
||||||
|
BRIDGE_IMPL(sceAppMgrCheckRifGD)
|
||||||
|
BRIDGE_IMPL(sceAppMgrContentInstallPeriodStart)
|
||||||
|
BRIDGE_IMPL(sceAppMgrContentInstallPeriodStop)
|
||||||
|
BRIDGE_IMPL(sceAppMgrConvertVs0UserDrivePath)
|
||||||
|
BRIDGE_IMPL(sceAppMgrDeclareShellProcess2)
|
||||||
|
BRIDGE_IMPL(sceAppMgrDestroyAppByName)
|
||||||
|
BRIDGE_IMPL(sceAppMgrDrmClose)
|
||||||
|
BRIDGE_IMPL(sceAppMgrDrmOpen)
|
||||||
|
BRIDGE_IMPL(sceAppMgrForceUmount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGameDataMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetAppInfo)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetAppMgrState)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetAppParam)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetAppParam2)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetBootParam)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetBudgetInfo)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetCoredumpStateForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetCurrentBgmState)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetCurrentBgmState2)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetDevInfo)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetFgAppInfo)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetIdByName)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetMediaTypeFromDrive)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetMediaTypeFromDriveByPid)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetMountProcessNum)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetNameById)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetPfsDrive)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetPidListForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetRawPath)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetRawPathOfApp0ByAppIdForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetRawPathOfApp0ByPidForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetRecommendedScreenOrientation)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetRunningAppIdListForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetSaveDataInfo)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetSaveDataInfoForSpecialExport)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetStatusByAppId)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetStatusById)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetStatusByName)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetSystemDataFilePlayReady)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetUserDirPath)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetVs0UserDataDrive)
|
||||||
|
BRIDGE_IMPL(sceAppMgrGetVs0UserModuleDrive)
|
||||||
|
BRIDGE_IMPL(sceAppMgrInitSafeMemoryById)
|
||||||
|
BRIDGE_IMPL(sceAppMgrInstallDirMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrIsCameraActive)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLaunchAppByName)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLaunchAppByName2)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLaunchAppByName2ForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLaunchAppByName2ndStage)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLaunchAppByNameForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLaunchAppByPath4)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLaunchAppByUri)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLaunchAppByUri2)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLaunchVideoStreamingApp)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLoadExec)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLoopBackFormat)
|
||||||
|
BRIDGE_IMPL(sceAppMgrLoopBackMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrMmsMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrOverwriteLaunchParamForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrPeekLaunchParamForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrPhotoMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrPhotoUmount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrPspSaveDataGetParams)
|
||||||
|
BRIDGE_IMPL(sceAppMgrPspSaveDataRead)
|
||||||
|
BRIDGE_IMPL(sceAppMgrPspSaveDataRootMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrReceiveEvent)
|
||||||
|
BRIDGE_IMPL(sceAppMgrReceiveEventNum)
|
||||||
|
BRIDGE_IMPL(sceAppMgrReceiveNotificationRequestForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrReceiveShellEvent)
|
||||||
|
BRIDGE_IMPL(sceAppMgrReceiveSystemEvent)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataAddMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataDataRemove)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataDataSave)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataGetQuota)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataSlotCreate)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataSlotDelete)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataSlotFileClose)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataSlotFileGetParam)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataSlotFileOpen)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataSlotGetParam)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataSlotGetStatus)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataSlotInit)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataSlotSetParam)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataSlotSetStatus)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSaveDataUmount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSendNotificationRequest)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSendParam)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSendSystemEvent)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSendSystemEvent2)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetBackRenderPortOwner)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetBgmProxyApp)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetNetworkDisconnectionWarningDialogState)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetPowerSaveMode)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetRecommendedScreenOrientationForShell)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetShellScreenOrientation)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetSystemDataFile)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSetSystemDataFilePlayReady)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSystemParamDateTimeGetConf)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSystemParamGetInt)
|
||||||
|
BRIDGE_IMPL(sceAppMgrSystemParamGetString)
|
||||||
|
BRIDGE_IMPL(sceAppMgrTrophyMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrTrophyMountById)
|
||||||
|
BRIDGE_IMPL(sceAppMgrUmount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrUmountByPid)
|
||||||
|
BRIDGE_IMPL(sceAppMgrUpdateSaveDataParam)
|
||||||
|
BRIDGE_IMPL(sceAppMgrWorkDirMount)
|
||||||
|
BRIDGE_IMPL(sceAppMgrWorkDirMountById)
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceAppMgr/exports.h>
|
||||||
|
|
||||||
|
EXPORT(int, _sceSharedFbOpen) {
|
||||||
|
return unimplemented("_sceSharedFbOpen");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceSharedFbBegin) {
|
||||||
|
return unimplemented("sceSharedFbBegin");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceSharedFbClose) {
|
||||||
|
return unimplemented("sceSharedFbClose");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceSharedFbCreate) {
|
||||||
|
return unimplemented("sceSharedFbCreate");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceSharedFbDelete) {
|
||||||
|
return unimplemented("sceSharedFbDelete");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceSharedFbEnd) {
|
||||||
|
return unimplemented("sceSharedFbEnd");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceSharedFbGetInfo) {
|
||||||
|
return unimplemented("sceSharedFbGetInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceSharedFbGetRenderingInfo) {
|
||||||
|
return unimplemented("sceSharedFbGetRenderingInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceSharedFbGetShellRenderPort) {
|
||||||
|
return unimplemented("sceSharedFbGetShellRenderPort");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceSharedFbUpdateProcess) {
|
||||||
|
return unimplemented("sceSharedFbUpdateProcess");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceSharedFbUpdateProcessBegin) {
|
||||||
|
return unimplemented("sceSharedFbUpdateProcessBegin");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceSharedFbUpdateProcessEnd) {
|
||||||
|
return unimplemented("sceSharedFbUpdateProcessEnd");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(_sceSharedFbOpen)
|
||||||
|
BRIDGE_IMPL(sceSharedFbBegin)
|
||||||
|
BRIDGE_IMPL(sceSharedFbClose)
|
||||||
|
BRIDGE_IMPL(sceSharedFbCreate)
|
||||||
|
BRIDGE_IMPL(sceSharedFbDelete)
|
||||||
|
BRIDGE_IMPL(sceSharedFbEnd)
|
||||||
|
BRIDGE_IMPL(sceSharedFbGetInfo)
|
||||||
|
BRIDGE_IMPL(sceSharedFbGetRenderingInfo)
|
||||||
|
BRIDGE_IMPL(sceSharedFbGetShellRenderPort)
|
||||||
|
BRIDGE_IMPL(sceSharedFbUpdateProcess)
|
||||||
|
BRIDGE_IMPL(sceSharedFbUpdateProcessBegin)
|
||||||
|
BRIDGE_IMPL(sceSharedFbUpdateProcessEnd)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
add_library(SceAppUtil STATIC include/SceAppUtil/exports.h src/SceAppUtil.cpp src/SceAppUtilCache.cpp)
|
||||||
|
target_include_directories(SceAppUtil PUBLIC include)
|
||||||
|
target_link_libraries(SceAppUtil PRIVATE module)
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <module/module.h>
|
||||||
|
|
||||||
|
// SceAppUtil
|
||||||
|
BRIDGE_DECL(sceAppUtilAddCookieWebBrowser)
|
||||||
|
BRIDGE_DECL(sceAppUtilAddcontMount)
|
||||||
|
BRIDGE_DECL(sceAppUtilAddcontUmount)
|
||||||
|
BRIDGE_DECL(sceAppUtilAppEventParseIncomingDialog)
|
||||||
|
BRIDGE_DECL(sceAppUtilAppEventParseLiveArea)
|
||||||
|
BRIDGE_DECL(sceAppUtilAppEventParseNearGift)
|
||||||
|
BRIDGE_DECL(sceAppUtilAppEventParseNpAppDataMessage)
|
||||||
|
BRIDGE_DECL(sceAppUtilAppEventParseNpBasicJoinablePresence)
|
||||||
|
BRIDGE_DECL(sceAppUtilAppEventParseNpInviteMessage)
|
||||||
|
BRIDGE_DECL(sceAppUtilAppEventParseScreenShotNotification)
|
||||||
|
BRIDGE_DECL(sceAppUtilAppEventParseTriggerUtil)
|
||||||
|
BRIDGE_DECL(sceAppUtilAppEventParseWebBrowser)
|
||||||
|
BRIDGE_DECL(sceAppUtilAppParamGetInt)
|
||||||
|
BRIDGE_DECL(sceAppUtilBgdlGetStatus)
|
||||||
|
BRIDGE_DECL(sceAppUtilDrmClose)
|
||||||
|
BRIDGE_DECL(sceAppUtilDrmOpen)
|
||||||
|
BRIDGE_DECL(sceAppUtilInit)
|
||||||
|
BRIDGE_DECL(sceAppUtilLaunchWebBrowser)
|
||||||
|
BRIDGE_DECL(sceAppUtilLoadSafeMemory)
|
||||||
|
BRIDGE_DECL(sceAppUtilMusicMount)
|
||||||
|
BRIDGE_DECL(sceAppUtilMusicUmount)
|
||||||
|
BRIDGE_DECL(sceAppUtilPhotoMount)
|
||||||
|
BRIDGE_DECL(sceAppUtilPhotoUmount)
|
||||||
|
BRIDGE_DECL(sceAppUtilPspSaveDataGetDirNameList)
|
||||||
|
BRIDGE_DECL(sceAppUtilPspSaveDataLoad)
|
||||||
|
BRIDGE_DECL(sceAppUtilReceiveAppEvent)
|
||||||
|
BRIDGE_DECL(sceAppUtilResetCookieWebBrowser)
|
||||||
|
BRIDGE_DECL(sceAppUtilSaveDataDataRemove)
|
||||||
|
BRIDGE_DECL(sceAppUtilSaveDataDataSave)
|
||||||
|
BRIDGE_DECL(sceAppUtilSaveDataGetQuota)
|
||||||
|
BRIDGE_DECL(sceAppUtilSaveDataMount)
|
||||||
|
BRIDGE_DECL(sceAppUtilSaveDataSlotCreate)
|
||||||
|
BRIDGE_DECL(sceAppUtilSaveDataSlotDelete)
|
||||||
|
BRIDGE_DECL(sceAppUtilSaveDataSlotGetParam)
|
||||||
|
BRIDGE_DECL(sceAppUtilSaveDataSlotSearch)
|
||||||
|
BRIDGE_DECL(sceAppUtilSaveDataSlotSetParam)
|
||||||
|
BRIDGE_DECL(sceAppUtilSaveDataUmount)
|
||||||
|
BRIDGE_DECL(sceAppUtilSaveSafeMemory)
|
||||||
|
BRIDGE_DECL(sceAppUtilShutdown)
|
||||||
|
BRIDGE_DECL(sceAppUtilStoreBrowse)
|
||||||
|
BRIDGE_DECL(sceAppUtilSystemParamGetInt)
|
||||||
|
BRIDGE_DECL(sceAppUtilSystemParamGetString)
|
||||||
|
|
||||||
|
// SceAppUtilCache
|
||||||
|
BRIDGE_DECL(sceAppUtilCacheMount)
|
||||||
@@ -0,0 +1,229 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceAppUtil/exports.h>
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAddCookieWebBrowser) {
|
||||||
|
return unimplemented("sceAppUtilAddCookieWebBrowser");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAddcontMount) {
|
||||||
|
return unimplemented("sceAppUtilAddcontMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAddcontUmount) {
|
||||||
|
return unimplemented("sceAppUtilAddcontUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAppEventParseIncomingDialog) {
|
||||||
|
return unimplemented("sceAppUtilAppEventParseIncomingDialog");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAppEventParseLiveArea) {
|
||||||
|
return unimplemented("sceAppUtilAppEventParseLiveArea");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAppEventParseNearGift) {
|
||||||
|
return unimplemented("sceAppUtilAppEventParseNearGift");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAppEventParseNpAppDataMessage) {
|
||||||
|
return unimplemented("sceAppUtilAppEventParseNpAppDataMessage");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAppEventParseNpBasicJoinablePresence) {
|
||||||
|
return unimplemented("sceAppUtilAppEventParseNpBasicJoinablePresence");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAppEventParseNpInviteMessage) {
|
||||||
|
return unimplemented("sceAppUtilAppEventParseNpInviteMessage");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAppEventParseScreenShotNotification) {
|
||||||
|
return unimplemented("sceAppUtilAppEventParseScreenShotNotification");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAppEventParseTriggerUtil) {
|
||||||
|
return unimplemented("sceAppUtilAppEventParseTriggerUtil");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAppEventParseWebBrowser) {
|
||||||
|
return unimplemented("sceAppUtilAppEventParseWebBrowser");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilAppParamGetInt) {
|
||||||
|
return unimplemented("sceAppUtilAppParamGetInt");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilBgdlGetStatus) {
|
||||||
|
return unimplemented("sceAppUtilBgdlGetStatus");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilDrmClose) {
|
||||||
|
return unimplemented("sceAppUtilDrmClose");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilDrmOpen) {
|
||||||
|
return unimplemented("sceAppUtilDrmOpen");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilInit) {
|
||||||
|
return unimplemented("sceAppUtilInit");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilLaunchWebBrowser) {
|
||||||
|
return unimplemented("sceAppUtilLaunchWebBrowser");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilLoadSafeMemory) {
|
||||||
|
return unimplemented("sceAppUtilLoadSafeMemory");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilMusicMount) {
|
||||||
|
return unimplemented("sceAppUtilMusicMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilMusicUmount) {
|
||||||
|
return unimplemented("sceAppUtilMusicUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilPhotoMount) {
|
||||||
|
return unimplemented("sceAppUtilPhotoMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilPhotoUmount) {
|
||||||
|
return unimplemented("sceAppUtilPhotoUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilPspSaveDataGetDirNameList) {
|
||||||
|
return unimplemented("sceAppUtilPspSaveDataGetDirNameList");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilPspSaveDataLoad) {
|
||||||
|
return unimplemented("sceAppUtilPspSaveDataLoad");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilReceiveAppEvent) {
|
||||||
|
return unimplemented("sceAppUtilReceiveAppEvent");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilResetCookieWebBrowser) {
|
||||||
|
return unimplemented("sceAppUtilResetCookieWebBrowser");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSaveDataDataRemove) {
|
||||||
|
return unimplemented("sceAppUtilSaveDataDataRemove");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSaveDataDataSave) {
|
||||||
|
return unimplemented("sceAppUtilSaveDataDataSave");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSaveDataGetQuota) {
|
||||||
|
return unimplemented("sceAppUtilSaveDataGetQuota");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSaveDataMount) {
|
||||||
|
return unimplemented("sceAppUtilSaveDataMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSaveDataSlotCreate) {
|
||||||
|
return unimplemented("sceAppUtilSaveDataSlotCreate");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSaveDataSlotDelete) {
|
||||||
|
return unimplemented("sceAppUtilSaveDataSlotDelete");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSaveDataSlotGetParam) {
|
||||||
|
return unimplemented("sceAppUtilSaveDataSlotGetParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSaveDataSlotSearch) {
|
||||||
|
return unimplemented("sceAppUtilSaveDataSlotSearch");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSaveDataSlotSetParam) {
|
||||||
|
return unimplemented("sceAppUtilSaveDataSlotSetParam");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSaveDataUmount) {
|
||||||
|
return unimplemented("sceAppUtilSaveDataUmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSaveSafeMemory) {
|
||||||
|
return unimplemented("sceAppUtilSaveSafeMemory");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilShutdown) {
|
||||||
|
return unimplemented("sceAppUtilShutdown");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilStoreBrowse) {
|
||||||
|
return unimplemented("sceAppUtilStoreBrowse");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSystemParamGetInt) {
|
||||||
|
return unimplemented("sceAppUtilSystemParamGetInt");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilSystemParamGetString) {
|
||||||
|
return unimplemented("sceAppUtilSystemParamGetString");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(sceAppUtilAddCookieWebBrowser)
|
||||||
|
BRIDGE_IMPL(sceAppUtilAddcontMount)
|
||||||
|
BRIDGE_IMPL(sceAppUtilAddcontUmount)
|
||||||
|
BRIDGE_IMPL(sceAppUtilAppEventParseIncomingDialog)
|
||||||
|
BRIDGE_IMPL(sceAppUtilAppEventParseLiveArea)
|
||||||
|
BRIDGE_IMPL(sceAppUtilAppEventParseNearGift)
|
||||||
|
BRIDGE_IMPL(sceAppUtilAppEventParseNpAppDataMessage)
|
||||||
|
BRIDGE_IMPL(sceAppUtilAppEventParseNpBasicJoinablePresence)
|
||||||
|
BRIDGE_IMPL(sceAppUtilAppEventParseNpInviteMessage)
|
||||||
|
BRIDGE_IMPL(sceAppUtilAppEventParseScreenShotNotification)
|
||||||
|
BRIDGE_IMPL(sceAppUtilAppEventParseTriggerUtil)
|
||||||
|
BRIDGE_IMPL(sceAppUtilAppEventParseWebBrowser)
|
||||||
|
BRIDGE_IMPL(sceAppUtilAppParamGetInt)
|
||||||
|
BRIDGE_IMPL(sceAppUtilBgdlGetStatus)
|
||||||
|
BRIDGE_IMPL(sceAppUtilDrmClose)
|
||||||
|
BRIDGE_IMPL(sceAppUtilDrmOpen)
|
||||||
|
BRIDGE_IMPL(sceAppUtilInit)
|
||||||
|
BRIDGE_IMPL(sceAppUtilLaunchWebBrowser)
|
||||||
|
BRIDGE_IMPL(sceAppUtilLoadSafeMemory)
|
||||||
|
BRIDGE_IMPL(sceAppUtilMusicMount)
|
||||||
|
BRIDGE_IMPL(sceAppUtilMusicUmount)
|
||||||
|
BRIDGE_IMPL(sceAppUtilPhotoMount)
|
||||||
|
BRIDGE_IMPL(sceAppUtilPhotoUmount)
|
||||||
|
BRIDGE_IMPL(sceAppUtilPspSaveDataGetDirNameList)
|
||||||
|
BRIDGE_IMPL(sceAppUtilPspSaveDataLoad)
|
||||||
|
BRIDGE_IMPL(sceAppUtilReceiveAppEvent)
|
||||||
|
BRIDGE_IMPL(sceAppUtilResetCookieWebBrowser)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSaveDataDataRemove)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSaveDataDataSave)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSaveDataGetQuota)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSaveDataMount)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSaveDataSlotCreate)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSaveDataSlotDelete)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSaveDataSlotGetParam)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSaveDataSlotSearch)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSaveDataSlotSetParam)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSaveDataUmount)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSaveSafeMemory)
|
||||||
|
BRIDGE_IMPL(sceAppUtilShutdown)
|
||||||
|
BRIDGE_IMPL(sceAppUtilStoreBrowse)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSystemParamGetInt)
|
||||||
|
BRIDGE_IMPL(sceAppUtilSystemParamGetString)
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceAppUtil/exports.h>
|
||||||
|
|
||||||
|
EXPORT(int, sceAppUtilCacheMount) {
|
||||||
|
return unimplemented("sceAppUtilCacheMount");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(sceAppUtilCacheMount)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
add_library(SceAtrac STATIC include/SceAtrac/exports.h src/SceAtrac.cpp)
|
||||||
|
target_include_directories(SceAtrac PUBLIC include)
|
||||||
|
target_link_libraries(SceAtrac PRIVATE module)
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <module/module.h>
|
||||||
|
|
||||||
|
// SceAtrac
|
||||||
|
BRIDGE_DECL(sceAtracAddStreamData)
|
||||||
|
BRIDGE_DECL(sceAtracCreateDecoderGroup)
|
||||||
|
BRIDGE_DECL(sceAtracDecode)
|
||||||
|
BRIDGE_DECL(sceAtracDeleteDecoderGroup)
|
||||||
|
BRIDGE_DECL(sceAtracGetContentInfo)
|
||||||
|
BRIDGE_DECL(sceAtracGetDecoderGroupInfo)
|
||||||
|
BRIDGE_DECL(sceAtracGetDecoderStatus)
|
||||||
|
BRIDGE_DECL(sceAtracGetInternalError)
|
||||||
|
BRIDGE_DECL(sceAtracGetLoopInfo)
|
||||||
|
BRIDGE_DECL(sceAtracGetNextOutputPosition)
|
||||||
|
BRIDGE_DECL(sceAtracGetOutputSamples)
|
||||||
|
BRIDGE_DECL(sceAtracGetOutputableSamples)
|
||||||
|
BRIDGE_DECL(sceAtracGetRemainSamples)
|
||||||
|
BRIDGE_DECL(sceAtracGetStreamInfo)
|
||||||
|
BRIDGE_DECL(sceAtracGetSubBufferInfo)
|
||||||
|
BRIDGE_DECL(sceAtracGetVacantSize)
|
||||||
|
BRIDGE_DECL(sceAtracIsSubBufferNeeded)
|
||||||
|
BRIDGE_DECL(sceAtracQueryDecoderGroupMemSize)
|
||||||
|
BRIDGE_DECL(sceAtracReleaseHandle)
|
||||||
|
BRIDGE_DECL(sceAtracResetNextOutputPosition)
|
||||||
|
BRIDGE_DECL(sceAtracSetDataAndAcquireHandle)
|
||||||
|
BRIDGE_DECL(sceAtracSetLoopNum)
|
||||||
|
BRIDGE_DECL(sceAtracSetOutputSamples)
|
||||||
|
BRIDGE_DECL(sceAtracSetSubBuffer)
|
||||||
@@ -0,0 +1,139 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceAtrac/exports.h>
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracAddStreamData) {
|
||||||
|
return unimplemented("sceAtracAddStreamData");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracCreateDecoderGroup) {
|
||||||
|
return unimplemented("sceAtracCreateDecoderGroup");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracDecode) {
|
||||||
|
return unimplemented("sceAtracDecode");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracDeleteDecoderGroup) {
|
||||||
|
return unimplemented("sceAtracDeleteDecoderGroup");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracGetContentInfo) {
|
||||||
|
return unimplemented("sceAtracGetContentInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracGetDecoderGroupInfo) {
|
||||||
|
return unimplemented("sceAtracGetDecoderGroupInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracGetDecoderStatus) {
|
||||||
|
return unimplemented("sceAtracGetDecoderStatus");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracGetInternalError) {
|
||||||
|
return unimplemented("sceAtracGetInternalError");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracGetLoopInfo) {
|
||||||
|
return unimplemented("sceAtracGetLoopInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracGetNextOutputPosition) {
|
||||||
|
return unimplemented("sceAtracGetNextOutputPosition");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracGetOutputSamples) {
|
||||||
|
return unimplemented("sceAtracGetOutputSamples");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracGetOutputableSamples) {
|
||||||
|
return unimplemented("sceAtracGetOutputableSamples");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracGetRemainSamples) {
|
||||||
|
return unimplemented("sceAtracGetRemainSamples");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracGetStreamInfo) {
|
||||||
|
return unimplemented("sceAtracGetStreamInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracGetSubBufferInfo) {
|
||||||
|
return unimplemented("sceAtracGetSubBufferInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracGetVacantSize) {
|
||||||
|
return unimplemented("sceAtracGetVacantSize");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracIsSubBufferNeeded) {
|
||||||
|
return unimplemented("sceAtracIsSubBufferNeeded");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracQueryDecoderGroupMemSize) {
|
||||||
|
return unimplemented("sceAtracQueryDecoderGroupMemSize");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracReleaseHandle) {
|
||||||
|
return unimplemented("sceAtracReleaseHandle");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracResetNextOutputPosition) {
|
||||||
|
return unimplemented("sceAtracResetNextOutputPosition");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracSetDataAndAcquireHandle) {
|
||||||
|
return unimplemented("sceAtracSetDataAndAcquireHandle");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracSetLoopNum) {
|
||||||
|
return unimplemented("sceAtracSetLoopNum");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracSetOutputSamples) {
|
||||||
|
return unimplemented("sceAtracSetOutputSamples");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAtracSetSubBuffer) {
|
||||||
|
return unimplemented("sceAtracSetSubBuffer");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(sceAtracAddStreamData)
|
||||||
|
BRIDGE_IMPL(sceAtracCreateDecoderGroup)
|
||||||
|
BRIDGE_IMPL(sceAtracDecode)
|
||||||
|
BRIDGE_IMPL(sceAtracDeleteDecoderGroup)
|
||||||
|
BRIDGE_IMPL(sceAtracGetContentInfo)
|
||||||
|
BRIDGE_IMPL(sceAtracGetDecoderGroupInfo)
|
||||||
|
BRIDGE_IMPL(sceAtracGetDecoderStatus)
|
||||||
|
BRIDGE_IMPL(sceAtracGetInternalError)
|
||||||
|
BRIDGE_IMPL(sceAtracGetLoopInfo)
|
||||||
|
BRIDGE_IMPL(sceAtracGetNextOutputPosition)
|
||||||
|
BRIDGE_IMPL(sceAtracGetOutputSamples)
|
||||||
|
BRIDGE_IMPL(sceAtracGetOutputableSamples)
|
||||||
|
BRIDGE_IMPL(sceAtracGetRemainSamples)
|
||||||
|
BRIDGE_IMPL(sceAtracGetStreamInfo)
|
||||||
|
BRIDGE_IMPL(sceAtracGetSubBufferInfo)
|
||||||
|
BRIDGE_IMPL(sceAtracGetVacantSize)
|
||||||
|
BRIDGE_IMPL(sceAtracIsSubBufferNeeded)
|
||||||
|
BRIDGE_IMPL(sceAtracQueryDecoderGroupMemSize)
|
||||||
|
BRIDGE_IMPL(sceAtracReleaseHandle)
|
||||||
|
BRIDGE_IMPL(sceAtracResetNextOutputPosition)
|
||||||
|
BRIDGE_IMPL(sceAtracSetDataAndAcquireHandle)
|
||||||
|
BRIDGE_IMPL(sceAtracSetLoopNum)
|
||||||
|
BRIDGE_IMPL(sceAtracSetOutputSamples)
|
||||||
|
BRIDGE_IMPL(sceAtracSetSubBuffer)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
add_library(SceAudio STATIC include/SceAudio/exports.h src/SceAudio.cpp)
|
||||||
|
target_include_directories(SceAudio PUBLIC include)
|
||||||
|
target_link_libraries(SceAudio PRIVATE module)
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <module/module.h>
|
||||||
|
|
||||||
|
// SceAudio
|
||||||
|
BRIDGE_DECL(sceAudioOutGetAdopt)
|
||||||
|
BRIDGE_DECL(sceAudioOutGetConfig)
|
||||||
|
BRIDGE_DECL(sceAudioOutGetRestSample)
|
||||||
|
BRIDGE_DECL(sceAudioOutOpenPort)
|
||||||
|
BRIDGE_DECL(sceAudioOutOutput)
|
||||||
|
BRIDGE_DECL(sceAudioOutReleasePort)
|
||||||
|
BRIDGE_DECL(sceAudioOutSetAlcMode)
|
||||||
|
BRIDGE_DECL(sceAudioOutSetConfig)
|
||||||
|
BRIDGE_DECL(sceAudioOutSetVolume)
|
||||||
@@ -0,0 +1,112 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceAudio/exports.h>
|
||||||
|
|
||||||
|
#include <util/lock_and_find.h>
|
||||||
|
|
||||||
|
#include <psp2/audioout.h>
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioOutGetAdopt) {
|
||||||
|
return unimplemented("sceAudioOutGetAdopt");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioOutGetConfig) {
|
||||||
|
return unimplemented("sceAudioOutGetConfig");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioOutGetRestSample) {
|
||||||
|
return unimplemented("sceAudioOutGetRestSample");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioOutOpenPort, SceAudioOutPortType type, int len, int freq, SceAudioOutMode mode) {
|
||||||
|
assert(type == SCE_AUDIO_OUT_PORT_TYPE_MAIN);
|
||||||
|
assert(len > 0);
|
||||||
|
assert(freq == 48000);
|
||||||
|
assert((mode == SCE_AUDIO_OUT_MODE_MONO) || (mode == SCE_AUDIO_OUT_MODE_STEREO));
|
||||||
|
|
||||||
|
const int channels = (mode == SCE_AUDIO_OUT_MODE_MONO) ? 1 : 2;
|
||||||
|
const AudioStreamPtr stream(SDL_NewAudioStream(AUDIO_S16LSB, channels, freq, host.audio.ro.spec.format, host.audio.ro.spec.channels, host.audio.ro.spec.freq), SDL_FreeAudioStream);
|
||||||
|
if (!stream) {
|
||||||
|
return SCE_AUDIO_OUT_ERROR_NOT_OPENED;
|
||||||
|
}
|
||||||
|
|
||||||
|
const AudioOutPortPtr port = std::make_shared<AudioOutPort>();
|
||||||
|
port->ro.len_bytes = len * channels * sizeof(int16_t);
|
||||||
|
port->callback.stream = stream;
|
||||||
|
|
||||||
|
const std::unique_lock<std::mutex> lock(host.audio.shared.mutex);
|
||||||
|
const int port_id = host.audio.shared.next_port_id++;
|
||||||
|
host.audio.shared.out_ports.emplace(port_id, port);
|
||||||
|
|
||||||
|
return port_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioOutOutput, int port, const void *buf) {
|
||||||
|
const AudioOutPortPtr prt = lock_and_find(port, host.audio.shared.out_ports, host.audio.shared.mutex);
|
||||||
|
if (!prt) {
|
||||||
|
return SCE_AUDIO_OUT_ERROR_INVALID_PORT;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ThreadStatePtr thread = lock_and_find(thread_id, host.kernel.threads, host.kernel.mutex);
|
||||||
|
if (!thread) {
|
||||||
|
return SCE_AUDIO_OUT_ERROR_INVALID_PORT;
|
||||||
|
}
|
||||||
|
|
||||||
|
const std::unique_lock<std::mutex> lock(thread->mutex);
|
||||||
|
assert(thread->to_do == ThreadToDo::run);
|
||||||
|
thread->to_do = ThreadToDo::wait;
|
||||||
|
stop(*thread->cpu);
|
||||||
|
|
||||||
|
AudioOutput output;
|
||||||
|
output.buf = static_cast<const uint8_t *>(buf);
|
||||||
|
output.len_bytes = prt->ro.len_bytes;
|
||||||
|
output.thread = thread_id;
|
||||||
|
|
||||||
|
{
|
||||||
|
const std::unique_lock<std::mutex> lock(prt->shared.mutex);
|
||||||
|
prt->shared.outputs.push(output);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioOutReleasePort) {
|
||||||
|
return unimplemented("sceAudioOutReleasePort");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioOutSetAlcMode) {
|
||||||
|
return unimplemented("sceAudioOutSetAlcMode");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioOutSetConfig) {
|
||||||
|
return unimplemented("sceAudioOutSetConfig");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioOutSetVolume) {
|
||||||
|
return unimplemented("sceAudioOutSetVolume");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(sceAudioOutGetAdopt)
|
||||||
|
BRIDGE_IMPL(sceAudioOutGetConfig)
|
||||||
|
BRIDGE_IMPL(sceAudioOutGetRestSample)
|
||||||
|
BRIDGE_IMPL(sceAudioOutOpenPort)
|
||||||
|
BRIDGE_IMPL(sceAudioOutOutput)
|
||||||
|
BRIDGE_IMPL(sceAudioOutReleasePort)
|
||||||
|
BRIDGE_IMPL(sceAudioOutSetAlcMode)
|
||||||
|
BRIDGE_IMPL(sceAudioOutSetConfig)
|
||||||
|
BRIDGE_IMPL(sceAudioOutSetVolume)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
add_library(SceAudioIn STATIC include/SceAudioIn/exports.h src/SceAudioIn.cpp)
|
||||||
|
target_include_directories(SceAudioIn PUBLIC include)
|
||||||
|
target_link_libraries(SceAudioIn PRIVATE module)
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <module/module.h>
|
||||||
|
|
||||||
|
// SceAudioIn
|
||||||
|
BRIDGE_DECL(sceAudioInGetAdopt)
|
||||||
|
BRIDGE_DECL(sceAudioInGetStatus)
|
||||||
|
BRIDGE_DECL(sceAudioInInput)
|
||||||
|
BRIDGE_DECL(sceAudioInOpenPort)
|
||||||
|
BRIDGE_DECL(sceAudioInReleasePort)
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceAudioIn/exports.h>
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioInGetAdopt) {
|
||||||
|
return unimplemented("sceAudioInGetAdopt");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioInGetStatus) {
|
||||||
|
return unimplemented("sceAudioInGetStatus");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioInInput) {
|
||||||
|
return unimplemented("sceAudioInInput");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioInOpenPort) {
|
||||||
|
return unimplemented("sceAudioInOpenPort");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioInReleasePort) {
|
||||||
|
return unimplemented("sceAudioInReleasePort");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(sceAudioInGetAdopt)
|
||||||
|
BRIDGE_IMPL(sceAudioInGetStatus)
|
||||||
|
BRIDGE_IMPL(sceAudioInInput)
|
||||||
|
BRIDGE_IMPL(sceAudioInOpenPort)
|
||||||
|
BRIDGE_IMPL(sceAudioInReleasePort)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
add_library(SceAudiodec STATIC include/SceAudiodec/exports.h src/SceAudiodecUser.cpp)
|
||||||
|
target_include_directories(SceAudiodec PUBLIC include)
|
||||||
|
target_link_libraries(SceAudiodec PRIVATE module)
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <module/module.h>
|
||||||
|
|
||||||
|
// SceAudiodecUser
|
||||||
|
BRIDGE_DECL(sceAudiodecClearContext)
|
||||||
|
BRIDGE_DECL(sceAudiodecCreateDecoder)
|
||||||
|
BRIDGE_DECL(sceAudiodecCreateDecoderExternal)
|
||||||
|
BRIDGE_DECL(sceAudiodecDecode)
|
||||||
|
BRIDGE_DECL(sceAudiodecDecodeNFrames)
|
||||||
|
BRIDGE_DECL(sceAudiodecDecodeNStreams)
|
||||||
|
BRIDGE_DECL(sceAudiodecDeleteDecoder)
|
||||||
|
BRIDGE_DECL(sceAudiodecDeleteDecoderExternal)
|
||||||
|
BRIDGE_DECL(sceAudiodecGetContextSize)
|
||||||
|
BRIDGE_DECL(sceAudiodecGetInternalError)
|
||||||
|
BRIDGE_DECL(sceAudiodecInitLibrary)
|
||||||
|
BRIDGE_DECL(sceAudiodecTermLibrary)
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceAudiodec/exports.h>
|
||||||
|
|
||||||
|
EXPORT(int, sceAudiodecClearContext) {
|
||||||
|
return unimplemented("sceAudiodecClearContext");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudiodecCreateDecoder) {
|
||||||
|
return unimplemented("sceAudiodecCreateDecoder");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudiodecCreateDecoderExternal) {
|
||||||
|
return unimplemented("sceAudiodecCreateDecoderExternal");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudiodecDecode) {
|
||||||
|
return unimplemented("sceAudiodecDecode");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudiodecDecodeNFrames) {
|
||||||
|
return unimplemented("sceAudiodecDecodeNFrames");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudiodecDecodeNStreams) {
|
||||||
|
return unimplemented("sceAudiodecDecodeNStreams");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudiodecDeleteDecoder) {
|
||||||
|
return unimplemented("sceAudiodecDeleteDecoder");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudiodecDeleteDecoderExternal) {
|
||||||
|
return unimplemented("sceAudiodecDeleteDecoderExternal");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudiodecGetContextSize) {
|
||||||
|
return unimplemented("sceAudiodecGetContextSize");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudiodecGetInternalError) {
|
||||||
|
return unimplemented("sceAudiodecGetInternalError");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudiodecInitLibrary) {
|
||||||
|
return unimplemented("sceAudiodecInitLibrary");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudiodecTermLibrary) {
|
||||||
|
return unimplemented("sceAudiodecTermLibrary");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(sceAudiodecClearContext)
|
||||||
|
BRIDGE_IMPL(sceAudiodecCreateDecoder)
|
||||||
|
BRIDGE_IMPL(sceAudiodecCreateDecoderExternal)
|
||||||
|
BRIDGE_IMPL(sceAudiodecDecode)
|
||||||
|
BRIDGE_IMPL(sceAudiodecDecodeNFrames)
|
||||||
|
BRIDGE_IMPL(sceAudiodecDecodeNStreams)
|
||||||
|
BRIDGE_IMPL(sceAudiodecDeleteDecoder)
|
||||||
|
BRIDGE_IMPL(sceAudiodecDeleteDecoderExternal)
|
||||||
|
BRIDGE_IMPL(sceAudiodecGetContextSize)
|
||||||
|
BRIDGE_IMPL(sceAudiodecGetInternalError)
|
||||||
|
BRIDGE_IMPL(sceAudiodecInitLibrary)
|
||||||
|
BRIDGE_IMPL(sceAudiodecTermLibrary)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
add_library(SceAudioenc STATIC include/SceAudioenc/exports.h src/SceAudioencUser.cpp)
|
||||||
|
target_include_directories(SceAudioenc PUBLIC include)
|
||||||
|
target_link_libraries(SceAudioenc PRIVATE module)
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <module/module.h>
|
||||||
|
|
||||||
|
// SceAudioencUser
|
||||||
|
BRIDGE_DECL(sceAudioencClearContext)
|
||||||
|
BRIDGE_DECL(sceAudioencCreateEncoder)
|
||||||
|
BRIDGE_DECL(sceAudioencCreateEncoderExternal)
|
||||||
|
BRIDGE_DECL(sceAudioencDeleteEncoder)
|
||||||
|
BRIDGE_DECL(sceAudioencDeleteEncoderExternal)
|
||||||
|
BRIDGE_DECL(sceAudioencEncode)
|
||||||
|
BRIDGE_DECL(sceAudioencGetContextSize)
|
||||||
|
BRIDGE_DECL(sceAudioencGetInternalError)
|
||||||
|
BRIDGE_DECL(sceAudioencGetOptInfo)
|
||||||
|
BRIDGE_DECL(sceAudioencInitLibrary)
|
||||||
|
BRIDGE_DECL(sceAudioencTermLibrary)
|
||||||
@@ -0,0 +1,74 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceAudioenc/exports.h>
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioencClearContext) {
|
||||||
|
return unimplemented("sceAudioencClearContext");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioencCreateEncoder) {
|
||||||
|
return unimplemented("sceAudioencCreateEncoder");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioencCreateEncoderExternal) {
|
||||||
|
return unimplemented("sceAudioencCreateEncoderExternal");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioencDeleteEncoder) {
|
||||||
|
return unimplemented("sceAudioencDeleteEncoder");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioencDeleteEncoderExternal) {
|
||||||
|
return unimplemented("sceAudioencDeleteEncoderExternal");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioencEncode) {
|
||||||
|
return unimplemented("sceAudioencEncode");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioencGetContextSize) {
|
||||||
|
return unimplemented("sceAudioencGetContextSize");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioencGetInternalError) {
|
||||||
|
return unimplemented("sceAudioencGetInternalError");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioencGetOptInfo) {
|
||||||
|
return unimplemented("sceAudioencGetOptInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioencInitLibrary) {
|
||||||
|
return unimplemented("sceAudioencInitLibrary");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAudioencTermLibrary) {
|
||||||
|
return unimplemented("sceAudioencTermLibrary");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(sceAudioencClearContext)
|
||||||
|
BRIDGE_IMPL(sceAudioencCreateEncoder)
|
||||||
|
BRIDGE_IMPL(sceAudioencCreateEncoderExternal)
|
||||||
|
BRIDGE_IMPL(sceAudioencDeleteEncoder)
|
||||||
|
BRIDGE_IMPL(sceAudioencDeleteEncoderExternal)
|
||||||
|
BRIDGE_IMPL(sceAudioencEncode)
|
||||||
|
BRIDGE_IMPL(sceAudioencGetContextSize)
|
||||||
|
BRIDGE_IMPL(sceAudioencGetInternalError)
|
||||||
|
BRIDGE_IMPL(sceAudioencGetOptInfo)
|
||||||
|
BRIDGE_IMPL(sceAudioencInitLibrary)
|
||||||
|
BRIDGE_IMPL(sceAudioencTermLibrary)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
add_library(SceAvPlayer STATIC include/SceAvPlayer/exports.h src/SceAvPlayer.cpp)
|
||||||
|
target_include_directories(SceAvPlayer PUBLIC include)
|
||||||
|
target_link_libraries(SceAvPlayer PRIVATE module)
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <module/module.h>
|
||||||
|
|
||||||
|
// SceAvPlayer
|
||||||
|
BRIDGE_DECL(sceAvPlayerAddSource)
|
||||||
|
BRIDGE_DECL(sceAvPlayerClose)
|
||||||
|
BRIDGE_DECL(sceAvPlayerCurrentTime)
|
||||||
|
BRIDGE_DECL(sceAvPlayerDisableStream)
|
||||||
|
BRIDGE_DECL(sceAvPlayerEnableStream)
|
||||||
|
BRIDGE_DECL(sceAvPlayerGetAudioData)
|
||||||
|
BRIDGE_DECL(sceAvPlayerGetStreamInfo)
|
||||||
|
BRIDGE_DECL(sceAvPlayerGetVideoData)
|
||||||
|
BRIDGE_DECL(sceAvPlayerGetVideoDataEx)
|
||||||
|
BRIDGE_DECL(sceAvPlayerInit)
|
||||||
|
BRIDGE_DECL(sceAvPlayerIsActive)
|
||||||
|
BRIDGE_DECL(sceAvPlayerJumpToTime)
|
||||||
|
BRIDGE_DECL(sceAvPlayerPause)
|
||||||
|
BRIDGE_DECL(sceAvPlayerPostInit)
|
||||||
|
BRIDGE_DECL(sceAvPlayerResume)
|
||||||
|
BRIDGE_DECL(sceAvPlayerSetLooping)
|
||||||
|
BRIDGE_DECL(sceAvPlayerSetTrickSpeed)
|
||||||
|
BRIDGE_DECL(sceAvPlayerStart)
|
||||||
|
BRIDGE_DECL(sceAvPlayerStop)
|
||||||
|
BRIDGE_DECL(sceAvPlayerStreamCount)
|
||||||
@@ -0,0 +1,119 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceAvPlayer/exports.h>
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerAddSource) {
|
||||||
|
return unimplemented("sceAvPlayerAddSource");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerClose) {
|
||||||
|
return unimplemented("sceAvPlayerClose");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerCurrentTime) {
|
||||||
|
return unimplemented("sceAvPlayerCurrentTime");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerDisableStream) {
|
||||||
|
return unimplemented("sceAvPlayerDisableStream");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerEnableStream) {
|
||||||
|
return unimplemented("sceAvPlayerEnableStream");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerGetAudioData) {
|
||||||
|
return unimplemented("sceAvPlayerGetAudioData");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerGetStreamInfo) {
|
||||||
|
return unimplemented("sceAvPlayerGetStreamInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerGetVideoData) {
|
||||||
|
return unimplemented("sceAvPlayerGetVideoData");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerGetVideoDataEx) {
|
||||||
|
return unimplemented("sceAvPlayerGetVideoDataEx");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerInit) {
|
||||||
|
return unimplemented("sceAvPlayerInit");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerIsActive) {
|
||||||
|
return unimplemented("sceAvPlayerIsActive");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerJumpToTime) {
|
||||||
|
return unimplemented("sceAvPlayerJumpToTime");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerPause) {
|
||||||
|
return unimplemented("sceAvPlayerPause");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerPostInit) {
|
||||||
|
return unimplemented("sceAvPlayerPostInit");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerResume) {
|
||||||
|
return unimplemented("sceAvPlayerResume");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerSetLooping) {
|
||||||
|
return unimplemented("sceAvPlayerSetLooping");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerSetTrickSpeed) {
|
||||||
|
return unimplemented("sceAvPlayerSetTrickSpeed");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerStart) {
|
||||||
|
return unimplemented("sceAvPlayerStart");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerStop) {
|
||||||
|
return unimplemented("sceAvPlayerStop");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceAvPlayerStreamCount) {
|
||||||
|
return unimplemented("sceAvPlayerStreamCount");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(sceAvPlayerAddSource)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerClose)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerCurrentTime)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerDisableStream)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerEnableStream)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerGetAudioData)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerGetStreamInfo)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerGetVideoData)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerGetVideoDataEx)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerInit)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerIsActive)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerJumpToTime)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerPause)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerPostInit)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerResume)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerSetLooping)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerSetTrickSpeed)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerStart)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerStop)
|
||||||
|
BRIDGE_IMPL(sceAvPlayerStreamCount)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
add_library(SceBt STATIC include/SceBt/exports.h src/SceBt.cpp)
|
||||||
|
target_include_directories(SceBt PUBLIC include)
|
||||||
|
target_link_libraries(SceBt PRIVATE module)
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <module/module.h>
|
||||||
|
|
||||||
|
// SceBt
|
||||||
|
BRIDGE_DECL(sceBtAvrcpReadVolume)
|
||||||
|
BRIDGE_DECL(sceBtAvrcpSendButton)
|
||||||
|
BRIDGE_DECL(sceBtAvrcpSendVolume)
|
||||||
|
BRIDGE_DECL(sceBtAvrcpSetPlayStatus)
|
||||||
|
BRIDGE_DECL(sceBtAvrcpSetTitle)
|
||||||
|
BRIDGE_DECL(sceBtDeleteRegisteredInfo)
|
||||||
|
BRIDGE_DECL(sceBtFreqAudio)
|
||||||
|
BRIDGE_DECL(sceBtGetConfiguration)
|
||||||
|
BRIDGE_DECL(sceBtGetConnectingInfo)
|
||||||
|
BRIDGE_DECL(sceBtGetDeviceName)
|
||||||
|
BRIDGE_DECL(sceBtGetInfoForTest)
|
||||||
|
BRIDGE_DECL(sceBtGetLastError)
|
||||||
|
BRIDGE_DECL(sceBtGetRegisteredInfo)
|
||||||
|
BRIDGE_DECL(sceBtGetStatusForTest)
|
||||||
|
BRIDGE_DECL(sceBtGetVidPid)
|
||||||
|
BRIDGE_DECL(sceBtHfpGetCurrentPhoneNumber)
|
||||||
|
BRIDGE_DECL(sceBtHfpRequest)
|
||||||
|
BRIDGE_DECL(sceBtHidGetReportDescriptor)
|
||||||
|
BRIDGE_DECL(sceBtHidTransfer)
|
||||||
|
BRIDGE_DECL(sceBtPairingOOB)
|
||||||
|
BRIDGE_DECL(sceBtPushBip)
|
||||||
|
BRIDGE_DECL(sceBtPushOpp)
|
||||||
|
BRIDGE_DECL(sceBtReadEvent)
|
||||||
|
BRIDGE_DECL(sceBtRecvAudio)
|
||||||
|
BRIDGE_DECL(sceBtRecvBip)
|
||||||
|
BRIDGE_DECL(sceBtRecvOpp)
|
||||||
|
BRIDGE_DECL(sceBtRecvSpp)
|
||||||
|
BRIDGE_DECL(sceBtRegisterCallback)
|
||||||
|
BRIDGE_DECL(sceBtReplyPinCode)
|
||||||
|
BRIDGE_DECL(sceBtReplyUserConfirmation)
|
||||||
|
BRIDGE_DECL(sceBtSendAudio)
|
||||||
|
BRIDGE_DECL(sceBtSendL2capEchoRequestForTest)
|
||||||
|
BRIDGE_DECL(sceBtSendSpp)
|
||||||
|
BRIDGE_DECL(sceBtSetConfiguration)
|
||||||
|
BRIDGE_DECL(sceBtSetContentProtection)
|
||||||
|
BRIDGE_DECL(sceBtSetInquiryResultForTest)
|
||||||
|
BRIDGE_DECL(sceBtSetInquiryScan)
|
||||||
|
BRIDGE_DECL(sceBtSetL2capEchoResponseBufferForTest)
|
||||||
|
BRIDGE_DECL(sceBtSetStatusForTest)
|
||||||
|
BRIDGE_DECL(sceBtStartAudio)
|
||||||
|
BRIDGE_DECL(sceBtStartConnect)
|
||||||
|
BRIDGE_DECL(sceBtStartDisconnect)
|
||||||
|
BRIDGE_DECL(sceBtStartInquiry)
|
||||||
|
BRIDGE_DECL(sceBtStopAudio)
|
||||||
|
BRIDGE_DECL(sceBtStopInquiry)
|
||||||
|
BRIDGE_DECL(sceBtUnregisterCallback)
|
||||||
@@ -0,0 +1,249 @@
|
|||||||
|
// Vita3K emulator project
|
||||||
|
// Copyright (C) 2018 Vita3K team
|
||||||
|
//
|
||||||
|
// 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; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along
|
||||||
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
#include <SceBt/exports.h>
|
||||||
|
|
||||||
|
EXPORT(int, sceBtAvrcpReadVolume) {
|
||||||
|
return unimplemented("sceBtAvrcpReadVolume");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtAvrcpSendButton) {
|
||||||
|
return unimplemented("sceBtAvrcpSendButton");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtAvrcpSendVolume) {
|
||||||
|
return unimplemented("sceBtAvrcpSendVolume");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtAvrcpSetPlayStatus) {
|
||||||
|
return unimplemented("sceBtAvrcpSetPlayStatus");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtAvrcpSetTitle) {
|
||||||
|
return unimplemented("sceBtAvrcpSetTitle");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtDeleteRegisteredInfo) {
|
||||||
|
return unimplemented("sceBtDeleteRegisteredInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtFreqAudio) {
|
||||||
|
return unimplemented("sceBtFreqAudio");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtGetConfiguration) {
|
||||||
|
return unimplemented("sceBtGetConfiguration");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtGetConnectingInfo) {
|
||||||
|
return unimplemented("sceBtGetConnectingInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtGetDeviceName) {
|
||||||
|
return unimplemented("sceBtGetDeviceName");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtGetInfoForTest) {
|
||||||
|
return unimplemented("sceBtGetInfoForTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtGetLastError) {
|
||||||
|
return unimplemented("sceBtGetLastError");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtGetRegisteredInfo) {
|
||||||
|
return unimplemented("sceBtGetRegisteredInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtGetStatusForTest) {
|
||||||
|
return unimplemented("sceBtGetStatusForTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtGetVidPid) {
|
||||||
|
return unimplemented("sceBtGetVidPid");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtHfpGetCurrentPhoneNumber) {
|
||||||
|
return unimplemented("sceBtHfpGetCurrentPhoneNumber");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtHfpRequest) {
|
||||||
|
return unimplemented("sceBtHfpRequest");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtHidGetReportDescriptor) {
|
||||||
|
return unimplemented("sceBtHidGetReportDescriptor");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtHidTransfer) {
|
||||||
|
return unimplemented("sceBtHidTransfer");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtPairingOOB) {
|
||||||
|
return unimplemented("sceBtPairingOOB");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtPushBip) {
|
||||||
|
return unimplemented("sceBtPushBip");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtPushOpp) {
|
||||||
|
return unimplemented("sceBtPushOpp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtReadEvent) {
|
||||||
|
return unimplemented("sceBtReadEvent");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtRecvAudio) {
|
||||||
|
return unimplemented("sceBtRecvAudio");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtRecvBip) {
|
||||||
|
return unimplemented("sceBtRecvBip");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtRecvOpp) {
|
||||||
|
return unimplemented("sceBtRecvOpp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtRecvSpp) {
|
||||||
|
return unimplemented("sceBtRecvSpp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtRegisterCallback) {
|
||||||
|
return unimplemented("sceBtRegisterCallback");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtReplyPinCode) {
|
||||||
|
return unimplemented("sceBtReplyPinCode");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtReplyUserConfirmation) {
|
||||||
|
return unimplemented("sceBtReplyUserConfirmation");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtSendAudio) {
|
||||||
|
return unimplemented("sceBtSendAudio");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtSendL2capEchoRequestForTest) {
|
||||||
|
return unimplemented("sceBtSendL2capEchoRequestForTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtSendSpp) {
|
||||||
|
return unimplemented("sceBtSendSpp");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtSetConfiguration) {
|
||||||
|
return unimplemented("sceBtSetConfiguration");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtSetContentProtection) {
|
||||||
|
return unimplemented("sceBtSetContentProtection");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtSetInquiryResultForTest) {
|
||||||
|
return unimplemented("sceBtSetInquiryResultForTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtSetInquiryScan) {
|
||||||
|
return unimplemented("sceBtSetInquiryScan");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtSetL2capEchoResponseBufferForTest) {
|
||||||
|
return unimplemented("sceBtSetL2capEchoResponseBufferForTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtSetStatusForTest) {
|
||||||
|
return unimplemented("sceBtSetStatusForTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtStartAudio) {
|
||||||
|
return unimplemented("sceBtStartAudio");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtStartConnect) {
|
||||||
|
return unimplemented("sceBtStartConnect");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtStartDisconnect) {
|
||||||
|
return unimplemented("sceBtStartDisconnect");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtStartInquiry) {
|
||||||
|
return unimplemented("sceBtStartInquiry");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtStopAudio) {
|
||||||
|
return unimplemented("sceBtStopAudio");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtStopInquiry) {
|
||||||
|
return unimplemented("sceBtStopInquiry");
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT(int, sceBtUnregisterCallback) {
|
||||||
|
return unimplemented("sceBtUnregisterCallback");
|
||||||
|
}
|
||||||
|
|
||||||
|
BRIDGE_IMPL(sceBtAvrcpReadVolume)
|
||||||
|
BRIDGE_IMPL(sceBtAvrcpSendButton)
|
||||||
|
BRIDGE_IMPL(sceBtAvrcpSendVolume)
|
||||||
|
BRIDGE_IMPL(sceBtAvrcpSetPlayStatus)
|
||||||
|
BRIDGE_IMPL(sceBtAvrcpSetTitle)
|
||||||
|
BRIDGE_IMPL(sceBtDeleteRegisteredInfo)
|
||||||
|
BRIDGE_IMPL(sceBtFreqAudio)
|
||||||
|
BRIDGE_IMPL(sceBtGetConfiguration)
|
||||||
|
BRIDGE_IMPL(sceBtGetConnectingInfo)
|
||||||
|
BRIDGE_IMPL(sceBtGetDeviceName)
|
||||||
|
BRIDGE_IMPL(sceBtGetInfoForTest)
|
||||||
|
BRIDGE_IMPL(sceBtGetLastError)
|
||||||
|
BRIDGE_IMPL(sceBtGetRegisteredInfo)
|
||||||
|
BRIDGE_IMPL(sceBtGetStatusForTest)
|
||||||
|
BRIDGE_IMPL(sceBtGetVidPid)
|
||||||
|
BRIDGE_IMPL(sceBtHfpGetCurrentPhoneNumber)
|
||||||
|
BRIDGE_IMPL(sceBtHfpRequest)
|
||||||
|
BRIDGE_IMPL(sceBtHidGetReportDescriptor)
|
||||||
|
BRIDGE_IMPL(sceBtHidTransfer)
|
||||||
|
BRIDGE_IMPL(sceBtPairingOOB)
|
||||||
|
BRIDGE_IMPL(sceBtPushBip)
|
||||||
|
BRIDGE_IMPL(sceBtPushOpp)
|
||||||
|
BRIDGE_IMPL(sceBtReadEvent)
|
||||||
|
BRIDGE_IMPL(sceBtRecvAudio)
|
||||||
|
BRIDGE_IMPL(sceBtRecvBip)
|
||||||
|
BRIDGE_IMPL(sceBtRecvOpp)
|
||||||
|
BRIDGE_IMPL(sceBtRecvSpp)
|
||||||
|
BRIDGE_IMPL(sceBtRegisterCallback)
|
||||||
|
BRIDGE_IMPL(sceBtReplyPinCode)
|
||||||
|
BRIDGE_IMPL(sceBtReplyUserConfirmation)
|
||||||
|
BRIDGE_IMPL(sceBtSendAudio)
|
||||||
|
BRIDGE_IMPL(sceBtSendL2capEchoRequestForTest)
|
||||||
|
BRIDGE_IMPL(sceBtSendSpp)
|
||||||
|
BRIDGE_IMPL(sceBtSetConfiguration)
|
||||||
|
BRIDGE_IMPL(sceBtSetContentProtection)
|
||||||
|
BRIDGE_IMPL(sceBtSetInquiryResultForTest)
|
||||||
|
BRIDGE_IMPL(sceBtSetInquiryScan)
|
||||||
|
BRIDGE_IMPL(sceBtSetL2capEchoResponseBufferForTest)
|
||||||
|
BRIDGE_IMPL(sceBtSetStatusForTest)
|
||||||
|
BRIDGE_IMPL(sceBtStartAudio)
|
||||||
|
BRIDGE_IMPL(sceBtStartConnect)
|
||||||
|
BRIDGE_IMPL(sceBtStartDisconnect)
|
||||||
|
BRIDGE_IMPL(sceBtStartInquiry)
|
||||||
|
BRIDGE_IMPL(sceBtStopAudio)
|
||||||
|
BRIDGE_IMPL(sceBtStopInquiry)
|
||||||
|
BRIDGE_IMPL(sceBtUnregisterCallback)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
add_library(SceCamera STATIC include/SceCamera/exports.h src/SceCamera.cpp)
|
||||||
|
target_include_directories(SceCamera PUBLIC include)
|
||||||
|
target_link_libraries(SceCamera PRIVATE module)
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user