And I added a simple VS2010 test project for Windows as well.
It might come in handy to test & debug under DEX.
It might come in handy to test & debug under DEX.
Cool thanksAnd I added a simple VS2010 test project for Windows as well.
It might come in handy to test & debug under DEX.
extern struct __syscalls_t __syscalls;
For undefined symbol .panic i found it defined in ntfsinternal.hI have been testing too.
1 warning left during compilation.
Trying to use the library atm gives a few undefined symbol __syscalls errors then undefined symbol .panic...
I am not sure about reentrant syscalls either. That's what bothered me most before when I looked into the port...
extern void panic(const char *fmt, ...);
I was completely wrong. The function panic had just no definition, so i added it in ntfsinternal.c and this fixed the issue. Same for mutex_dump_info and trace functions.For undefined symbol .panic i found it defined in ntfsinternal.hThis was added by Andoma, so maybe this is only compatible with psl1ght v1Code:extern void panic(const char *fmt, ...);
Thanks Zar ! That was my first intuition about ntfs_log_warning. "includes" folder was temporary to differentiate originals files from new files we added.panic is a function of movian https://github.com/andoma/movian/bl...8a5a7395bb49d356/src/arch/ps3/ps3_trap.c#L213
so i remplaced it by ntfs_log_warning. i also moved files inside "source/includes" to "source" and the directory "ps3defines" to "source/ps3define"/ . I hope it won't bother you.
I copied pasted the sample of estwald and removed everything related to libtyny3D (graphic lib) and libpad (gamepad lib) then I added a log file in /dev_hdd0/libntfs_log.txt. Anyway, now it compile without any error, I didn't try it the sample yet.
I can't compile the sample. The makefile seems to missing instruction to build EBOOT.BINI copied pasted the sample of estwald and removed everything related to libtyny3D (graphic lib) and libpad (gamepad lib) then I added a log file in /dev_hdd0/libntfs_log.txt. Anyway, now it compile without any error, I didn't try it the sample yet.
And what are in the log file in hdd0 ? Nothing revelant ?The build is fixed. I tested it, it create the log file but the sample is not working. There is something wrong with the lib or with the sample, i rly don't know.
I rewrited the sample, and just call simple functions like this :The build is fixed. I tested it, it create the log file but the sample is not working. There is something wrong with the lib or with the sample, i rly don't know.
ntfsMountAll(&mounts, NTFS_DEFAULT | NTFS_RECOVER /* | NTFS_READ_ONLY */ );
ps3ntfs_open("ntfs0:/text.txt", O_CREAT | O_WRONLY | O_TRUNC, 0777);
for (u8 u = 0; u < mountCount; u++) ntfsUnmount(mounts[u].name, 1);
Yeah, and i think (have to double check) that standard i/o functions are not working. This is certainly related to __syscalls struct and/or reentrancy.More testing is required imo...