summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/FileUtil.cpp
AgeCommit message (Collapse)Author
2013-09-16Add a hacky check for text file size in ReadFileToString. Fixes issue 6455.Pierre Bourdon
2013-09-16Look for portable.txt in the exe directory and activate portable mode if it ↵Pierre Bourdon
exists
2013-09-14Overlay local gameinis over global gameinis instead of copying.Pierre Bourdon
Huge megacommit because a lot of things needed to be modified to make this possible.
2013-09-14Move Themes/ from User to Sys. Only Gameinis remain.Pierre Bourdon
2013-09-14Change the initial user directory creation to stop special casing WindowsPierre Bourdon
2013-09-14Use global user directory on windows.Rachel Bryk
Can override by setting HKCU\Software\Dolphin-emu\LocalUserConfig to true.
2013-09-01Work around MSVC bug, and make it less likely to happen again. Ew.comex
MSVC insisted on using a copy assignment where a move was intended and ought to be used. This would have been caught, because the class in question inherits from NonCopyable, which declares a move assignment operator, which is supposed to delete the implicitly declared copy assignment operator, but of course MSVC didn't do that either, causing a class that should have been safe to be unsafe.
2013-08-26Merge branch 'master' into wii-networkMatthew Parlane
Conflicts: Source/Core/Common/Src/CommonPaths.h Source/Core/Common/Src/FileUtil.cpp
2013-08-25Actually allow the dump and logs folders to be set outside of user/Rachel Bryk
2013-08-24Allow user folder to be set via command line.Rachel Bryk
Clean up GetUserPath(), to allow setting any path with it.
2013-04-24Merge branch 'master' into wii-networkMatthew Parlane
Conflicts: Source/Core/Core/Src/Boot/Boot_BS2Emu.cpp Source/Core/Core/Src/ConfigManager.cpp Source/Core/Core/Src/HLE/HLE_OS.h Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.h Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net.cpp Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net.h
2013-04-17New license header introduced for DiscIO, AudioCommon, InputCommon, ↵Lioncash
VideoCommon, and Common projects.
2013-04-15Update the license file text (change SVN to Git) in all projects except Core ↵lioncash
since I was told a merge was happening soon. So for the sake of the merge going smoothly, I'll fix that when I remove the tab/space mismatches from the Core project. Also, some tab/space mismatches removed from VideoOGL, and some places I missed in VideoDX[number] projects. Now, the Core is literally the only project with tab/space mismatches (on a large scale).
2013-04-11Merge branch 'master' into wii-networkMatthew Parlane
Conflicts: Source/Core/Core/CMakeLists.txt
2013-04-02real buildfixJordan Woyak
2013-04-01Probably a sloppy buildfix.Jordan Woyak
2013-04-01Fix loading of "themes" with non-ascii character names.Jordan Woyak
Fixed issue 6189. Why did GetUserPath return a non-const ref to string..?
2013-04-01Some more logging typos and clarifications. Missed these in my last commit.Lioncash
This commit mainly elaborates on some messages a little more. Also fixes some typos that slipped through the last commit. A large change in text can be seen in EXI_DeviceMemoryCard.cpp. I added more info as to why a write to a memory card may fail. (This actually was a reason I was unable to write to a memcard recently). Elaborations can be seen in WGL.cpp I did change some comments in some files that I was correcting logging messages in, however this is only if I spot a typo or if an abbreviation is lower-cased. Even in that case, the amount of changes done to comments is very minimal.
2013-03-31Fix some typos and correct some capitalizations in the log messages.Lioncash
Makes the logging look more orderly and less spammy when spitting out things.
2013-03-27Merge branch 'master' into wii-networkskidau
# By Ryan Houdek (185) and others # Via degasus (12) and others * master: (625 commits) Revert "Don't open/close file for every file operation." as it was crashing PokePark in Windows builds. Array overrun fixed in VertexShaderCache for the DX11 plugin. Fixed DSPTool build. Windows build fix Go back to assuming every HID device is a wiimote on Windows. Fixed issue 6117. Unfixed issue 6031. VideoSoftware: Improve fog range adjustment by using less magic and more comments. revert RasterFont for VideoSoftware ogl: fix virtual xfb Windows build fix from web interface... Adjusted the audio loop criteria, using >= on the Wii and == on GC. This fixes the audio static that occurred in Wii games after hours of play. Forced the exception check only for ARAM DMA transfers. Removed the Eternal Darkness boot hack and replaced it with an exception check. VideoSoftware: Implement fog range adjustment, fixing issue 6147. implement 4xSSAA for OGL move ogl-only settings into backend Fix description of disable fog, and move it to enhancements tab. Reverted rd76ca5783743 as it was made obsolete by r1d550f4496e4. Removed the tracking of the FIFO Writes as it was made obsolete by r1d550f4496e4. Forced the external exception check to occur sooner by changing the downcount. Mark the Direct3D9 backend deprecated. Prefer D3D11 and OpenGL over D3D9 by default. ... Conflicts: CMakeLists.txt Source/Core/Common/Common.vcxproj.filters Source/Core/Common/Src/CommonPaths.h Source/Core/Core/Core.vcxproj.filters Source/Core/Core/Src/Core.cpp Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp Source/VSProps/Dolphin.Win32.props Source/VSProps/Dolphin.x64.props
2013-03-19Clean up more space/tab mismatches in AudioCommon, Common, and VideoCommon.lioncash
Not planning to touch Core since it's the most actively changed part of the project.
2013-02-27Buildfix for non-legacy OSes.Jordan Woyak
2013-02-27Hopefully fix all filename handling to support Unicode.Jordan Woyak
2013-02-27Fix "Common" to build with "Unicode" project setting.Jordan Woyak
2013-02-26ARM Support without GLSLRyan Houdek
2013-02-23Merge branch 'master' into wii-networkMatthew Parlane
Conflicts: Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp
2013-02-20Fix OSX!Jordan Woyak
2013-02-20Hopefully kill a stupid warning on Windows.Jordan Woyak
2013-02-17Some cleanup of CWII_IPC_HLE_Device_FileIO:Jordan Woyak
The real file was never kept open for longer than a single operation so there was no point in dealing with it in DoState. Saving the real path in the savestate was also probably a bad idea. Savestates should be a bit more portable now.
2013-02-17Let's not CreateDir an empty string every time CreateFullPath is used, ↵Jordan Woyak
logging an error every time.
2013-01-28Merge branch 'master' into wii-networkMatthew Parlane
2013-01-26Merge branch 'master' into wii-networkMatthew Parlane
Conflicts: Source/Core/Common/Src/CommonPaths.h Source/Core/Common/Src/FileUtil.h Source/Core/Core/Src/HLE/HLE.cpp Source/Core/Core/Src/PowerPC/Interpreter/Interpreter.cpp
2013-01-24Fix a potential memory leak on non-windows systems.lioncash
Also added a FIXME to BPStructs.cpp and BPMemLoader.cpp
2013-01-16Move DSP settings to dolphin.iniRachel Bryk
2013-01-13themes directory stuffsJordan Woyak
2013-01-04Add generate id support.Matthew Parlane
Add hollywood id to config file. SSL and WC24 have their own logs now.
2012-12-26Always use the right user dir on windows.rog
2012-12-18Fix a memory leak based on Lioncash's patches.Ryan Houdek
2012-12-14If the HOME environment variable isn't set, fall back on to PWD. Closes 5584.Ryan Houdek
2012-06-19Added a button to dump the FakeVMEM from the memory debugger if the game uses itPierre Bourdon
2011-06-11Windows: Sets the cwd to the folder that dolphin.exe resides in.LPFaint99
Removes the ugliness that was the portable file, and now creating a shortcut or file association is less of a pain it is still necessary to modify the file association from ".../dolphin.exe" "%1" to ".../dolphin.exe" /e "%1" git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7593 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-05-24Adds the option to change the path to the wii nand rootLPFaint99
when nand root is changed the current sysconf is saved, and the sysconf in the new location is either loaded (if exists) or the default sysconf is created wii menu item is updated when the root changes small fix to saving gamelist paths to .ini paths that are removed from the gui are now removed from the ini instead of simply changing the number of paths git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7555 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-05-07Move the HLE hack of setting.txt file redirection to the BS2EmuLPFaint99
we already copy the file to memory here, now we also copy the file to 1/2/data/ This should really fix issue 4287. Thanks to hosigumayuugi for finding the exact cause of the issue git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7521 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-22Fixed some memory leaks. Only one was mine ;PJordan Woyak
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7392 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-11Wrapped fopen/close/read/write functions inside a simple "IOFile" class. ↵Jordan Woyak
Reading, writing, and error checking became simpler in most cases. It should be near impossible to forget to close a file now that the destructor takes care of it. (I hope this fixes Issue 3635) I have tested the functionality of most things, but it is possible I broke something. :p git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7328 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-01Pass std::string's by reference when possible.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7268 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-01More conversion from char * to std::string.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7266 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-28Convert GetUserPath to return a std::string instead of a const char *. This ↵Glenn Rice
simplifies its usage in most cases. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7265 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-11* Dump AVI output on every VI (fixes issue #4064).smelenchuk
* Add audio dumping (fixes issue #1638). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7131 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-01Fixed vs2010 SVNRevGen project. (Also changed "make_svnrev.h.vbs" to jscript ↵Jordan Woyak
and gave it some comments :p) Removed some old plugin stuff. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7030 8ced0084-cf51-0410-be5f-012b33b47a6e