dolphin/Source/Core/Common
Ryan Houdek aaf04aeaca Fix user directories at times doing stupid things.
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-03-15 09:19:48 -05:00
..
Crypto Fix build failing when disabling precompiled headers. 2014-09-19 18:17:51 -04:00
Logging Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
Arm64Emitter.cpp [AArch64] Handle FPR island registers in a less dumb way. 2015-03-03 00:30:05 -06:00
Arm64Emitter.h [AArch64] Stop violating the AAPCS64 so much. 2015-03-02 11:21:15 -06:00
ArmCommon.h Include a missing include in the ARM emitter's common code. 2014-09-10 20:39:19 -05:00
ArmCPUDetect.cpp Minor consistency changes 2015-01-12 15:18:18 -05:00
ArmEmitter.cpp Arm(64)Emitter: Make some variables static 2014-11-25 23:27:48 -05:00
ArmEmitter.h [ARM] Fix poison memory functions. 2015-02-13 12:16:05 -06:00
Atomic_GCC.h Common: Clean up brace placements 2014-08-30 18:06:35 -04:00
Atomic_Win32.h Clean up the intrinsics #ifdef mess 2015-02-24 01:02:36 +01:00
Atomic.h Remove all trailing whitespaces from our codebase. 2014-03-29 11:05:44 +01:00
BitField.h Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
BitSet.h JIT: optimize for the common case of unquantized psq_l/st 2015-01-10 14:14:43 -08:00
BreakPoints.cpp BreakPoints: Fix compile warning 2014-10-28 12:22:30 -07:00
BreakPoints.h Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
CDUtils.cpp Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
CDUtils.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
ChunkFile.h Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
CMakeLists.txt Added TraversalServer.cpp to Core/Common 2015-02-25 18:28:27 -08:00
CodeBlock.h Remove dumb CodeBlock duplication in the emitters. 2014-04-09 13:53:43 -05:00
ColorUtil.cpp Fix build failing when disabling precompiled headers. 2014-09-19 18:17:51 -04:00
ColorUtil.h Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
Common.h Common: move _M_SSE macro to Intrinsics.h 2015-02-24 01:06:25 +01:00
Common.vcxproj enet: fix Visual Studio files 2015-03-02 22:20:37 +01:00
Common.vcxproj.filters Moved Traversal Client code over from old netplay 2015-02-25 18:28:25 -08:00
CommonFuncs.h Common: move _mm_shuffle_epi8 to Intrinsics.h 2015-02-24 01:06:24 +01:00
CommonPaths.h PostProcessing: Add support for user-supplied anaglyph shaders. 2015-01-25 22:07:03 +01:00
CommonTypes.h Minor consistency changes 2015-01-12 15:18:18 -05:00
CPUDetect.h JIT: more optimizing of float ops based on known input characteristics 2014-11-29 11:33:11 -08:00
DebugInterface.h Added a RAM Watch window to the debugger 2014-10-26 14:56:02 +11:00
Event.h Add Common::Event::WaitFor(), which has the same semantics as std::condition_variable::wait_for() (with millisecond units). 2014-08-17 21:52:40 -07:00
ExtendedTrace.cpp Common: Clean up brace placements 2014-08-30 18:06:35 -04:00
ExtendedTrace.h remove unused globals 2014-07-11 16:10:20 +02:00
FifoQueue.h clang-modernize -use-nullptr 2014-03-09 21:14:26 +01:00
FileSearch.cpp Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
FileSearch.h Replace all include guard ifdefs with "#pragma once" 2014-02-10 18:07:16 -05:00
FileUtil.cpp Fix user directories at times doing stupid things. 2015-03-15 09:19:48 -05:00
FileUtil.h Fix user directories at times doing stupid things. 2015-03-15 09:19:48 -05:00
FixedSizeQueue.h Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
Flag.h Common::Flag: Add support for TestAndSet + test by implementing basic spinlocks. 2014-04-14 23:13:15 +02:00
FPURoundMode.h FPURoundMode: revert use of enums in bit-fields 2014-03-09 15:24:35 +01:00
GekkoDisassembler.cpp Minor fix with psq_st{u,}x disassembly. 2015-01-19 10:12:23 -06:00
GekkoDisassembler.h Common: Introduce the new Gekko disassembler to Common. 2014-08-04 00:45:07 -04:00
GenericCPUDetect.cpp Fix warning in x64CPUDetect.cpp in generic build by not building it. 2014-09-25 18:48:00 -04:00
GenericFPURoundMode.cpp Update Outdated Google Code References 2014-12-20 21:17:51 -06:00
Hash.cpp Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
Hash.h Fix clang on x86_64. 2015-01-29 01:55:20 -06:00
IniFile.cpp Use emplace_* functions where in-place construction is preferable 2015-02-04 11:39:08 -05:00
IniFile.h Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
Intrinsics.h Intrinsics: drop custom _mm_shuffle_epi8() 2015-02-24 19:37:16 +01:00
JitRegister.cpp Core: Change NULLs to nullptrs. 2015-03-14 20:20:41 -05:00
JitRegister.h JitRegister: overload Register with a [start,end) variant 2015-01-28 09:50:19 +01:00
LinearDiskCache.h Include CommonTypes.h instead of Common.h. 2014-09-08 15:39:58 -04:00
make_scmrev.h.js Windows: Also look for git.exe in the registry (for Git Extensions installs). 2014-07-20 12:33:56 -07:00
MathUtil.cpp VertexShaderManager: Compute stereoscopy projection matrices. 2014-11-23 14:23:41 +01:00
MathUtil.h Fix clamping for rectangles. 2015-03-04 17:15:29 -08:00
MemArena.cpp Make address translation respect the CPU translation mode. 2015-02-11 13:56:22 -08:00
MemArena.h Make address translation respect the CPU translation mode. 2015-02-11 13:56:22 -08:00
MemoryUtil.cpp Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
MemoryUtil.h Be pedantic about stack overflow on Linux and OS X. 2014-09-17 20:08:09 -04:00
Misc.cpp Fix a -Wunused-result warning 2015-02-24 10:29:59 +01:00
MsgHandler.cpp Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
MsgHandler.h avoid the extern keyword in .cpp files 2014-07-11 16:10:20 +02:00
NandPaths.cpp Use emplace_* functions where in-place construction is preferable 2015-02-04 11:39:08 -05:00
NandPaths.h Common: Make TITLEID_SYSMENU a static const variable in NandPaths.h 2014-09-03 18:03:23 -04:00
Network.cpp Fix MAC address reading on Windows. 2014-03-07 21:40:59 +13:00
Network.h Fix MAC address reading on Windows. 2014-03-07 21:40:59 +13:00
PcapFile.cpp Common: Add a PCAP writer module 2014-06-22 20:04:46 +02:00
PcapFile.h Common: Add a PCAP writer module 2014-06-22 20:04:46 +02:00
PerformanceCounter.cpp Profiling: measure time on POSIX systems using clock_gettime 2014-11-03 00:07:12 +01:00
PerformanceCounter.h Profiling: measure time on POSIX systems using clock_gettime 2014-11-03 00:07:12 +01:00
Profiler.cpp Fix building with PCH disabled. 2014-12-03 22:01:12 -06:00
Profiler.h Common: Add a built-in profiler 2014-12-03 00:50:41 +01:00
SCMRevGen.vcxproj Windows: Give SCMRevGen a configuration for x64 instead of Win32. 2014-08-13 03:57:10 -07:00
SDCardUtil.cpp Include CommonTypes.h instead of Common.h. 2014-09-08 15:39:58 -04:00
SDCardUtil.h Kill off some usages of c_str. 2014-03-14 13:51:23 -04:00
SettingsHandler.cpp Common: Clean up brace placements 2014-08-30 18:06:35 -04:00
SettingsHandler.h Remove all trailing whitespaces from our codebase. 2014-03-29 11:05:44 +01:00
StdMakeUnique.h Add a std::make_unique implementation 2014-05-06 12:32:03 +02:00
StringUtil.cpp Core: Change NULLs to nullptrs. 2015-03-14 20:20:41 -05:00
StringUtil.h Use printf-like format in JitRegister::Register 2015-01-28 09:47:08 +01:00
SymbolDB.cpp Fix build failing when disabling precompiled headers. 2014-09-19 18:17:51 -04:00
SymbolDB.h Include CommonTypes.h instead of Common.h. 2014-09-08 15:39:58 -04:00
SysConf.cpp Include CommonTypes.h instead of Common.h. 2014-09-08 15:39:58 -04:00
SysConf.h Remove the min/max functions in CommonFuncs. 2014-05-29 21:44:41 -04:00
Thread.cpp JitRegister: fix VTune integration 2015-02-12 02:14:49 +01:00
Thread.h Minor consistency changes 2015-01-12 15:18:18 -05:00
Timer.cpp Use clock_gettime instead of gettimeofday, it's more effiency on low power system 2015-02-18 21:44:58 +01:00
Timer.h Common: Add a built-in profiler 2014-12-03 00:50:41 +01:00
TraversalClient.cpp Fix -Wswitch warning 2015-03-01 16:17:32 +01:00
TraversalClient.h enet: Search for shared library 2015-03-02 22:18:57 +01:00
TraversalProto.h Added Gui elements in Netplay Setup Diag so a person can choose a traversal server 2015-02-25 18:28:26 -08:00
TraversalServer.cpp Core: Change NULLs to nullptrs. 2015-03-14 20:20:41 -05:00
Version.cpp Add missing includes where headers depend on other headers having been included first. 2014-10-21 21:22:16 -04:00
x64ABI.cpp Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
x64ABI.h Convert registersInUse to BitSet. 2014-10-25 16:57:25 -04:00
x64Analyzer.cpp JIT: Reuse trampolines when possible 2014-10-05 15:03:11 +11:00
x64Analyzer.h Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
x64CPUDetect.cpp Formatting/Whitespace Cleanup 2015-02-25 10:48:21 -05:00
x64Emitter.cpp Merge pull request #1869 from Stevoisiak/GeneralConsistency 2015-01-21 13:46:53 -06:00
x64Emitter.h Added a comment to document an issue with the codegen. 2015-01-24 16:08:26 +13:00
x64FPURoundMode.cpp Clean up the intrinsics #ifdef mess 2015-02-24 01:02:36 +01:00
XSaveWorkaround.cpp Windows: Improve XSaveWorkaround to behave correctly when XSAVE processor feature is enabled, but AVX support isn't available for whatever reason. 2014-08-10 14:50:29 -07:00