Ok, I found the code in the Subs-ArcadeAdmin:
I changed the 0 to a 1 and it shows up in the default category of 1. Problem is now, the category counter needs to be increased in the db.
Find:
// Creates new game. Returns false on error and id of game on success
function createGame($game)
{
global $scripturl, $txt, $db_prefix, $user_info, $smcFunc, $modSettings;
$smcFunc['db_insert']('ignore',
'{db_prefix}arcade_games',
array(
'id_cat' => 'int',
'internal_name' => 'string',
'game_name' => 'string',
'submit_system' => 'string',
'description' => 'string',
'help' => 'string',
'enabled' => 'int',
'num_rates' => 'int',
'num_plays' => 'int',
'game_file' => 'string',
'game_directory' => 'string',
'extra_data' => 'string',
),
array(
0,
$game['internal_name'],
$game['name'],
$game['submit_system'],
'',
'',
1,
0,
0,
$game['game_file'],
$game['game_directory'],
'',
),
array()
);
Change to:
// Creates new game. Returns false on error and id of game on success
function createGame($game)
{
global $scripturl, $txt, $db_prefix, $user_info, $smcFunc, $modSettings;
$smcFunc['db_insert']('ignore',
'{db_prefix}arcade_games',
array(
'id_cat' => 'int',
'internal_name' => 'string',
'game_name' => 'string',
'submit_system' => 'string',
'description' => 'string',
'help' => 'string',
'enabled' => 'int',
'num_rates' => 'int',
'num_plays' => 'int',
'game_file' => 'string',
'game_directory' => 'string',
'extra_data' => 'string',
),
array(
1,
$game['internal_name'],
$game['name'],
$game['submit_system'],
'',
'',
1,
0,
0,
$game['game_file'],
$game['game_directory'],
'',
),
array()
);
find:
// Final install data
$gameOptions = array(
'internal_name' => $game['internal_name'],
'name' => $game['name'],
'description' => '',
'thumbnail' => $game['thumbnail'],
'thumbnail_small' => $game['thumbnail_small'],
'help' => !empty($game['help']) ? $game['help'] : '',
'game_file' => $game['file'],
'game_directory' => $game_directory,
'submit_system' => $game['submit_system'],
'score_type' => $game['score_type'],
'extra_data' => $game['extra_data'],
);
$success = false;
if (!isset($game['error']) && $id_game = createGame($gameOptions))
$success = true;
Change to:
// Final install data
$gameOptions = array(
'internal_name' => $game['internal_name'],
'name' => $game['name'],
'description' => '',
'thumbnail' => $game['thumbnail'],
'thumbnail_small' => $game['thumbnail_small'],
'help' => !empty($game['help']) ? $game['help'] : '',
'game_file' => $game['file'],
'game_directory' => $game_directory,
'submit_system' => $game['submit_system'],
'score_type' => $game['score_type'],
'extra_data' => $game['extra_data'],
);
$success = false;
if (!isset($game['error']) && $id_game = createGame($gameOptions))
{
$success = true;
updateCategoryStats();
}