-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Imagine: Clean up PixelFormat code * Imagine: Remove -funsafe-loop-optimizations GCC flag which has no effect in recent versions * 2600.emu: Replace FilesystemNode class with a smaller and simpler version * GBA.emu: Update to VBA-M GIT 05c09ff (2024.05.10), mostly code reorg
- Loading branch information
Robert Broglia
committed
May 12, 2024
1 parent
540c1e6
commit ab49bdc
Showing
149 changed files
with
3,424 additions
and
17,689 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#pragma once | ||
|
||
/* This file is part of 2600.emu. | ||
2600.emu is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
2600.emu is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with 2600.emu. If not, see <http://www.gnu.org/licenses/> */ | ||
|
||
#include "bspf.hxx" | ||
#include <utility> | ||
|
||
class FilesystemNode | ||
{ | ||
public: | ||
constexpr FilesystemNode() = default; | ||
template<class T> | ||
FilesystemNode(T&& path): path{std::forward<T>(path)} {} | ||
|
||
friend ostream& operator<<(ostream& os, const FilesystemNode& node) | ||
{ | ||
return os << node.getPath(); | ||
} | ||
|
||
bool exists() const; | ||
const string& getName() const; | ||
const string& getPath() const; | ||
bool isDirectory() const; | ||
bool isFile() const; | ||
bool isReadable() const; | ||
bool isWritable() const; | ||
size_t read(ByteBuffer& buffer, size_t size = 0) const { return 0; } | ||
size_t read(stringstream& buffer) const { return 0; } | ||
size_t write(const ByteBuffer& buffer, size_t size) const { return 0; } | ||
size_t write(const stringstream& buffer) const { return 0; } | ||
string getNameWithExt(const string& ext) const; | ||
string getPathWithExt(const string& ext) const; | ||
|
||
protected: | ||
string path; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.