mirror of
https://github.com/AlexAltea/nucleus.git
synced 2024-05-15 18:55:02 -04:00
Version bump: Nucleus v0.1.0
This commit is contained in:
parent
b7a9a9ffa5
commit
7fd1c770fd
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue