mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-09 13:30:56 +02:00
Update to v098r10 release.
byuu says: Changelog: - synchronized tomoko, loki, icarus with extensive changes to nall (118KiB diff)
This commit is contained in:
@@ -54,7 +54,6 @@ struct image {
|
||||
inline auto write(uint8_t* data, uint64_t value) const -> void;
|
||||
|
||||
inline auto free() -> void;
|
||||
inline auto empty() const -> bool;
|
||||
inline auto load(const string& filename) -> bool;
|
||||
inline auto allocate(unsigned width, unsigned height) -> void;
|
||||
|
||||
|
@@ -86,7 +86,7 @@ auto image::operator=(image&& source) -> image& {
|
||||
}
|
||||
|
||||
image::operator bool() const {
|
||||
return !empty();
|
||||
return _data && _width && _height;
|
||||
}
|
||||
|
||||
auto image::operator==(const image& source) const -> bool {
|
||||
@@ -137,10 +137,6 @@ auto image::free() -> void {
|
||||
_data = nullptr;
|
||||
}
|
||||
|
||||
auto image::empty() const -> bool {
|
||||
return !_data || !_width || !_height;
|
||||
}
|
||||
|
||||
auto image::load(const string& filename) -> bool {
|
||||
if(loadBMP(filename) == true) return true;
|
||||
if(loadPNG(filename) == true) return true;
|
||||
|
Reference in New Issue
Block a user