summaryrefslogtreecommitdiff
path: root/Source/Core/Common/LinearDiskCache.h
AgeCommit message (Collapse)Author
2025-04-19LinearDiskCache: Use make_unique_for_overwrite.Jordan Woyak
2023-04-19Common/LinearDiskCache: Move interface into Common namespaceLioncash
Gets the interface out of the global namespace.
2022-01-29IOFile: Rename Clear() to ClearError() for clarity.Admiral H. Curtiss
2022-01-29IOFile: Make origin parameter to Seek() an enum class.Admiral H. Curtiss
2022-01-14Fix static initialisation order fiasco issue for Version variablesLéo Lam
Fixes a crash that could occur if the static constructor function for the MainSettings.cpp TU happened to run before the variables in Common/Version.cpp are initialised. (This is known as the static initialisation order fiasco.) By using wrapper functions, those variables are now guaranteed to be constructed on first use.
2021-10-13Fix all uninitialized variable warnings (C26495)Pokechu22
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-01-27rename Common/File to Common/IOFileShawn Hoffman
2020-12-19Common/LinearDiskCache: Handle truncated shadercache files.Admiral H. Curtiss
2020-12-19Common/LinearDiskCache: Use unique_ptr instead of new/delete.Admiral H. Curtiss
2020-11-05Common/LinearDiskCache: Replace std::fstream with File::IOFileJosJuice
File::IOFile is better suited to this type of task. Split out from a future PR.
2018-05-30Remove old GCC version checksLéo Lam
2018-03-27LinearDiskCache: Don't cast away const in Read()Lioncash
We really shouldn't make the out pointer in the read function const and then summarily cast it away. Also alters Write to be consistent with casting.
2017-12-05Don't use wrong encoding for paths when opening streams on WindowsJosJuice
2017-09-09Common: Move version strings to their own headerLioncash
Ideally Common.h wouldn't be a header in the Common library, and instead be renamed to something else, like PlatformCompatibility.h or something, but even then, there's still some things in the header that don't really fall under that label This moves the version strings out to their own version header that doesn't dump a bunch of other unrelated things into scope, like what Common.h was doing. This also places them into the Common namespace, as opposed to letting them sit in the global namespace.
2017-06-15Add a namespace to OpenFStreamJosJuice
For consistency with the other functions in FileUtil.h.
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2016-05-05SCM: Use std::string.degasus
Those macros may be defined, or not. We should support both cases, so use std::string as it also defines the length of the string.
2016-01-21Correct ampersands as wellmathieui
2016-01-21More asterisksmathieui
2016-01-04Merge pull request #3431 from stenzek/shadercacheMathew Maidment
ShaderGen: Remove virtual methods and string from ShaderGeneratorInterface.
2016-01-02VideoBackend: Get rid of a boolean globalLioncash
Also gets rid of global headers
2016-01-02ShaderGen: Remove virtual methods from ShaderGeneratorInterface, move string ↵Stenzek
buffer to ShaderCode This fixes the crashes occuring at startup with a non-empty shader cache. Because LinearDiskCache reads/writes to the storage of ShaderUid, ShaderUid must be trivially copyable. Additionally, adds a static assert to LinearDiskCache to ensure this doesn't happen in the future. The initialization of ShaderUid data has been moved to the code generation functions, so the above condition holds true.
2015-09-29Fix -Wuninitialized warningsTillmann Karras
2015-09-15Common: Get rid of a few pointer castsLioncash
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
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-11Fixes spacing for "for", "while", "switch" and "if"Matthew Parlane
Also moved && and || to ends of lines instead of start. Fixed misc vertical alignments and some { needed newlining.
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 LinearDiskCache.h relying on a file not directly included.Pierre Bourdon
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-17Second and final pass of clearing out tabs.Lioncash
2014-02-10Replace all include guard ifdefs with "#pragma once"lioncash
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre