Hacking Compiling WBFS on Mac OS X

  • Thread starter Thread starter eddanx
  • Start date Start date
  • Views Views 462,791
  • Replies Replies 452
gibbed said:
Apparently DKIOCGETBLOCKCOUNT returns a 64-bit number (long long) not a 32-bit number which is probably why you get a floating point exception.

Code:
long long my_n_sector;
ret = ioctl(fd,DKIOCGETBLOCKCOUNT,&my_n_sector);
*n_sector = (long)my_n_sector;
And there you have it! Thanks, gibbed!

Working changelog:

CODEEia:wbfs eia$ diff -u libwbfs/libwbfs_linux.c libwbfs/libwbfs_macosx.c
--- libwbfs/libwbfs_linux.cÂÂÂÂ2009-03-28 14:52:50.000000000 +0100
+++ libwbfs/libwbfs_macosx.cÂÂÂÂ2009-03-31 18:56:09.000000000 +0200
@@ -1,9 +1,9 @@
-#ifdef __linux__
+#ifdef __APPLE__
#include
#include
#include
#include
-#include
+#include
#include
#include

@@ -51,7 +51,7 @@
ÂÂÂÂÂÂÂÂ if(fd
 
om_nous said:
feidhlim1986 said:
can you post a link to a compiled Mac OS X Binary please?

Here you go:

WBFS

Thanks very much!

Feel free to begin work on a mac GUI anyone
wink.gif
 
YAY! I was working on this yesterday
smile.gif


I guess th next trick is to wrap MacFUSE around this thing for a filesystem plugin
smile.gif


+d10
 
wow.

just scrolling back thru this...it is funny how much of this I struggled with alone to get to nearly the same place.

Next time, I'll just post here
smile.gif


Soooo...anyone here ever write a FUSE driver?
biggrin.gif


+d10
 
Is it just me, or is the mac port slow? I'm currently dumping MadWorld, its 20% done with 26mins remaining, the windows port only took less than 5 mins, even using VMware.
I'm not complaining though. Prefer using Mac OSX to do this.
 
Last login: Sun Feb 8 22:03:52 on console
/Volumes/WII\ STUFF/wbfs ; exit;
Macintosh:~ Michael$ /Volumes/WII\ STUFF/wbfs ; exit;
Usage: /Volumes/WII STUFF/wbfs [-d disk|-p partition]
ls
df
mkhbc
init
add (file|id)
rm (file|id)
extract (file|id)
logout

[Process completed]



what am i meant to do....:S heeeeeelppp meeeee:)
 
eddanx said:
joda said:
Great work guys! You should mail over the patches to Kwiirk and have him include them in the main source tree.
Done.


Can you PM me a proper .patch as well? I'm gonna apply it to a clean source tree before I start messing with an app wrapper, altho I think the better way to go would be MacFUSE...

Thanks!

Posts merged

QUOTE(om_nous @ Mar 31 2009, 12:35 PM)
Working on a GUI now
smile.gif

Um...

an App Proper...or some thing in ASS?
wink.gif
 

Site & Scene News

Popular threads in this forum