Pcsx2 and Microsoft Commands Line...?
#11
Downloaded pcsx2-1621 from official spot: http://pcsx2.dyndns.org/index.php#pcsx2

Tested but didn't work for running into bios.

This'd directly go bios, but now directly run game instead.
Quote:pcsx2 -bootmode 0


EDIT: I found it, Now use this to enter bios.
Quote:pcsx2 -bootmode 3
durable PC since 2008
CPU : E7200 @ 2.53 GHz 1.04 V / OC 3.7 GHz 1.36 V (390*9.5, 4GB DDR2 780)
GPU : 8600GT (GDDR3, 256 MB) / OC (750 / 900)
BOARD : GA-EP31-DS3L (rev 1.0) broken and bought a second hand one replaced
PSU : 300 W
OS : Windows 7 Home Basic x86

Sponsored links

#12
pcsx2fan, can I have some explaination about command line from you(for pcsx2 as I said above)? ex, paramaters..and how to use them. Thanks first...!!!
#13
Command Line Syntax (taken from WinMain.cpp):

Code:
pcsx2 [options] [cdimage/elf file]

   -cfg [file] {configuration file}
   -bootmode [mode] {0 - quick (default), 1 - bios,  2 - load elf}
   -nogui {disables display of the gui - skips right to opening the GS window}
   -help {display this help file}
   -loadgs [file] {Loads a gsstate}

Run without GUI Options:

Plugin Overrides (specified dlls will be used in place of configured dlls):
   -cdvd [dllpath] {specifies an override for the CDVD plugin}
   -gs [dllpath] {specifies an override for the GS plugin}
   -spu [dllpath] {specifies an override for the SPU2 plugin}
   -pad [dllpath] {specifies an override for *both* pad plugins}
   -pad1 [dllpath] {specifies an override for the PAD1 plugin only}
   -pad2 [dllpath] {specifies an override for the PAD2 plugin only}
   -dev9 [dllpath] {specifies an override for the DEV9 plugin}

pcsx2 r1593 introduced some changes for the -bootmode parameter, description here: http://code.google.com/p/pcsx2/source/detail?r=1593
CPU Core [email protected] | GPU Nvidia Geforce GTX 570 | RAM 8GB DDR-3 1600MHz CL9 | OS Win7 Ultimate (x64) SP1
EMU PCSX2 v1.1.0 r5645 | GS GSdx SSE4 r5632 | SPU2 SPU2-X r5559 | PAD LilyPad r5403 | CDVD cdvdGigaherz r5403
#14
What I did is searching Entire Solution in VC++2008 Express SP1 for "bootmode", with SVN sources of PCSX2-r1622.

Apparently, Normal & Quick are equivalent indicate 0, for normal boot. 3 for bios
Quote:Find all "bootmode", Subfolders, Find Results 1, "Entire Solution"
R:\PCSX2\pcsx2\HostGui.h(26): BootMode_Normal = 0,
R:\PCSX2\pcsx2\HostGui.h(27): BootMode_Elf = 1, // not compatible with bios flag, probably
R:\PCSX2\pcsx2\HostGui.h(28): BootMode_Iso = 2,
R:\PCSX2\pcsx2\HostGui.h(29): BootMode_NoDisc = 3, // nodisc implies bios.
R:\PCSX2\pcsx2\HostGui.h(31): BootMode_Quick = 0,
R:\PCSX2\pcsx2\HostGui.h(32): BootMode_Bios = 0x10000,
R:\PCSX2\pcsx2\HostGui.h(34): BootMode_ModeMask = 0xFFFF,
R:\PCSX2\pcsx2\HostGui.h(46): StartupMode BootMode;
R:\PCSX2\pcsx2\windows\WinMain.cpp(69): "\t-bootmode [mode] {0 - quick (default), 1 - bios, 2 - load elf}\n"
R:\PCSX2\pcsx2\windows\WinMain.cpp(377): int mode = g_Startup.BootMode & BootMode_ModeMask;
R:\PCSX2\pcsx2\windows\WinMain.cpp(379): if( g_Startup.Enabled && (mode != BootMode_Elf) )
R:\PCSX2\pcsx2\windows\WinMain.cpp(382): if(mode == BootMode_Iso)
R:\PCSX2\pcsx2\windows\WinMain.cpp(384): else if(mode == BootMode_NoDisc)
R:\PCSX2\pcsx2\windows\WinMain.cpp(394): (g_Startup.BootMode == BootMode_Elf) ? g_Startup.ImageName : NULL,
R:\PCSX2\pcsx2\windows\WinMain.cpp(395): ((g_Startup.BootMode & BootMode_Bios) != 0)
R:\PCSX2\pcsx2\windows\WinSysExec.cpp(69): g_Startup.BootMode = BootMode_Normal;
R:\PCSX2\pcsx2\windows\WinSysExec.cpp(109): else if( CmdSwitchIs( "bootmode" ) ) {
R:\PCSX2\pcsx2\windows\WinSysExec.cpp(110): g_Startup.BootMode = (StartupMode)atoi( param );
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(93): g_Startup.BootMode = BootMode_Bios;
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(112): else if( strcmp(token, "-bootmode" ) == 0)
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(115): g_Startup.BootMode = (StartupMode)atoi( token);
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(187): int mode = g_Startup.BootMode & BootMode_ModeMask;
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(189): if( g_Startup.Enabled && (mode != BootMode_Elf) )
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(192): if(mode == BootMode_Iso)
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(194): else if(mode == BootMode_NoDisc)
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(204): (g_Startup.BootMode == BootMode_Elf) ? g_Startup.ImageName : NULL,
R:\PCSX2\pcsx2\Linux\LnxSysExec.cpp(205): ((g_Startup.BootMode & BootMode_Bios) != 0)
R:\PCSX2\pcsx2\Plugins.cpp(850): if (g_Startup.BootMode != BootMode_Elf)
R:\PCSX2\pcsx2\System.cpp(409): g_Startup.BootMode = (elf_file) ? BootMode_Elf : BootMode_Normal;
R:\PCSX2\pcsx2\R3000AInterpreter.cpp(52): "QueryBootMode", "RegisterBootMode", "setFlag", "resetFlag",
Matching lines: 30 Matching files: 7 Total files searched: 843


Now for practicality, send pcsx2.exe to desktop (create shortcut). for shortcut target, add command line parameters as suffix.

For instance, you wanna enter game with one click, shoot on this:
[Image: pcsx2_r1621_command_line_shortcut.png]


Summary for Usage
Go game
Quote:pcsx2 -bootmode 0

Go bios
Quote:pcsx2 -bootmode 3

Specify ISO to play with, use with Linuz Iso CDVD.
Quote:pcsx2 X:\Path\Game.iso


Note
Currently for PCSX2-r1622 I tested, command line may alter in future. I guess.


Known Issue
When cooperating with Esc Hack (Use Esc key to fully exit pcsx2). Hit Esc won't allow you quit emulator, but go back GUI as if no Esc Hack applied.
durable PC since 2008
CPU : E7200 @ 2.53 GHz 1.04 V / OC 3.7 GHz 1.36 V (390*9.5, 4GB DDR2 780)
GPU : 8600GT (GDDR3, 256 MB) / OC (750 / 900)
BOARD : GA-EP31-DS3L (rev 1.0) broken and bought a second hand one replaced
PSU : 300 W
OS : Windows 7 Home Basic x86
#15
OK, it's pretty old thread but that's exactly what I was looking for.

This is how the shortcut looks like:
[Image: 43159983.jpg]And it opens PCSX2 but doesn't boot the BIOS. -bootmode 1 and -help don't work either. What am I doing wrong?

I tried to modify and build PCSX2 myself but failed miserably with VS2010 B2.

Also, what are these PCSX2-r1622, pcsx2-r1593, pcsx2-r1493m that you are talking about?

Cáno
#16
Cano: the numbers stand for the beta releases afaik, hope that helps Wink
#17
(07-24-2009, 05:10 PM)phikhanh Wrote: I mean, we uses the batch file to run game(by pcsx2). But without excute pcsx2 application, thing will make appear Pcsx2 Main menu...
Example : I want to play Final Fantasy XII. First, I run Pcsx2 app and have some configs for this game --> File --> Run...But I want to create a batch file (FinalFantasyXII.bat) ... Double click"FinalFantasyXII.bat" --> and play...won't make appear Pcsx2 Main menu.
Does Pcsx2 app have any parameters to do so...
Can't do what I mean with this file ...
Run.bat
@echo off
start C:\Program" "Files\Pcsx2\pcsx2-0.9.6.exe
pause


try something like this
---PCSX2.bat file--------
@echo off

SET PCSX2="C:\Program Files (x86)\PCSX2 1.2.1\pcsx2-r5875.exe"
SET GAME="LOCATION\GAME.iso"

%PCSX2% %GAME% --fullboot
#18
Necros aren't allowed.
[Insert Witty Sig Here.]
#19
The most recent post in this thread is more than 8 months old. Please create a new thread and refrain from posting in threads older than 8 months in the future. Please also review the forum rules. Thank you.
CPU : AMD Ryzen 7 3800X
Mobo : Asus PRIME B450-PLUS
GPU : NVIDIA GeForce RTX 3070
RAM : 16 Go
#20
(02-01-2015, 02:26 PM)KeyToTruth12 Wrote: Necros aren't allowed.

IMO it's OK if there's some relevant new info in them.

Regardless, please read this thread for some command line tips: http://forums.pcsx2.net/Thread-Auto-Boot...Separately

Closing this thread now since the issue is not relevant anymore.




Users browsing this thread: 1 Guest(s)