CXBX-R

MEmu := "Cxbx-Reloaded"

MEmuV := "nightly"

MURL := ["https://github.com/Cxbx-Reloaded/Cxbx-Reloaded"]

MAuthor := ["teeedubb"]

MVersion := "1.0"

MSystem := ["Microsoft XBOX"]

;----------------------------------------------------------------------------

; Notes: 

;Based on djvj's cxbx module

;

;----------------------------------------------------------------------------

StartModule()

FadeInStart()


settingsFile := modulePath . "\" . moduleName . ".ini"

Fullscreen := IniReadCheck(settingsFile, "settings", "Fullscreen","true",,1)

7z(romPath, romName, romExtension, 7zExtractPath)


; Setting Fullscreen setting in registry if it doesn't match what user wants above

currentFullScreen := ReadReg("Fullscreen")

If ( Fullscreen != "true" And currentFullScreen = 1 )

    WriteReg("Fullscreen", 0)

Else If ( Fullscreen = "true" And currentFullScreen = 0 )

    WriteReg("Fullscreen", 1)


    Run(executable . " """ . romPath . "\default.xbe""", emuPath)


WinWait("Cxbx-Reloaded ahk_class WndMain")

WinWaitActive("Cxbx-Reloaded ahk_class WndMain")


FadeInExit()

Process("WaitClose", executable)

7zCleanUp()

FadeOutExit()

ExitModule()



ReadReg(var1) {

    RegRead, regValue, HKEY_CURRENT_USER, Software\Cxbx-Reloaded\XBVideo, %var1%

    Return %regValue%

}


WriteReg(var1, var2) {

    RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Cxbx-Reloaded\XBVideo, %var1%, %var2%

}


CloseProcess:

    FadeOutStart()

    WinClose("Cxbx-Reloaded ahk_class WndMain")

Return

<?xml version="1.0" encoding="UTF-8"?>

<INISCHEMA>

    <INIFILES>

        <INIFILE name="%ModuleName%" required="false">

            <INITYPE>Module</INITYPE>

            <SECTIONS>

                <SECTION name="settings" required="false">

                    <SECTIONTYPE>Global</SECTIONTYPE>

                    <KEYS>

                        <KEY name="Fullscreen" required="false" nullable="false">

                            <KEYTYPE>Boolean</KEYTYPE>

                            <DESCRIPTION>If true emulator will run fullscreen.</DESCRIPTION>

                        </KEY>

                    </KEYS>

                </SECTION>

            </SECTIONS>

        </INIFILE>

    </INIFILES>

</INISCHEMA>

[settings] Fullscreen=true


Compatibility Games: 



Microsoft Xbox Original Using the CXBX Reloaded emulator for the best performances AVAILABLE AT : https://github.com/Cxbx-Reloaded/Cxbx-Reloaded

About :


Cxbx-Reloaded is a work-in-progress Xbox and Sega Chihiro Emulator for Microsoft Windows. Insignia is a replacement for Xbox's online services that became defunct in April 2010 Money received will go towards funding myself to spend more hours working on these and other projects, purchasing games to test, and purchasing equipment required to further develop the emulator and Insignia. Cxbx-Reloaded: Home: http://cxbx-reloaded.co.uk/ GitHub: http://github.com/Cxbx-Reloaded/Cxbx-Reloaded Insignia Discord: https://discord.gg/CWkdVdc