-pal won't die if dendy was loaded from config on launch. if -dendy isn't specified, and if left from config, it will get overridden by -pal.
make deploy.bat a bit more handy
This commit is contained in:
parent
b830b49724
commit
d61634cfe4
|
@ -43,8 +43,8 @@ extern bool turbo;
|
|||
char *ParseArgies(int argc, char *argv[])
|
||||
{
|
||||
static ARGPSTRUCT FCEUArgs[]={
|
||||
{"-pal", &pal_setting_specified,&PAL, 0},
|
||||
{"-dendy", &pal_setting_specified,&dendy, 0},
|
||||
{"-pal", &pal_setting_specified, &PAL, 0},
|
||||
{"-dendy", &dendy_setting_specified,&dendy, 0},
|
||||
{"-noicon", 0, &status_icon, 0},
|
||||
{"-gg", 0, &genie, 0},
|
||||
{"-no8lim", 0, &eoptions, 0x8000|EO_NOSPRLIM},
|
||||
|
|
|
@ -147,6 +147,7 @@ int genie = 0;
|
|||
int pal_emulation = 0;
|
||||
int pal_setting_specified = 0;
|
||||
int dendy = 0;
|
||||
int dendy_setting_specified = 0;
|
||||
bool swapDuty = 0; // some Famicom and NES clones had duty cycle bits swapped
|
||||
int ntsccol = 0, ntsctint, ntschue;
|
||||
std::string BaseDirectory;
|
||||
|
@ -767,12 +768,15 @@ int main(int argc,char *argv[])
|
|||
LoadNewGamey(hAppWnd, 0);
|
||||
}
|
||||
|
||||
if (PAL && pal_setting_specified && !dendy_setting_specified)
|
||||
dendy = 0;
|
||||
|
||||
if (PAL && !dendy)
|
||||
FCEUI_SetRegion(1, pal_setting_specified);
|
||||
else if (dendy)
|
||||
FCEUI_SetRegion(2, pal_setting_specified);
|
||||
FCEUI_SetRegion(2, dendy_setting_specified);
|
||||
else
|
||||
FCEUI_SetRegion(0, pal_setting_specified);
|
||||
FCEUI_SetRegion(0, pal_setting_specified || dendy_setting_specified);
|
||||
|
||||
if(PaletteToLoad)
|
||||
{
|
||||
|
|
|
@ -46,6 +46,7 @@ extern int pal_setting_specified;
|
|||
// dendy and pal should have been designed alongside, using enum or alike
|
||||
// now it's not possible to do it easily, so we'll just use the flag here and there, not to touch PAL logics
|
||||
extern int dendy;
|
||||
extern int dendy_setting_specified;
|
||||
extern int status_icon;
|
||||
extern int frame_display;
|
||||
extern int rerecord_display;
|
||||
|
|
|
@ -1042,7 +1042,7 @@ bool ALoad(const char *nameo, char* innerFilename, bool silent)
|
|||
|
||||
if (GameInfo) FCEUI_CloseGame();
|
||||
|
||||
if (FCEUI_LoadGameVirtual(nameo, !pal_setting_specified, silent))
|
||||
if (FCEUI_LoadGameVirtual(nameo, !(pal_setting_specified || dendy_setting_specified), silent))
|
||||
{
|
||||
pal_emulation = FCEUI_GetCurrentVidSystem(0, 0);
|
||||
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
@echo off
|
||||
echo Password:
|
||||
set /p ANSWER=
|
||||
@echo on
|
||||
call archive.bat
|
||||
call upload.bat %1
|
||||
call upload.bat %ANSWER%
|
Loading…
Reference in New Issue