Commit Graph

279 Commits

Author SHA1 Message Date
CPkmn
5729523d9c ISOFileSystem support for umd0:umd0
Allows Bleach: Soul Carnival 2 to find what it's looking for in its boot process (umd0:umd0). The game is still stuck in a blackscreen, but the boot process seems better than before (judging from the logs).

Prior to requesting umd0:umd0 the log is interesting. This is the second game I've seen waiting within a callback, and having something other than hleDelayResultFinish waking up an HLE-blocked thread.
2013-08-02 04:28:01 -07:00
Unknown W. Brackets
ae993b67e3 Properly return sector info in virtfs. 2013-07-30 01:19:47 -07:00
Henrik Rydgård
27d1f81805 Merge pull request #2971 from unknownbrackets/virtfs
Fix VirtualDiscFileSystem handlers on Linux/Mac
2013-07-29 09:30:58 -07:00
Unknown W. Brackets
0ff6aefee3 Add some names so no one is confused. 2013-07-28 22:03:34 -07:00
Unknown W. Brackets
649c2bff73 Add virtfs handler support on Mac/Linux. 2013-07-28 22:02:27 -07:00
Unknown W. Brackets
8505d255fc Fix Linux parsing of .ppsspp-index.lst file. 2013-07-28 22:02:27 -07:00
Unknown W. Brackets
7b7801d59a Switch to including Windows.h from an intermediate.
This makes it easier for Xbox which uses a separate header.
2013-07-28 21:04:19 -07:00
Unknown W. Brackets
32de51fdf7 Use u32_be where appropriate as well. 2013-07-28 21:04:19 -07:00
Sacha
c91c07c89d Buildfix. 2013-07-29 11:37:51 +10:00
Unknown W. Brackets
55ed8d648b Add a param to log filenames in virtfs handlers. 2013-07-28 13:09:00 -07:00
Unknown W. Brackets
5c0796ed57 Switch to .lst instead of .ini. 2013-07-28 12:50:02 -07:00
Unknown W. Brackets
bd7c57c944 Implement a stub for handlers in GetFileInfo(). 2013-07-28 12:38:56 -07:00
Kingcom
a56e3a1a99 Oops, typo. 2013-07-28 12:38:56 -07:00
Unknown W. Brackets
1e32599f2d Implement virtfs file handlers. 2013-07-28 12:38:53 -07:00
Unknown W. Brackets
150a5c8f70 Add basic infrastructure for file handler plugins.
The purpose of this is for games which use archive file formats
(containing many individual files), so that assets, files, etc. can be
worked on more rapidly.
2013-07-28 12:36:16 -07:00
Kingcom
66f19b9cca Fix issues 2013-07-28 12:34:25 -07:00
Unknown W. Brackets
f6859d21cc Add .ppsspp-index.ini for virtfs dirs, for LBAs.
This way games that hardcode lbns in a file or elf can still be used.
2013-07-28 12:33:23 -07:00
Unknown W. Brackets
a01d84ac30 List directories in virtfs too.
Well, basically the same as directory, just skipping `.` and `..`...
2013-07-28 12:33:22 -07:00
Unknown W. Brackets
a2763a298e Minor simplification to virtfs savestate. 2013-07-28 12:33:18 -07:00
Unknown W. Brackets
256394b2bf Move VirtualDiscFileSystem to its own file. 2013-07-28 12:31:48 -07:00
Unknown W. Brackets
79c4104456 Specify file data layout endianness. 2013-07-27 16:05:21 -07:00
Unknown W. Brackets
b5e46b46cd Fix some minor virtual disc warnings. 2013-07-26 22:50:57 -07:00
Unknown W. Brackets
d9d66c46e9 Avoid a possibly uninitialized var. 2013-07-26 22:50:56 -07:00
Unknown W. Brackets
fa3b608b36 Fix a missing log argument. 2013-07-26 22:13:09 -07:00
Unknown W. Brackets
8da6259aff More carefully check defines for endianness. 2013-07-25 22:25:50 -07:00
Kingcom
b24f4a64d4 Linux fixes and small changes 2013-07-25 13:45:30 +02:00
Kingcom
5ddc9afba0 -save state support
-abstracted file access
-moved to VirtualDiscFileSystem class
2013-07-24 22:49:45 +02:00
Kingcom
e76ffe6b7c Supprt opening whole disc, assume file info is gathered before it's used 2013-07-23 22:23:12 +02:00
Kingcom
be548fdd2e Disable invalid file operations for virtual discs 2013-07-23 20:24:15 +02:00
Kingcom
0afd7dea28 Add error message when opening entire ISO 2013-07-23 17:53:55 +02:00
Kingcom
8955fedf44 Open directory as disc image 2013-07-23 17:24:33 +02:00
Unknown W. Brackets
45ff47589a Remove unused fpointer member. 2013-07-10 22:30:25 -07:00
Henrik Rydgard
3022a026a1 Reduce unnecessary logging when loading isos, and update native 2013-07-10 21:59:43 +02:00
Henrik Rydgård
d68c805430 Merge pull request #2704 from tpunix/master
ISOFileSystem and prxDecrypt2 patch
2013-07-08 02:05:28 -07:00
tpunix
2d50f6e074 add isBlockSectorMode to savestate 2013-07-08 16:34:09 +08:00
Henrik Rydgård
e21c5c6747 Merge pull request #2691 from thedax/master
Fix PSN eboot crashes
2013-07-08 00:46:12 -07:00
tpunix
543b08ac07 bugfix of ISOFileSystem 2013-07-08 15:17:42 +08:00
tpunix
2de2c53918 new patch for ISOFilsSystem 2013-07-08 12:35:07 +08:00
Unknown W. Brackets
10f1f198fb Fix some type conversions warnings. 2013-07-07 19:16:25 -07:00
The Dax
95cffd97b5 Fix PSN eboot crash. Allows PSN demo eboots to run again, and HD Remaster eboots to finally boot. 2013-07-07 19:07:43 -04:00
Henrik Rydgard
a8e932830e Revert part of 3ac9aa9cfb , it crashes GTA: LCS. @tpunix, might want to investigate. 2013-07-07 14:19:40 +02:00
Unknown W. Brackets
091d4ac76f Fix dumb typo. 2013-07-06 15:14:50 -07:00
tpu
3ac9aa9cfb bug fix about ISOfilesystem and sceIo 2013-07-06 23:42:49 +08:00
Henrik Rydgård
af9b1bcacd Merge pull request #2431 from unknownbrackets/io-rename
sceIoRename() ignores any path on dest
2013-06-24 13:48:54 -07:00
Unknown W. Brackets
c8ee2c0739 sceIoRename() ignores any path on dest.
Also, change the interface so it can return an error code.  Currently not
returning perfect error codes but it's better than before.
2013-06-23 20:09:44 -07:00
Unknown W. Brackets
010bd689f6 Parse sce_lbn more leniently, like the PSP does. 2013-06-23 16:21:04 -07:00
Henrik Rydgard
4eb1638cc3 Merge remote-tracking branch 'origin' into mp3-support
Conflicts:
	Core/HLE/sceAudio.cpp
	Core/HLE/sceMp3.cpp
2013-06-22 18:08:43 +02:00
Henrik Rydgard
61b510b753 Open ISOs very slightly faster by not reopening 2013-06-19 20:47:42 +02:00
Henrik Rydgard
74638ef4ae More autodownload UI work etc 2013-06-04 22:32:52 +02:00
Sacha
b39a572043 Buildfixes.
Fix C++11 usage.
Remove redundancy.
Fix st_*time re-usage.
2013-06-02 13:26:39 +10:00
Unknown W. Brackets
06c19622d5 Fix some init/type warnings. 2013-05-31 23:14:29 -07:00
Unknown W. Brackets
7687bccce6 Try to avoid possible global var name conflicts. 2013-05-31 23:14:28 -07:00
The Dax
cda9881cb9 Fix some logging typos and a comment typo. 2013-05-31 12:59:39 -04:00
The Dax
7ddf344bc1 Fix VS2010 debug builds. It was caused by my Pangya fix: I had this else statement in the wrong place. 2013-05-31 11:08:27 -04:00
The Dax
e4e642b2a7 Fix Call of Duty Road to Victory black screen caused by Pangya fix. It was just a simple oversight. 2013-05-30 23:02:53 -04:00
The Dax
77e4a8008b Fix accidental typo in MetaFileSystem.cpp. 2013-05-30 16:23:25 -04:00
The Dax
370b50a328 Fix Pangya: Fantasy Golf hang when going in-game via emulating SCE_KERNEL_ERROR_NOCWD correctly, or at least, more correctly than it was before. 2013-05-30 16:15:15 -04:00
Unknown W. Brackets
ee414830f6 Add some reporting in filesystem related code. 2013-05-26 20:23:09 -07:00
Henrik Rydgard
b2d57ff365 VERBOSE a log statement 2013-05-13 19:25:33 +02:00
Unknown W. Brackets
0f459f9000 Fail if the cwd is too long as well. 2013-05-12 17:03:46 -07:00
Unknown W. Brackets
8e1193feba Fail with an error in sceIoChdir for invalid dev. 2013-05-12 16:51:08 -07:00
Unknown W. Brackets
225d09555b Properly savestate umd0: references. 2013-05-12 16:37:03 -07:00
Unknown W. Brackets
37aa59fb3c Keep track of disc0:/ vs. disc0: in path parsing.
The difference matters and was getting lost.
2013-05-12 16:01:38 -07:00
Henrik Rydgard
c4529eff01 Mac build fix 2013-05-08 23:48:57 +02:00
Sacha
0101636473 Buildfix: Symbian, CMake-based compiles. 2013-05-09 04:29:23 +10:00
tpu
c9af16e332 add NPUMDIMG support 2013-05-08 23:36:57 +08:00
Sacha
2396574f45 Avoid name collision with StringUtil on Windows hosts. Fixes all Linux/Unix cross-compiles from Windows, including Harmattan and Blackberry. 2013-05-03 16:22:15 +10:00
Henrik Rydgard
b9f45e4530 Add stub framework for .pbp demos (nowhere near working). Fix an OSK crash. 2013-04-27 23:16:51 +02:00
Unknown W. Brackets
053b33f5e2 Remove the ISOFileSystem freelist, not threadsafe. 2013-04-13 13:04:39 -07:00
Unknown W. Brackets
fe97fd6fc5 Add better savestate error handling.
Aborts when it can't load.
2013-04-13 01:39:17 -07:00
Unknown W. Brackets
bfaf9d0d6d Clean up restricted ISO reading. 2013-04-03 00:18:51 -07:00
Unknown W. Brackets
417ce893dc Darn, sorry, missed a typo. 2013-03-31 23:56:21 -07:00
Unknown W. Brackets
eeafcaff52 Typo in restricted ISO reading. 2013-03-31 23:50:10 -07:00
Unknown W. Brackets
d11a5debcb Add a way to restrict ISO reading to a single path.
This is for GameInfoCache.
2013-03-31 21:36:12 -07:00
Unknown W. Brackets
20bb55e1cb Speed up reading multiple isos in a row. 2013-03-31 20:58:24 -07:00
Henrik Rydgard
c23631a8fc Some experimental (disabled) code to have images in gamelist. Too slow, needs work. 2013-03-30 20:10:32 +01:00
Henrik Rydgard
7425532e99 Move non-Android specific stuff from android/jni to /UI.
Move source_assets one level up, too.
Also, start prototyping GameInfoCache, you'll see what it's for soon...
2013-03-30 15:46:26 +01:00
Unknown W. Brackets
be600e5095 Set the times when reading a dir on Windows.
Test doesn't pass but it's not gonna.
2013-03-07 00:02:01 -08:00
Unknown W. Brackets
f4a0709286 Correct the startSector read by sceIoDread(). 2013-03-03 22:05:23 -08:00
Henrik Rydgard
aa06c1452e Allow mounting VFS directories. Used to provide flash0 from within APK on Android. 2013-02-27 17:41:40 +01:00
Unknown W. Brackets
64c42ffaf2 Fix some warnings generated by clang. 2013-02-24 10:23:31 -08:00
Henrik Rydgard
5ace14dd30 Log level adjustments 2013-02-12 22:09:40 +01:00
Unknown W. Brackets
fbfc1b7f10 Correctly read ISO 9660 directory entries.
Before, we would often duplicate the last entry in a directory.
2013-02-09 21:26:55 -08:00
Henrik Rydgård
b40aca67fd Merge pull request #625 from unknownbrackets/buildfix
Use RemoveFile instead of DeleteFile in fs
2013-02-09 00:16:59 -08:00
Unknown W. Brackets
db18eba388 Fix a crash in CSO reading (probably a bad rip.)
This could happen if sce_lbn is used out of bounds, maybe?
2013-02-08 23:52:22 -08:00
Unknown W. Brackets
2ea113369b Fix memory leak in CSO reading. 2013-02-08 19:27:42 -08:00
Unknown W. Brackets
1759bb8051 Use RemoveFile instead of DeleteFile in fs.
Windows defines DeleteFile to DeleteFileA/W, causing confusion.
2013-02-08 10:26:33 -08:00
Henrik Rydgard
349f1bd56b Windows build fix :P 2013-02-04 20:20:50 +01:00
Henrik Rydgard
7a36619174 Android buildfix + cleanup 2013-02-04 20:19:24 +01:00
Unknown W. Brackets
112c1e9e23 Automatically delete pointers when savestating. 2013-02-04 08:28:22 -08:00
Unknown W. Brackets
a4032c5170 Simplify savestate code so it's all automagical.
If you can't beat 'em, join 'em?
2013-02-04 08:27:01 -08:00
Unknown W. Brackets
2a6457b6ab Cut down on h files including PointerWrap.
This makes changes to it a bit faster to build.
2013-02-04 08:26:59 -08:00
Unknown W. Brackets
cdb676f17a Stop shadowing the i variable. 2013-01-31 00:02:53 -08:00
KentuckyCompass
83fa725424 std::string is not UTF8-aware 2013-01-22 06:59:22 -08:00
KentuckyCompass
f9a843fb28 add case insensitivity to GetDirListing 2013-01-22 06:31:42 -08:00
Sacha
0ce45cef55 Update for Qt project files. New Symbian icon (Belle style) thanks to z435312561. Stat64 -> stat. 2013-01-22 16:17:44 +10:00
Unknown W. Brackets
5170931aad Buildfix for Windows. 2013-01-21 01:15:57 -08:00
Xele02
3825df5c6a Improve sceIo to pass io autotest.
io/io, io/cwd, io/directory ok
io/file still have a file mode fail
2013-01-21 01:25:48 +01:00
Unknown W. Brackets
140fd171ef Fix some 64-bit type conversion warnings. 2013-01-19 13:48:20 -08:00
raven02
289b0eb81e Add/update stubs in sceIo 2013-01-17 20:05:45 +08:00
KentuckyCompass
a13c2da407 rename System -> MountPoint and add convenience wrapper 2013-01-11 10:10:37 -08:00
KentuckyCompass
9f4680a267 don't chop off prefix when mapping path for chdir 2013-01-11 10:10:36 -08:00
KentuckyCompass
5ce75551d7 map chdir paths 2013-01-10 16:18:03 -08:00
KentuckyCompass
320c0d06c3 Implement per-thread current directory 2013-01-10 16:18:02 -08:00
Unknown W. Brackets
d26bebc685 Return an error if the raw lbn is too high. 2013-01-09 01:13:38 -08:00
Unknown W. Brackets
6327c6e629 Make filesystem prefix matching case fold.
Even Ms0:/, disC0:/ and HoSt0:/ etc. work.
2013-01-09 00:57:44 -08:00
Unknown W. Brackets
b7be025bde Fix basic seeking within an lbn raw file. 2013-01-09 00:45:59 -08:00
Unknown W. Brackets
a59fe8eb0f Fix sce_lbn parsing for missing 0x, etc. 2013-01-09 00:10:52 -08:00
Mathias Tillman
b780e39397 Fixed various potential bugs and compiler warnings 2013-01-07 15:57:19 +01:00
Sacha
aa99c3f859 Make dir scan work cross-platform. Update Qt project files. 2012-12-31 17:52:57 +10:00
Henrik Rydgard
a9c171c786 Fix bAutoRun config option, add to menu. (Run on Load). 2013-01-04 10:26:14 +01:00
Henrik Rydgard
883f61e3dd Savestates: Add quicksave/quickload. Add Android UI for savestates. All single slot for now. 2013-01-02 21:05:02 +01:00
Arthur Blot
c2851467e5 No more useless errors/warnings at all! 2013-01-02 19:42:15 +01:00
Xele02
45c9ed389c Implement mode 11 2012-12-29 23:56:45 +01:00
Unknown W. Brackets
1768365c13 Fix a memory leak in the ISO filesystem. 2012-12-28 13:55:28 -08:00
Unknown W. Brackets
4b39e39455 Start save stating the filesystem state.
Plus minor fixes and at least an attempt to make states the same
on both 32 and 64 bit.
2012-12-28 13:55:27 -08:00
Unknown W. Brackets
595759ef78 Implement a factory for kernel objects.
Couldn't think of a better way to do this, maybe there's some fancy
one I don't know about.

Also finished up a couple left over kernel objects.

Maybe a quarter the way there?
2012-12-28 13:55:22 -08:00
Henrik Rydgård
29bc06ae32 Possible buildfix 2012-12-28 16:52:01 +01:00
Henrik Rydgård
1a378ea7a9 Try to fix linux build 2012-12-27 23:41:22 +01:00
KentuckyCompass
57ee25e239 Fix brain fart. 2012-12-27 06:36:00 -08:00
Henrik Rydgård
bafb63ca72 Merge pull request #267 from KentuckyCompass/case_insensitive2
Case insensitive2
2012-12-27 06:06:00 -08:00
KentuckyCompass
33429ebf93 Confirmed: PSP ignores .. beyond root. 2012-12-27 05:27:13 -08:00
KentuckyCompass
1c5ea99031 Remove pointless string clear() 2012-12-27 05:14:06 -08:00
KentuckyCompass
3862aea4de Minor comment edit. 2012-12-27 04:28:28 -08:00
KentuckyCompass
9e85c01c1f Simulate case insensitivity on case sensitive platforms. 2012-12-27 04:27:07 -08:00
KentuckyCompass
725094eaef Storing a size_t returned from std::string in an int and checking for negative is weird. 2012-12-27 04:23:04 -08:00
KentuckyCompass
928150fbf4 Add an ERROR_LOG for GetDirListing not implemented on non-Windows. 2012-12-27 04:15:08 -08:00
KentuckyCompass
3839179a09 Implement opening for append in DirectoryFileSystem. Add more non-Windows access modes. 2012-12-27 03:25:21 -08:00
KentuckyCompass
a0e1ab1181 Reindent. 2012-12-27 03:25:21 -08:00
KentuckyCompass
f5998d524a Add HOST_IS_CASE_SENSITIVE define 2012-12-27 03:25:21 -08:00
Henrik Rydgård
1328413dfc Filesystems: add host0: hack, proper shutdown of DirectoryFileSystem 2012-12-26 08:24:19 +01:00
Unknown W. Brackets
965592eda8 Fix sceIoRemove() on Windows infinite looping. 2012-12-22 09:01:59 -08:00
Unknown W. Brackets
17750c7c80 Need this for the debug build. 2012-12-21 16:28:55 -08:00
Unknown W. Brackets
ec753a3575 Fix some ignored error / shadowing warnings. 2012-12-21 16:23:21 -08:00
KentuckyCompass
aeafc92d3b paths with a colon are never relative 2012-12-20 05:33:05 -08:00
Unknown W. Brackets
56fa601d24 Add include for tolower(), made Android unhappy. 2012-12-19 22:27:26 -08:00
Henrik Rydgard
4541c3e18b Slightly better logging in path mapping 2012-12-19 11:11:56 +01:00
Henrik Rydgard
90e87ead84 Fix a relative path issue - apparently paths starting with '/' are still relative. 2012-12-18 14:13:35 +01:00
Henrik Rydgard
2937928237 Better hack for a path problem. Still don't get it. 2012-12-18 00:01:40 +01:00
Henrik Rydgard
5ff2bf84ef Path cleaning bugfix 2012-12-17 22:34:34 +01:00
Henrik Rydgard
19af6531f7 Warning fix (and I don't like shadowing) 2012-12-17 22:06:19 +01:00
TMaul
0ae55ae65c Ooops, didnt mean to leave that uncommented :) 2012-12-17 20:28:50 +00:00
TMaul
458ed7f421 Make filename checks on iso case insentitive
But still keep them logically in the same case they are on the discs
2012-12-17 20:23:36 +00:00
Henrik Rydgård
8b57b2ec0a Merge pull request #179 from KentuckyCompass/dotdotpaths
Dotdotpaths
2012-12-17 01:42:36 -08:00
KentuckyCompass
360738d366 tolerate prefix without path in current directory and quiet redundant 'starting with' message 2012-12-15 04:09:37 -08:00
KentuckyCompass
8f00757ceb remove simple current directory concatenation in favor of new relative path handling 2012-12-15 03:55:02 -08:00
KentuckyCompass
17d7e4acf5 invalid current directory should be ERROR_LOG 2012-12-15 03:48:47 -08:00
KentuckyCompass
0639abff6a more consistant messages and minor adjustments 2012-12-15 03:47:31 -08:00
KentuckyCompass
d0e8749aa1 replace host0 hack with proper relative path handling (not per thread yet) 2012-12-15 03:38:14 -08:00
Xele02
e785662747 Read PARAM.SFO for display save info
Display save modification date and time
2012-12-14 23:08:56 +01:00