summaryrefslogtreecommitdiff
path: root/Source/Core/Common/FileUtil.cpp
AgeCommit message (Collapse)Author
2015-08-26Fix VolumeDirectoryJosJuice
Fixes the regression from a225426 and clarifies a related comment.
2015-06-26GetExeDirectory() shouldn't return paths with /../ in the middle.Admiral H. Curtiss
2015-06-13Fix FreeBSD buildJeffrey Pfau
2015-05-28Add a mode to use a dummy Wii NAND.comex
Eventually, netplay will be able to use the host's NAND, but this could still be useful in some cases; for TAS it definitely makes sense to have a way to avoid using any preexisting NAND. In terms of implementation: remove D_WIIUSER_IDX, which was just WIIROOT + "/", as well as some other indices which are pointless to have as separate variables rather than just using the actual path (fixed, since they're actual Wii NAND paths) at the call site. Then split off D_SESSION_WIIROOT_IDX, which can point to the dummy NAND directory, from D_WIIROOT_IDX, which always points to the "real" one the user configured.
2015-05-28Fix CopyDir to not require source and dest paths to end with "/".comex
2015-05-28Rewrite FileSearch and improve ScanDirectoryTree.comex
- FileSearch is now just one function, and it converts the original glob into a regex on all platforms rather than relying on native Windows pattern matching on there and a complete hack elsewhere. It now supports recursion out of the box rather than manually expanding into a full list of directories in multiple call sites. - This adds a GCC >= 4.9 dependency due to older versions having outright broken <regex>. MSVC is fine with it. - ScanDirectoryTree returns the parent entry rather than filling parts of it in via reference. The count is now stored in the entry like it was for subdirectories. - .glsl file search is now done with DoFileSearch. - IOCTLV_READ_DIR now uses ScanDirectoryTree directly and sorts the results after replacements for better determinism.
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-04-15General: Apply the const specifier where applicableLioncash
2015-04-07Common: Remove TLS usage in GetLastErrorMsgdegasus
Just return std::string as this code isn't performance critical.
2015-03-17Fix Wii configuration path being incorrect.Ryan Houdek
On loading the NANDRoot from the config, if it isn't set it will still attempt to be set. So on the invalid empty path, just don't set it.
2015-03-15Fix user directories at times doing stupid things.Ryan Houdek
With my previous changes Dolphin would fail to create the user directory if it didn't exist, and would dump all the configuration options in to the cwdir. This was a bit more complicated to fix in a clean fashion, so I took to moving around code concerning user directories. Instead of having GetUserPath serve a dual purpose of both getting and setting our user directories, break out to a new SetUserPath function. GetUserPath will know only get the configured user path. SetUserPath will set our user paths and setup the internal user path state. This ending up being a lot cleaner overall, which is nice. Also less mind bending when attempting to read the code. So now we won't dump all of our configuration in to the cwdir if ~/.dolphin-emu isn't found. Fixes issue 8371.
2015-02-25Fix a bug on user path re-assignment.Ryan Houdek
The Load directory wasn't being properly reassigned when the user path changed, which causes a bunch of issues with things loading from the wrong place when using the -U option in Dolphin.
2015-02-25Move user directory detection location to UICommon.Ryan Houdek
The UI should decide on where it wants the user directory, not our core system. This is in anticipation of some upcoming work on Android which will need proper user directory setting.
2015-01-12Minor consistency changesStevoisiak
Mostly small changes, like capitalization and spelling
2014-12-20Merge pull request #1486 from rohit-n/gotoPierre Bourdon
Remove some gotos.
2014-12-11Fix hires texture path.Rachel Bryk
2014-12-01Common: Remove gotos in FileUtil, and replace FILE*s with IOFile/ifstreams.Rohit Nirmal
2014-10-22Read game title from ini file, or titles.txt if it exists.Rachel Bryk
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
2014-08-30Common: Clean up brace placementsLioncash
2014-07-31Common: Simplify StripTailDirSlashesLioncash
2014-03-14Kill off some usages of c_str.Lioncash
Also changes some function params, but this is ok. Some simplifications were also able to be made (ie. killing off strcmps with ==, etc).
2014-03-09clang-modernize -use-nullptrTillmann Karras
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
2014-02-22Make Common/ mostly IWYU clean (and fix errors in rest of the project ↵Pierre Bourdon
detected by this change).
2014-02-20Fix more header sorting issues in Common/ (now check-includes clean).Pierre Bourdon
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-17Second and final pass of clearing out tabs.Lioncash
2014-02-03Remove a pointless c_str() call in FileUtil.cpp. The function takes a string ↵Lioncash
in it's parameter
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre