Version bump: Nucleus v0.1.0

This commit is contained in:
Alexandro Sánchez Bach 2016-05-13 16:53:49 +02:00
parent b7a9a9ffa5
commit 7fd1c770fd
8 changed files with 17 additions and 10 deletions

View file

@ -1,6 +1,6 @@
Nucleus
=======
[![Last Release](https://img.shields.io/badge/version-0.0.4-brightgreen.svg?style=flat)](https://github.com/AlexAltea/nucleus/releases)
[![Last Release](https://img.shields.io/badge/version-0.1.0-brightgreen.svg?style=flat)](https://github.com/AlexAltea/nucleus/releases)
Created by Alexandro Sánchez Bach.

View file

@ -18,7 +18,7 @@ HostPathDevice::HostPathDevice(const Path& mountPath, const Path& localPath)
File* HostPathDevice::openFile(const Path& path, OpenMode mode) {
auto* file = new HostPathFile(localPath + path, mode);
if (!file->isOpen()) {
if (!file || !file->isOpen()) {
delete file;
return nullptr;
}

View file

@ -56,7 +56,9 @@ HostPathFile::HostPathFile(const Path& path, OpenMode mode) {
}
HostPathFile::~HostPathFile() {
std::fclose(handle);
if (handle) {
std::fclose(handle);
}
}
Size HostPathFile::read(void* dst, Size size) {

View file

@ -49,7 +49,7 @@ void nucleusPrepare(HWND hwnd, HDC hdc, int width, int height) {
int nucleusInitialize(int argc, char **argv) {
if (argc <= 1) {
std::cout
<< "Nucleus v0.0.4: A PlayStation 3 emulator.\n"
<< "Nucleus v0.1.0: A PlayStation 3 emulator.\n"
<< "Usage: nucleus [arguments] path/to/executable.ppu.self\n"
<< "Arguments:\n"
<< " --console Avoids the Nucleus UI window, disabling GPU backends.\n"

View file

@ -33,10 +33,12 @@ static struct KeyvaultHandler {
KeyvaultHandler() {
auto file = fs::AppFileSystem::openFile(fs::APP_LOCATION_ROAMING, KEYVAULT_FILE, fs::Read);
auto size = file->attributes().size;
buffer.resize(size + 1);
file->read(buffer.data(), size);
doc.parse<0>(buffer.data());
if (file.get()) {
auto size = file->attributes().size;
buffer.resize(size + 1);
file->read(buffer.data(), size);
doc.parse<0>(buffer.data());
}
}
} keyvault;

View file

@ -27,7 +27,7 @@ ScreenLogo::ScreenLogo(UI* manager) : Screen(manager) {
logo->style.width = 50_pct;
version = new WidgetText(&body, "version");
version->update(lightFont, 30_px, "Version v0.1.0 from 2016-04-01");
version->update(lightFont, 30_px, "Version v0.1.0 from 2016-05-14");
version->style.margin.top = 0_px;
version->style.width = 25_pct;
version->style.color = Color{1,1,1,1};

View file

@ -11,7 +11,7 @@
<key>CFBundleName</key>
<string>Nucleus</string>
<key>CFBundleVersion</key>
<string>0.0.4</string>
<string>0.1.0</string>
<!-- Requirements -->
<key>UIRequiredDeviceCapabilities</key>

View file

@ -35,5 +35,8 @@ HRESULT DropTarget::DragLeave() {
}
HRESULT DropTarget::Drop(IDataObject* pDataObj, DWORD grfKeyState, POINTL pt, DWORD* pdwEffect) {
if (pDataObj == nullptr) {
return E_FAIL;
}
return E_NOTIMPL;
}