Publish VCC Plus OSS source distribution for 3.6.2 build 60
This commit is contained in:
commit
c652a5276d
1192 files changed
+272368
No files matched your search
@@ -0,0 +1,68 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright 2015 by Joseph Forgione
|
||||
// This file is part of VCC (Virtual Color Computer).
|
||||
//
|
||||
// VCC (Virtual Color Computer) is free software: you can redistribute itand/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.
|
||||
//
|
||||
// VCC (Virtual Color Computer) 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
|
||||
// VCC (Virtual Color Computer). If not, see <http://www.gnu.org/licenses/>.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#include <Windows.h>
|
||||
#include "GMCCartridge.h"
|
||||
#include <vcc/util/DialogOps.h>
|
||||
|
||||
HINSTANCE gModuleInstance = nullptr;
|
||||
GMCCartridge theCart;
|
||||
|
||||
std::string ExtractFilename(std::string path)
|
||||
{
|
||||
char filename[MAX_PATH];
|
||||
char ext[MAX_PATH];
|
||||
|
||||
_splitpath(path.c_str(), nullptr, nullptr, filename, ext);
|
||||
path = filename;
|
||||
if (ext[0])
|
||||
{
|
||||
path += ext;
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
|
||||
std::string SelectROMFile()
|
||||
{
|
||||
std::string selectedPath;
|
||||
|
||||
FileDialog dlg;
|
||||
dlg.setFilter("ROM Files\0*.ROM\0\0");
|
||||
dlg.setDefExt("rom");
|
||||
dlg.setTitle("Select GMC Rom file");
|
||||
if (dlg.show()) {
|
||||
selectedPath = dlg.path();
|
||||
} else {
|
||||
selectedPath.clear();
|
||||
}
|
||||
return selectedPath;
|
||||
}
|
||||
|
||||
|
||||
BOOL APIENTRY DllMain(HINSTANCE hinst, DWORD reason, LPVOID foo)
|
||||
{
|
||||
if (reason == DLL_PROCESS_ATTACH) {
|
||||
gModuleInstance = hinst;
|
||||
} else if (reason == DLL_PROCESS_DETACH) {
|
||||
//Clean up here.
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user