/*
WiiHandy/SDL : Port of the Handy/SDL Emulator for the Wii

Copyright (C) 2009
raz0red (www.twitchasylum.com)

This software is provided 'as-is', without any express or implied
warranty.  In no event will the authors be held liable for any
damages arising from the use of this software.

Permission is granted to anyone to use this software for any
purpose, including commercial applications, and to alter it and
redistribute it freely, subject to the following restrictions:

1.	The origin of this software must not be misrepresented; you
must not claim that you wrote the original software. If you use
this software in a product, an acknowledgment in the product
documentation would be appreciated but is not required.

2.	Altered source versions must be plainly marked as such, and
must not be misrepresented as being the original software.

3.	This notice may not be removed or altered from any source
distribution.
*/

#ifndef WII_APP_H
#define WII_APP_H

#include "wii_main.h"

// The most recent status message
extern char wii_status_message[WII_MENU_BUFF_SIZE];

// The status message display count down
extern u8 wii_status_message_count;

/*
 * Updates the specified result string with the location of the file relative
 * to the appliation root directory.
 * 
 * file     The file name
 * result   The buffer to store the result in
 */
extern void wii_get_app_relative( const char *file, char *result );

/*
 * Determines and stores the base application path
 *
 * argc     The count of main arguments
 * argv     The array of argument values
 */
extern void wii_set_app_path( int argc, char *argv[] );

/*
 * Pause and wait for input. Usually used when debugging.
 */
extern void wii_pause();

/*
 * Writes the specified string to the VT display
 */
extern void wii_write_vt( char *buffer );

/*
 * Initializes the console output to the specified frame buffer. This 
 * allows us to swap between console output buffers.
 *
 * fb       The frame buffer to associated with the console
 */
extern void wii_console_init( void *fb );

/*
 * Stores a status message for display in the footer of the menu
 */ 
extern void wii_set_status_message( const char *message );

#endif
