417 Commits

Author SHA1 Message Date
Matt Nadareski
2869cd9d17 Overhaul parsenointro
ParseNoIntro is now a very specialized page. Instead of trying to get
ALL information from a page, it just captures the scene release info
instead. To make it even more efficient, it uses an XML reader to strip
out a lot of the junk, along with a couple levels of stripping
unnecessary whitespace.

The result is a very robust page that can traverse and get information
for Nintendo DS ONLY. Further tests will be done for 3DS in the future.
For now, it will remain limited until this information can be written to
file, which I hope will come in an update soon.
2016-03-31 00:58:42 -07:00
Matt Nadareski
d6f49a93d0 Finish coding OpenHandhelds online checker; add better notes 2016-03-30 21:32:44 -07:00
Matt Nadareski
37f40f562b Add more logic to OpenHandhelds 2016-03-30 20:29:05 -07:00
Matt Nadareski
f7e34869c0 Add code to get right parts of the page 2016-03-30 19:52:28 -07:00
Matt Nadareski
3cdbd541cb Add more skeleton code and notes 2016-03-30 18:24:49 -07:00
Matt Nadareski
139379d9a3 Add skeleton of new checker suggested by jpantarotto 2016-03-30 17:51:16 -07:00
Matt Nadareski
5ab1d52ec1 A little more warning cleanup 2016-03-30 00:30:38 -07:00
Matt Nadareski
f290131b91 Add TODO 2016-03-29 19:56:25 -07:00
Matt Nadareski
73257705ee Move values out one level 2016-03-29 19:36:43 -07:00
Matt Nadareski
82b72f7519 Fix var references 2016-03-29 19:35:07 -07:00
Matt Nadareski
a1cddc7815 Update link description 2016-03-29 19:20:06 -07:00
Matt Nadareski
f59310c38a Remove undefined var 2016-03-29 19:17:48 -07:00
Matt Nadareski
483409a238 Remove MAME automapping; obsolete 2016-03-29 19:17:28 -07:00
Matt Nadareski
2b54b15e14 Add proper check in parenting 2016-03-29 19:11:54 -07:00
Matt Nadareski
aa37f6c50e Correct spacing output 2016-03-29 19:09:39 -07:00
Matt Nadareski
4512bb83aa Check var correctly 2016-03-29 19:08:04 -07:00
Matt Nadareski
62cbdd9bc7 Remove unused var; update sln 2016-03-29 19:05:58 -07:00
Matt Nadareski
e598045360 Update README with more information 2016-03-29 16:25:31 -07:00
Matt Nadareski
e7f05f9171 Update .gitignore with VS2015 solution include 2016-03-29 15:46:00 -07:00
Matt Nadareski
11ad0dd092 Fix deheader script based on standalone created for desktop 2016-03-28 00:09:16 -07:00
Matt Nadareski
bf1b654863 Change handling of duplicate roms
If a rom or disk is found to be a duplicate (by using the actual last
item in the list instead of unnecessary cached values), it then checks
to see if any information is missing from the rom it's a duplicate of.
If the CRC, MD5, or SHA1 are empty and a new value is available, it uses
the new value dynamically. This way, the original information in the
database is untouched but the generated DAT is more complete. This is a
backport from the desktop version.
2016-03-27 22:05:16 -07:00
Matt Nadareski
7a63bb5fce Add placeholder for description
Since the description wasn't covered before, it had the possibility of
messing up imports that had a ")" in the description (AKA all of the
No-Intro DATs). This was not an issue in the custom DATs because none of
them included descriptions.
2016-03-25 17:29:12 -07:00
Matt Nadareski
ee7615f70b Split everything further on reset
Multiple lines in a query is apparently unacceptable at all for mysqli.
This isn't nice.
2016-03-25 16:35:27 -07:00
Matt Nadareski
49e00cba94 Separate queries just in case. 2016-03-25 16:20:29 -07:00
Matt Nadareski
9c094d40a7 Remove "are you sure" from reset.
There's no link to this page. If you get here, it's of your own
volition. You must want to wipe it.
2016-03-25 16:17:53 -07:00
Matt Nadareski
e841855d5e Remove sourceid check now that variable isn't set 2016-03-25 15:54:55 -07:00
Matt Nadareski
1cfe53ca95 [doc] typo 2016-03-25 15:49:03 -07:00
Matt Nadareski
4b7c912fe2 Add mapping arrays to globals 2016-03-25 15:36:44 -07:00
Matt Nadareski
babc9fa9e1 Clean up index a little 2016-03-25 13:31:27 -07:00
Matt Nadareski
6caad9e987 Retrieve the last 30 files updated for the view page 2016-03-25 10:49:01 -07:00
Matt Nadareski
395432366a Add description to RV DAT 2016-03-25 10:40:22 -07:00
Matt Nadareski
0341116164 Backport automatic type detection from desktop version
The desktop version had smart code that allowed it to figure out
(usually) the type of the DAT based on its filename pattern. The
previous PHP code used a param to deterime the type of the DAT, which,
though it's more distinctive, leads to having different folders for each
type, and doesn't allow all types to be imported at once. The new code
here uses the smart sorting to determine filetype and then uses that
type as if it were a param.
2016-03-22 14:03:21 -07:00
Matt Nadareski
b90a2f4bc1 Change strtoupper to strtolower. Upper causes issues with RV 2016-03-22 13:45:35 -07:00
Matt Nadareski
3a7f0d3df5 Missed a critical C# -> PHP concat 2016-03-22 13:18:36 -07:00
Matt Nadareski
86ea2e8ab9 Rewrite merging code
The code that is back here is loosely based on the original 3 step code
from previous iterations. This is a backport of the optimized code used
in the desktop version. Here, there is only at most one sort as the
query gets the correct sorting order for merged and unmerged. This code
needed to be implemented because of the varying degrees of available
data on any given ROM from different sources. Once other sources (such
as TOSEC) begin to be added, this will become apparent.
2016-03-22 00:32:53 -07:00
Matt Nadareski
df118292ba Convert C# concat to PHP concat 2016-03-21 21:51:31 -07:00
Matt Nadareski
0a695ae807 Add experimental RV to XML format conversion
This function is currently unused because local tests have been
inconclusive if it even works properly. This is based on code that is
found in the desktop version which functions in the correct manner.
2016-03-21 21:49:48 -07:00
Matt Nadareski
dbc646f1ed Possibly fix erroneous merging
This is another backport from the desktop version which is somewhat
based on feedback from nombre002/@tractivo. In another turn of
coincidence so far, all WoD custom DATs (the testing ground for most of
the app) all have CRC, MD5, and SHA1. This is not the case for all sets;
some have only CRC and MD5 or CRC and SHA1 (or even just CRC). With the
original code, these duplicates would be left in because they didn't
match in every single aspect. This is a tenative fix that may have
further fixes that are coordinated with the desktop version in the
future.
2016-03-21 21:46:00 -07:00
Matt Nadareski
2c8a3a3024 Ensure that all hashes are uppercase
It turns out that RV is VERY particular about the hashes that it is able
to parse. I've been lucky in the testing so far that this has not come
up, but this is actually a backport from the desktop version where
nombre002/@tractivo found this issue and reported it.
2016-03-21 21:42:21 -07:00
Matt Nadareski
0c29b8e729 Deal with softlist and trurip peculiarities 2016-03-18 19:53:29 -07:00
Matt Nadareski
f1f4c84f50 Fix minor issue with softwarelist detection 2016-03-18 17:03:21 -07:00
Matt Nadareski
9570c5439a Fix issue with MAME remapping found in desktop version 2016-03-18 16:55:09 -07:00
Matt Nadareski
e6f9efd904 Clean up CPC-GameReviews online checker 2016-03-18 02:26:44 -07:00
Matt Nadareski
e1eadac755 Add note to file that was added in move 2016-03-18 02:21:53 -07:00
Matt Nadareski
7ed8f5f06d Moving all files out of unnecessary subfolder 2016-03-18 01:42:48 -07:00
Matt Nadareski
60a7c878de Fix default information not showing immediately 2016-03-17 01:11:56 -07:00
Matt Nadareski
2b4db87d3c Fix files not being renamed properly on conflict 2016-03-17 00:50:21 -07:00
Matt Nadareski
f0f960fe27 Auto-created source had copy-paste errors 2016-03-17 00:29:31 -07:00
Matt Nadareski
fe4f017f5c Two minor but necessary changes
1) Always allow DAT creation to take as much memory as needed (this is a
bad idea in the long run but it won't work otherwise)
2) Clean up the two merged queries from the previous checkin. The way
that it was merged effectively stopped the program if either $sources or
$systems, wasn't set which had a high likelihood of happening.
2016-03-16 23:30:12 -07:00
Matt Nadareski
3e048fcd28 Reduce code redundancy in generate_dats
Two blocks of code essentially did the same thing at slightly different
times. By combining them (and adding some functionality), they now cut
down on the amount of database calls being done. Tests have shown that
even the biggest DATs take very little time to create.
2016-03-16 23:08:02 -07:00