• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Site › Dolphin Patches (Archive) v
« Previous 1 2 3 4 5 ... 7 Next »

[PATCH] Windows - Put "user" directory in "My Documents"
View New Posts | View Today's Posts

Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[PATCH] Windows - Put "user" directory in "My Documents"
01-09-2011, 08:38 PM (This post was last modified: 01-09-2011, 09:59 PM by ninjin.)
#1
ninjin Offline
Junior Member
**
Posts: 24
Threads: 2
Joined: Feb 2010
This patch makes it so all you need to do between updating revisions, is unzip and run. No need to re-browse for iso's, update graphic config settings or copy across save files.

Of note, it doesn't change the code for making the folders, etc so it won't work if you don't do this. I'd tinker more and fix problems, when I actually get my compiler working properly. This should do for now.

So for it to work, you'll need to go to C:\Users\Public\Documents\Dolphin and drag your current 'user' folder in.


Code:
#ifdef _WIN32
    #define ROOT_DIR "C:" DIR_SEP "Users" DIR_SEP "Public" DIR_SEP "Documents" DIR_SEP "Dolphin"
#else
    #define ROOT_DIR "."
#endif


Attached Files
.patch   CommonPathMyDocs.patch (Size: 490 bytes / Downloads: 283)
Find
01-10-2011, 01:36 AM (This post was last modified: 01-10-2011, 01:37 AM by Jack Frost.)
#2
Jack Frost Offline
aka. BhaaL
**********
Developers (Some Administrators and Super Moderators)
Posts: 509
Threads: 3
Joined: Oct 2009
Bad patch if you ask me. ROOT_DIR should be determined using SHGetFolderPath with CSIDL_PERSONAL instead.
Especially it wont be compatbile with Windows XP, which is still around (hence SHGetFolderPath and not the newer SHGetKnownFolderPath).
Find
01-10-2011, 06:07 AM
#3
NaturalViolence Offline
It's not that I hate people, I just hate stupid people
*******
Posts: 9,013
Threads: 24
Joined: Oct 2009
Interesting idea. I always wondered why the original developers chose not to do this.
"Normally if given a choice between doing something and nothing, I’d choose to do nothing. But I would do something if it helps someone else do nothing. I’d work all night if it meant nothing got done."  
-Ron Swanson

"I shall be a good politician, even if it kills me. Or if it kills anyone else for that matter. "
-Mark Antony
Website Find
01-10-2011, 06:11 AM
#4
Jack Frost Offline
aka. BhaaL
**********
Developers (Some Administrators and Super Moderators)
Posts: 509
Threads: 3
Joined: Oct 2009
Theres Issue 3201 on google-code, but so far noone bothered/had time for it. Might also be because Microsoft obsoleted parts of that API, and we (probably) still want to support Windows XP.
Find
01-10-2011, 09:40 AM (This post was last modified: 01-10-2011, 08:33 PM by ninjin.)
#5
ninjin Offline
Junior Member
**
Posts: 24
Threads: 2
Joined: Feb 2010
(01-10-2011, 01:36 AM)Jack Frost Wrote: Bad patch if you ask me. ROOT_DIR should be determined using SHGetFolderPath with CSIDL_PERSONAL instead.
Especially it wont be compatbile with Windows XP, which is still around (hence SHGetFolderPath and not the newer SHGetKnownFolderPath).

I've been trying to do it using that method, and as soon as it works that way I'll change it over.

By my reckoning the patch should still work with xp; they just have to make a few folders

edit: patch (when I next update it) will make folders and files in the 'public\documents' directory
ie. fixed this: Of note, it doesn't change the code for making the folders, etc so it won't work if you don't do this

next step is to find '%username%\my documents' automatically.

Big Grin
Find
03-10-2012, 05:31 PM
#6
IcemanSR Offline
Senior Member
****
Posts: 528
Threads: 16
Joined: May 2010
only Wii folder should have this
and its wrong to be specified directly via dolphin code it actually needs browse to folder button
this i mean specifically for NAND folders as mine is 500mb big
My Rig:
Mainboard: Asus P8-Z77 | Ram: ExceleRam 2x8GB DDR3 Black Shark 1600MHz Cl9 | GFX: Nvidia GTX950 WFOC 2GB DDR5
CPU+Cooler: [color=#0000CD]Intel 2500K[/color] [color=#32CD32]@[/color] [color=#FF0000]4.6ghz[/color] + Xigmatek Gaia SD1283 (Push/Pull)
Find
03-10-2012, 05:34 PM
#7
LPFaint99 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 531
Threads: 4
Joined: Mar 2009
(03-10-2012, 05:31 PM)IcemanSR Wrote: only Wii folder should have this
and its wrong to be specified directly via dolphin code it actually needs browse to folder button
this i mean specifically for NAND folders as mine is 500mb big

you can already do this, Configure > Paths > Wii NAND Root
Find
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode