\r
memset32(g_screen_ptr, 0, g_screen_width * g_screen_height * 2 / 4);\r
\r
+ PicoOpt &= ~POPT_ALT_RENDERER;\r
PicoOpt |= POPT_ACC_SPRITES;\r
if (!no_scale)\r
PicoOpt |= POPT_EN_SOFTSCALE;\r
../../tools/textfilter ../base_readme.txt $@ GP2X\r
\r
# ----------- release -----------\r
-ifneq ($(findstring rel,$(MAKECMDGOALS)),)\r
-ifeq ($(VER),)\r
-$(error need VER)\r
-endif\r
-endif\r
+VER ?= $(shell head -n 1 version.h | sed 's/.*"\(.*\)\.\(.*\)".*/\1\2/g')\r
CODE940 = code940/pico940_v3.bin\r
\r
-rel: PicoDrive PicoDrive.gpe $(CODE940) readme.txt PicoDrive.png ../game_def.cfg \\r
- warm_2.4.25.o warm_2.4.26-open2x.o warm_2.6.24.ko\r
- zip -9 -j ../../PicoDrive_$(VER).zip $^\r
- zip -9 -r ../../PicoDrive_$(VER).zip skin -i \*.png -i \*.txt\r
- mkdir bin_to_cso_mp3\r
- cp ../../tools/bin_to_cso_mp3/* bin_to_cso_mp3/\r
- zip -9 -r ../../PicoDrive_$(VER).zip bin_to_cso_mp3\r
- rm -rf bin_to_cso_mp3\r
+rel: PicoDrive PicoDrive.gpe $(CODE940) readme.txt ../game_def.cfg \\r
+ PicoDrive.png PicoDrive_s.png PicoDrive_t.png \\r
+ warm_2.4.25.o warm_2.4.26-open2x.o warm_2.6.24.ko \\r
+ ../../pico/carthw.cfg\r
+ mkdir -p out/PicoDrive/skin/\r
+ cp $^ out/PicoDrive/\r
+ cp PicoDrive.ini out/\r
+ cp skin/*.png out/PicoDrive/skin/\r
+ cp skin/*.txt out/PicoDrive/skin/\r
+ mkdir out/bin_to_cso_mp3\r
+ cp ../../tools/bin_to_cso_mp3/* out/bin_to_cso_mp3/\r
+ cd out && zip -9 -r ../../../PicoDrive_$(VER).zip *\r
+ rm -rf out\r
\r
$(CODE940):\r
make -C code940/\r
soc = soc_detect();\r
if (soc == SOCID_MMSP2)\r
defaultConfig.s_PicoOpt |= POPT_EXT_FM;\r
- else if (soc == SOCID_POLLUX)\r
+ else if (soc == SOCID_POLLUX) {\r
defaultConfig.EmuOpt |= EOPT_WIZ_TEAR_FIX|EOPT_SHOW_RTC;\r
+ defaultConfig.s_PicoOpt |= POPT_EN_MCD_GFX;\r
+ }\r
}\r
\r
void pemu_validate_config(void)\r
static void gp2x_video_wait_vsync_(void)
{
- while (!(memregl[0x308c>>2] & (1 << 10)));
+ while (!(memregl[0x308c>>2] & (1 << 10)))
spend_cycles(128);
memregl[0x308c>>2] |= 1 << 10;
}
\r
# ----------- release -----------\r
\r
-VER = $(shell head -n 1 version.h | sed 's/.*"\(.*\)\.\(.*\)".*/\1\2/g')\r
+VER ?= $(shell head -n 1 version.h | sed 's/.*"\(.*\)\.\(.*\)".*/\1\2/g')\r
\r
rel: PicoDrive PicoDrive.run picorestore ../../pico/carthw.cfg readme.txt \\r
skin PicoDrive.png PicoDrive_p.png PicoDrive.pxml\r
+/*
+ * picorestore - clean up after an omapfb program crash
+ *
+ * Copyright (c) GraÅžvydas "notaz" Ignotas, 2010
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * * Neither the name of the organization nor the
+ * names of its contributors may be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>