#xu4@irc.freenode.net logs for 4 Feb 2011 (GMT)

Archive Today Yesterday Tomorrow
xu4 homepage

[00:00:54] <-- darrendroid has left IRC (Quit: AndroIRC)
[00:01:22] <-- Dominus|zzzzz has left IRC (Quit: Leaving.)
[00:01:40] --> AndroUser2 has joined #xu4
[00:08:29] <-- AndroUser2 has left IRC (Ping timeout: 276 seconds)
[00:16:59] --> Darrenor64 has joined #xu4
[00:17:59] <Darrenor64> ?log
[00:18:00] <exultbot> Logs are available at http://log.usecode.org/xu4log.php
[00:24:14] <Darrenor64> Oh right. That's because I only added "Resources" to the root path. "MACOSX_USER_FILES_PATH" is now also there. Note how easy it is now to add any additional paths for Mac-specific builds, whether they be build-defined or hard-coded.
[00:24:34] <Darrenor64> sorry about that delay.
[00:24:52] <Darrenor64> the good news is that the work I did on enabling this really helped with my iOS port.
[06:39:23] --> Dominus has joined #xu4
[06:39:53] <Darrenor64> I think it'll work for you now
[06:41:28] <Dominus> thanks, I saw your commit message and am building now
[06:41:53] <Dominus> if you need a tester, I have both an iphone4 and an ipad here
[06:44:13] <Darrenor64> cool. i only have an ipod touch myself.
[06:44:41] <Darrenor64> they won't let me distribute it until I pay for the developer license.
[06:44:56] <Darrenor64> so i can only play it on that simulator
[06:46:15] <Dominus> jailbreak is the way to go :)
[06:49:23] <Darrenor64> ha.
[06:49:54] <Darrenor64> so you just need an 'app' then that is compiled for an ios device.
[06:50:26] <Dominus> hmmm, seems it still can't find the u4zip in the defined path :(
[06:51:38] <Darrenor64> what is the name of the path?
[06:52:00] <Darrenor64> what are you setting that MACOSX var to?
[06:55:01] <Dominus> as in the makefile.macosx
[06:55:27] <Darrenor64> ok. i'll take a look.
[06:55:37] <Dominus> -DMACOSX_USER_FILES_PATH=\"/Library/Application\ Support/xu4\"
[06:55:56] <Dominus> the " " might be the problem
[06:59:37] <Darrenor64> hmmm... yes.
[07:01:01] <Darrenor64> Will this value be the same for all macs?
[07:01:16] <Darrenor64> this Lib/AppSupp/xu4 ?
[07:01:18] <Dominus> yes
[07:01:38] <Darrenor64> because if appropriate, i could just set that path as a searchable if MACOSX is defined.
[07:01:57] <Darrenor64> arguably, it doesn't even need to be mac-specific, since there's no harm in searching those paths on linux/windows.
[07:02:25] <Darrenor64> "/Library/Application Support/xu4"
[07:02:38] <Dominus> probably you could even make it the default user_files_path on OS X, *unless* someone defines another path
[07:03:11] <Dominus> it is a sensible path for it, so whoever set it in the makefile.macosx had a good throught
[07:03:41] <Darrenor64> you might be able to escape the space with another \
[07:03:47] <Darrenor64> Application\ Support
[07:05:53] <Dominus> can't get it to work without the "" - always fails in making osxinit.cpp then
[07:07:17] <Darrenor64> Oh wait, you're already escaping the space... that might not even be the problem.
[07:08:41] <Dominus> in the svn commit you didn'T add the std:string stuff
[07:10:07] <Darrenor64> i committed an uncompiable error. i really should get some sleep.
[07:10:46] <Darrenor64> try setting "verbose" to true.
[07:11:00] <Darrenor64> it is in u4.h or something like that. it's a boolean.
[07:11:08] <Darrenor64> then the console will tell you every path that it seaches.
[07:11:15] <Darrenor64> when looking for all files.
[07:11:28] <Darrenor64> it helped me debug my configuration for the macos stuff.
[07:11:30] <Darrenor64> er, the ios stuff.
[07:15:38] <Dominus> good idea
[07:16:11] <Darrenor64> but you could essentially add the following:
[07:16:12] <Darrenor64> u4Path.rootResourcePaths.push_back(std::string(macOSX_AppBundle_Resource_Path));
[07:16:12] <Darrenor64> u4Path.rootResourcePaths.push_back(std::string(MACOSX_USER_FILES_PATH));
[07:16:12] <Darrenor64> u4Path.rootResourcePaths.push_back(MACOSX_APP_SUPPORT);
[07:16:55] <Darrenor64> lines anywhere, so long as they're executed BEFORE the files are searched for, and you'll be able to add root paths which will be used to find all files in subdirectories relative to.
[07:18:55] <Dominus> he he...
[07:19:11] <Dominus> it's trying to open /library...
[07:19:26] <Dominus> but it's in ~/library...
[07:23:40] <Darrenor64> Ah!
[07:25:09] <Darrenor64> both locations would be good.
[07:25:21] <Darrenor64> to search
[12:58:51] <-- Kirben has left IRC ()
[17:54:52] <Dominus> very strange, it just can't find the ultima4.zip
[17:55:54] <Dominus> got the root of the problem
[17:56:28] <Dominus> xu4 doesn't understand that ~ stands for the HOME folder
[17:57:01] <Dominus> so searching in ~/Library/Application Support/xu4 doesn't yield anything
[18:01:47] <Dominus> so the stuff that goes on in osxinit.cpp line 40 and following where MACOSX_USER_FILES_PATH gets translated to $HOME/MACOSX_USER_FILES_PATH needs to be done for resource paths, too
[18:04:06] <Dominus> only found out through the verbose output. since xu4 printed that it searched in ~/Library... but couldn't find the zips, even though they were right there!!!!
[18:32:41] <Darrenor64> Ah!
[18:32:46] <Darrenor64> now I know what that code was for.
[18:32:56] <Darrenor64> Thanks for checking that out.
[18:33:38] <Darrenor64> I'll fix that up later on tonight, after I do some other deadline-related programming.
[23:00:14] --> Kirben has joined #xu4
[23:00:14] --- ChanServ gives channel operator status to Kirben