Win32 - Hex Editor - uses ROm name for Dump Rom/PPU to file
This commit is contained in:
parent
289183de56
commit
7b3b667c08
|
@ -1,4 +1,5 @@
|
|||
---version 2.0.4 yet to be released---
|
||||
14-nov-2008 - adelikat - win32 Hex Editor - Dump Rom & Dump PPU to file Dialog - uses ROM to build default filename
|
||||
14-nov-2008 - adelikat - Win32 Memwatch - Save as dialog - uses ROM name to build default memwatch filename if there is no last used memwatch filename
|
||||
14-nov-2008 - adelikat - Win32 Text Hooker fixes - Init error checking reinstated, save .tht file no longer crashes, Dialog updates as ROM plays, Remembers window position, fix bug where canceling save as produces an error message, Save As produces default filename based on loaded ROM
|
||||
14-nov-2008 - adelikat - fixed but when aspect correction and special scaling 3x are set, video was getting resized incorrectly
|
||||
|
|
|
@ -895,6 +895,8 @@ char *GetRomName()
|
|||
splitpath(LoadedRomFName,drv,dir,name,ext); //Extract components of the ROM path
|
||||
Rom = name; //Pull out the Name only
|
||||
}
|
||||
else
|
||||
Rom = "";
|
||||
char*mystring = (char*)malloc(2048*sizeof(char));
|
||||
strcpy(mystring, Rom.c_str()); //Convert string to char*
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include "memviewsp.h"
|
||||
#include "cheat.h"
|
||||
#include <assert.h>
|
||||
#include "main.h"
|
||||
//#include "string.h"
|
||||
|
||||
#define MODE_NES_MEMORY 0
|
||||
|
@ -541,7 +542,7 @@ int DeleteCheatCallB(char *name, uint32 a, uint8 v, int compare,int s,int type,
|
|||
|
||||
void dumpToFile(const char* buffer, unsigned int size)
|
||||
{
|
||||
char name[257] = {0};
|
||||
char name[513] = {0};
|
||||
|
||||
OPENFILENAME ofn;
|
||||
memset(&ofn, 0, sizeof(ofn));
|
||||
|
@ -549,6 +550,7 @@ void dumpToFile(const char* buffer, unsigned int size)
|
|||
ofn.hInstance=fceu_hInstance;
|
||||
ofn.lpstrTitle="Save to file ...";
|
||||
ofn.lpstrFilter="All files (*.*)\0*.*\0";
|
||||
strcpy(name,GetRomName());
|
||||
ofn.lpstrFile=name;
|
||||
ofn.nMaxFile=256;
|
||||
ofn.Flags=OFN_EXPLORER|OFN_HIDEREADONLY;
|
||||
|
|
Loading…
Reference in New Issue