Esempio n. 1
0
static void test__print_as_ascii_hex__does_nothing_else()
{
	disable_auto_stubs();
	N_STUB(TEST_SIZE, xfprintf, 1);
	STUB(xfprintf, 1);
	CALL(print_as_ascii_hex(TEST_OUTPUT, TEST_BYTES, TEST_SIZE));
}
Esempio n. 2
0
//static int ismounted (int hd)
//FIXME:
static int ismounted (FILE* f) {
    STUB("");
    int mounted;
    //mounted = 1;
    mounted = 0;
    return mounted;
}
OSStatus AudioConverter::setProperty(AudioConverterPropertyID inPropertyID, UInt32 inPropertyDataSize, const void *inPropertyData)
{
	switch (inPropertyID)
	{
		case kAudioConverterEncodeBitRate:
		{
			return setPropertyT(inPropertyDataSize, &m_outBitRate, inPropertyData);
		}
		case kAudioConverterInputChannelLayout:
		{
		}
		case kAudioConverterOutputChannelLayout:
		{
		}
		case kAudioConverterCurrentOutputStreamDescription:
		{
			return kAudioConverterErr_PropertyNotSupported;
			//return setPropertyT(inPropertyDataSize, &m_sourceFormat, inPropertyData);
		}
		case kAudioConverterCurrentInputStreamDescription:
		{
			return kAudioConverterErr_PropertyNotSupported;
			//return setPropertyT(inPropertyDataSize, &m_destinationFormat, inPropertyData);
		}
		default:
		{
			STUB();
			return kAudioConverterErr_PropertyNotSupported;
		}
	}
	
	return unimpErr;
}
Esempio n. 4
0
HRESULT WINAPI
NineSwapChain9_GetFrontBufferData( struct NineSwapChain9 *This,
                                   IDirect3DSurface9 *pDestSurface )
{
    /* TODO: GetFrontBuffer() and copy the contents */
    STUB(D3DERR_INVALIDCALL);
}
Esempio n. 5
0
int platform_get_drives(){
	/*
	return GetLogicalDrives();
	*/
	STUB();
	return 0;
}
END_TEST

make_mock (setsockopt, int,
           int sockfd, int level, int optname,
           const void *optval, socklen_t optlen)
{
  STUB (setsockopt, sockfd, level, optname, optval, optlen);
}
Esempio n. 7
0
void Actor::Think_NoClip
	(
	void
	)

{
	// FIXME: stub
	STUB();
}
Esempio n. 8
0
void Actor::Think_Idle
	(
	void
	)

{
	// FIXME: stub
	STUB();
}
Esempio n. 9
0
void Actor::Begin_Idle
	(
	void
	)

{
	// FIXME: stub
	STUB();
}
Esempio n. 10
0
bool Actor::IsNoClipState
	(
	int state
	)

{
	// FIXME: stub
	STUB();
	return false;
}
Esempio n. 11
0
void show_endscreen(display& /*disp*/, const t_string& /*text*/, unsigned int /*duration*/)
{
	STUB();
	LOG_NG << "show_endscreen() invoked...\n";

	config story_cfg;

	// FIXME: stub!

	LOG_NG << "show_endscreen() completed...\n";
}
HRESULT NINE_WINAPI
Nine9ExOverlayExtension_CheckDeviceOverlayType( struct Nine9ExOverlayExtension *This,
                                                UINT Adapter,
                                                D3DDEVTYPE DevType,
                                                UINT OverlayWidth,
                                                UINT OverlayHeight,
                                                D3DFORMAT OverlayFormat,
                                                D3DDISPLAYMODEEX *pDisplayMode,
                                                D3DDISPLAYROTATION DisplayRotation,
                                                D3DOVERLAYCAPS *pOverlayCaps )
{
    STUB(D3DERR_INVALIDCALL);
}
Esempio n. 13
0
/**
 * The function that is called directly from the host application (rct2.exe)'s WinMain. This will be removed when OpenRCT2 can
 * be built as a stand alone application.
 */
int main(int argc, const char **argv)
{
	//RCT2_GLOBAL(RCT2_ADDRESS_HINSTANCE, HINSTANCE) = hInstance;
	//RCT2_GLOBAL(RCT2_ADDRESS_CMDLINE, LPSTR) = lpCmdLine;

	STUB();
	int run_game = cmdline_run(argv, argc);
	if (run_game == 1)
	{
		openrct2_launch();
	}

	exit(gExitCode);
	return gExitCode;
}
Esempio n. 14
0
void show_storyscreen(display& disp, const vconfig& story_cfg, const std::string& scenario_name)
{
	LOG_NG << "entering storyscreen procedure...\n";

	storyscreen::controller ctl(disp, story_cfg, scenario_name);

	try {
		ctl.show();
	} catch(storyscreen::controller::quit const&) {
		LOG_NG << "leaving storyscreen for titlescreen...\n";
		STUB();
	}

	LOG_NG << "leaving storyscreen procedure...\n";
}
Esempio n. 15
0
uint16 platform_get_locale_language(){
	/*
	CHAR langCode[4];

	if (GetLocaleInfo(LOCALE_USER_DEFAULT,
		LOCALE_SABBREVLANGNAME,
		(LPSTR)&langCode,
		sizeof(langCode)) == 0){
		return LANGUAGE_UNDEFINED;
	}

	if (strcmp(langCode, "ENG") == 0){
		return LANGUAGE_ENGLISH_UK;
	}
	else if (strcmp(langCode, "ENU") == 0){
		return LANGUAGE_ENGLISH_US;
	}
	else if (strcmp(langCode, "DEU") == 0){
		return LANGUAGE_GERMAN;
	}
	else if (strcmp(langCode, "NLD") == 0){
		return LANGUAGE_DUTCH;
	}
	else if (strcmp(langCode, "FRA") == 0){
		return LANGUAGE_FRENCH;
	}
	else if (strcmp(langCode, "HUN") == 0){
		return LANGUAGE_HUNGARIAN;
	}
	else if (strcmp(langCode, "PLK") == 0){
		return LANGUAGE_POLISH;
	}
	else if (strcmp(langCode, "ESP") == 0){
		return LANGUAGE_SPANISH;
	}
	else if (strcmp(langCode, "SVE") == 0){
		return LANGUAGE_SWEDISH;
	}
	else if (strcmp(langCode, "ITA") == 0){
		return LANGUAGE_ITALIAN;
	}
	else if (strcmp(langCode, "POR") == 0){
		return LANGUAGE_PORTUGUESE_BR;
	}
	*/
	STUB();
	return LANGUAGE_ENGLISH_UK;
}
Esempio n. 16
0
uint8 platform_get_locale_currency(){
	/*
	CHAR currCode[4];

	if (GetLocaleInfo(LOCALE_USER_DEFAULT,
		LOCALE_SINTLSYMBOL,
		(LPSTR)&currCode,
		sizeof(currCode)) == 0){
		return CURRENCY_POUNDS;
	}
	if (strcmp(currCode, "GBP") == 0){
		return CURRENCY_POUNDS;
	}
	else if (strcmp(currCode, "USD") == 0){
		return CURRENCY_DOLLARS;
	}
	else if (strcmp(currCode, "EUR") == 0){
		return CURRENCY_EUROS;
	}
	else if (strcmp(currCode, "SEK") == 0){
		return CURRENCY_KRONA;
	}
	else if (strcmp(currCode, "DEM") == 0){
		return CURRENCY_DEUTSCHMARK;
	}
	else if (strcmp(currCode, "ITL") == 0){
		return CURRENCY_LIRA;
	}
	else if (strcmp(currCode, "JPY") == 0){
		return CURRENCY_YEN;
	}
	else if (strcmp(currCode, "ESP") == 0){
		return CURRENCY_PESETA;
	}
	else if (strcmp(currCode, "FRF") == 0){
		return CURRENCY_FRANC;
	}
	else if (strcmp(currCode, "NLG") == 0){
		return CURRENCY_GUILDERS;
	}
	*/
	STUB();
	return CURRENCY_POUNDS;
}
Esempio n. 17
0
uint8 platform_get_locale_measurement_format(){
	/*
	UINT measurement_system;
	if (GetLocaleInfo(LOCALE_USER_DEFAULT,
		LOCALE_IMEASURE | LOCALE_RETURN_NUMBER,
		(LPSTR)&measurement_system,
		sizeof(measurement_system)) == 0){
		return MEASUREMENT_FORMAT_IMPERIAL;
	}
	switch (measurement_system){
	case 0:
		return MEASUREMENT_FORMAT_METRIC;
	case 1:
	default:
		return MEASUREMENT_FORMAT_IMPERIAL;
	}*/
	STUB();
	return MEASUREMENT_FORMAT_METRIC;
}
Esempio n. 18
0
void master_sound_volume (int dir)
{
    STUB("");
#if 0
    int vol, mute, r;

    r = get_master_volume (&vol, &mute);
    if (!r)
            return;
    if (dir == 0)
            mute = mute ? 0 : 1;
    vol += dir * (65536 / 10);
    if (vol < 0)
            vol = 0;
    if (vol > 65535)
            vol = 65535;
    aset_master_volume (vol, mute);
    config_changed = 1;
#endif
}
Esempio n. 19
0
uint8 platform_get_locale_temperature_format(){
	/*
	// There does not seem to be a function to obtain this, just check the countries
	UINT country;
	if (GetLocaleInfo(LOCALE_USER_DEFAULT,
		LOCALE_IMEASURE | LOCALE_RETURN_NUMBER,
		(LPSTR)&country,
		sizeof(country)) == 0){
		return TEMPERATURE_FORMAT_C;
	}
	switch (country){
	case CTRY_UNITED_STATES:
	case CTRY_BELIZE:
		return TEMPERATURE_FORMAT_F;
	default:
		return TEMPERATURE_FORMAT_C;
	}
	*/
	STUB();
	return TEMPERATURE_FORMAT_C;
}
Esempio n. 20
0
OSStatus AudioConverter::getProperty(AudioConverterPropertyID inPropertyID, UInt32 *ioPropertyDataSize, void *outPropertyData)
{
	switch (inPropertyID)
	{
		case kAudioConverterEncodeBitRate:
		{
			return getPropertyT(ioPropertyDataSize, &m_outBitRate, outPropertyData);
		}
		case kAudioConverterCurrentInputStreamDescription:
		{
			return getPropertyT(ioPropertyDataSize, &m_sourceFormat, outPropertyData);
		}
		case kAudioConverterCurrentOutputStreamDescription:
		{
			return getPropertyT(ioPropertyDataSize, &m_destinationFormat, outPropertyData);
		}
		default:
		{
			STUB();
			return kAudioConverterErr_PropertyNotSupported;
		}
	}
}
Esempio n. 21
0
bool platform_file_copy(const utf8 *srcPath, const utf8 *dstPath, bool overwrite)
{
	STUB();
	return 0;
}
Esempio n. 22
0
	void Win32MenuItemImpl::Disable()
	{
		STUB();
	}
Esempio n. 23
0
	void Win32MenuItemImpl::SetIcon(std::string icon_path)
	{
		STUB();
	}
Esempio n. 24
0
utf8 *platform_open_directory_browser(utf8 *title)
{
	STUB();
	return NULL;
}
Esempio n. 25
0
/**
 *
 *  rct2: 0x004080EA
 */
int platform_open_common_file_dialog(int type, utf8 *title, utf8 *filename, utf8 *filterPattern, utf8 *filterName)
{
	STUB();
	return 0;
}
Esempio n. 26
0
void platform_show_messagebox(char *message)
{
	STUB();
	log_warning(message);
}
Esempio n. 27
0
bool platform_file_delete(const utf8 *path)
{
	STUB();
	return 0;
}
Esempio n. 28
0
bool platform_lock_single_instance()
{
	STUB();
	return true;
}
Esempio n. 29
0
bool platform_directory_delete(const utf8 *path)
{
	STUB();
	return true;
}
Esempio n. 30
0
bool platform_file_move(const utf8 *srcPath, const utf8 *dstPath)
{
	STUB();
	return 0;
}